Home > Net > Asp.net web application how to call unmanaged DLL containing ini configuration file?
Asp.net web application how to call unmanaged DLL containing ini configuration file?
Time:11-12
Asp.net web application how to call unmanaged DLL containing ini configuration file?
I copy in winform procedure is to put the DLL to the C: \ DLL \, environment variables, and then built the ini configuration file copy to the solution of the root directory, the following figure, can run normally released,
Then I built a asp.net web project, in the same way the ini configuration file copy to the solution to the root directory
Below is the reference DLLS
In vs local test tip mistakes when like ini configuration file doesn't work, released after prompt unable to load the DLL "ynumip_offline. DLL" : can't find the specified module, (abnormal from HRESULT: 0 x8007007e),
After release of application server I also built environment variable
Could you tell me how to call asp.net web application unmanaged DLL containing ini configuration file? Online, etc., thank you
CodePudding user response:
Ini file there are some DLL's address, port and other information
CodePudding user response:
Whether your DLL in 32 (can call, I feel is the problem
CodePudding user response:
Can't find the module is not to find ini You the aspnet is at the same time, you have to put things in the bin, theoretically ini files in the bin, too
In addition those ini configuration recommendations for physical absolute path (the ans it's hard to know the somebody else's rules of the DLL, the relative directory, so the absolute path to the insurance)
At the same time, the real production environment should be read and write to that directory corresponding executive power (IIS running aspnet deposit actually is not in your path, what is his real running directory system disk aspnet temp directory, so this is also why you put the things in the bin under the reason, because he is actually put things in the bin in the temp directory in run)
CodePudding user response:
Add read access to your DLL And the site itself and you put together a DLL, such as bin