Bonjour,
J'appelle une dll avec le code suivant :
<DllImport("MyExtract")> _
PublicSharedSub _extractZ(ByVal c1() AsChar, ByVal c2() AsChar)EndSub
Sur mon serveur local tout fonctionne mais sur le serveur ou sont hébergés mes sites j'ai l'erreur suivante :
Unable to load DLL (MyExtract).
Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code.
Exception Details: System.DllNotFoundException: Unable to load DLL (MyExtract).
Source Error:
An unhandled exception was generated during the execution of the current web request. Information regarding the origin and location of the exception can be identified using the exception stack trace below.
|
Stack Trace:
[DllNotFoundException: Unable to load DLL (MyExtract).] DecompZip1.Extract._extractZ(Char[] c1, Char[] c2) +0 DecompZip1.Extract.decompress(String& directoryName, FileInfo& file) in F:\Mes documents\Visual Studio.NET\sources\DecompZip1\Extract.vb:66 DecompZip1.Extract.extract(String dir) in F:\Mes documents\Visual Studio.NET\sources\DecompZip1\Extract.vb:27 groupekayser.RecupTXT21.Page_Load(Object sender, EventArgs e) in c:\inetpub\wwwroot\groupekayser\RecupTXT2.aspx.vb:48 System.Web.UI.Control.OnLoad(EventArgs e) +67 System.Web.UI.Control.LoadRecursive() +35 System.Web.UI.Page.ProcessRequestMain() +750 |
Les paths indiqués sur la page d'erreur correspondent à mon serveur local alors que je suis sur le serveur de déploiement. Le chemin de ma DLL sur ce serveur devrait être :
E:\Inetpub\wwwroot\locomotion\Clients\groupekayser\bin\MyExtract.dll
Comment faire pour indiquer le chemin de ma DLL dans la fonction
<DllImport("MyExtract")> _
Merci encore
Thierry