mod_mono et postgresql - C#/.NET managed - Programmation
Marsh Posté le 20-04-2006 à 17:53:36
cesarr89 a écrit : Et le web.config ? |
<?xml version="1.0"?>
<!--
Note: As an alternative to hand editing this file you can use the
web admin tool to configure settings for your application. Use
the Website->Asp.Net Configuration option in Visual Studio.
A full list of settings and comments can be found in
machine.config.comments usually located in
\Windows\Microsoft.Net\Framework\v2.x\Config
-->
<configuration>
<appSettings/>
<connectionStrings/>
<system.web>
<!--
Set compilation debug="true" to insert debugging
symbols into the compiled page. Because this
affects performance, set this value to true only
during development.
-->
<compilation debug="true"/>
<!--
The <authentication> section enables configuration
of the security authentication mode used by
ASP.NET to identify an incoming user.
-->
<authentication mode="Windows"/>
<!--
The <customErrors> section enables configuration
of what to do if/when an unhandled error occurs
during the execution of a request. Specifically,
it enables developers to configure html error pages
to be displayed in place of a error stack trace.
<customErrors mode="RemoteOnly" defaultRedirect="GenericErrorPage.htm">
<error statusCode="403" redirect="NoAccess.htm" />
<error statusCode="404" redirect="FileNotFound.htm" />
</customErrors>
-->
</system.web>
</configuration>
Voici le Web.config d'origine, j'ai deja essayer de charger la dll dedans mais sans succes, peux tu me dire ce que tu mettrais et ou ?
Merci.
Marsh Posté le 21-04-2006 à 13:00:34
cesarr89 a écrit : Y'a quoi dans ton répértoire Bin ? |
Ma dll de postgresql, j'ai meme essayer de la mettre un peu partout, de l'enregistrer dans le GAC de mono, mais rien n'y fait
Marsh Posté le 19-04-2006 à 16:07:37
Bonjour,
Dans le cadre d'un projet pour mon ecole, je dois faire cohabiter des pages en aspx et mod_mono ainsi qu'une base postgresql.
L'installation de mod_mono marche sans soucis, la base sql aussi mais lorsque je veux faire interagir les deux, cela pose probleme, a priori, mod_mono n'a pas le driver pour postgresql et meme apres avoir installer le driver pour mono, mod_mono qui a l'air d'etre independant, le prends pas en compte.
Voia un copier coller du message d'erreur mais je pense pas m'etre tromper sur le probleme:
Compilation Error Description: Error compiling a resource required to service this request. Review your source file and modify it to fix this error.
Error message: /var/www/localhost/htdocs/aspnet/admin_violette/WebForm1.aspx.cs(11,7) : error CS0246: The type or namespace name `Npgsql' could not be found. Are you missing a using directive or an assembly reference? /var/www/localhost/htdocs/aspnet/admin_violette/WebForm1.aspx.cs(11,1) : error CS0246: The type or namespace name `Npgsql' could not be found. Are you missing a using directive or an assembly reference? /var/www/localhost/htdocs/aspnet/admin_violette/WebForm1.aspx.cs(11,7) : error CS0246: The type or namespace name `Npgsql' could not be found. Are you missing a using directive or an assembly reference? /var/www/localhost/htdocs/aspnet/admin_violette/WebForm1.aspx.cs(11,1) : error CS0246: The type or namespace name `Npgsql' could not be found. Are you missing a using directive or an assembly reference?
Si quelqu'un a une idee, je suis preneur.
Merci d'avance.