How are youProgramAn unmanaged resource is called and runs normally in the open environment and some deployment environments. However, the following error occurs in some deployment environments:ArticleIt may help you, because I am also suffering from him ~~
For example, a third-party unmanaged resource is called in your program in the following ways, and runs normally in your development environment, debugging environment, or some deployment environments, however, in some client environments
"Error: Unable to load DLL" mwrf_bj.dll ": the application fails to start due to incorrect application configuration. Re-installing the application may correct this problem. (Exception from: hresult: 0x800736b1)
[Dllimport ( " Mwhrf_bj.dll " , Entrypoint = " Open_usb " , Setlasterror = True ,
Charset = Charset. Auto, exactspelling = False ,
Callingconvention = Callingconvention. stdcall)]
Public Static Extern Int Open_usb ();
If this problem occurs, you may reinstall it according to the error prompt, but the result is still the same and cannot run properly.
No, but other machines can run the program. It should be a problem in the client environment. If your program calls some functions written in C ++, will it be that some environments running C ++ are not configured. In fact, in addition. net Framework is a required component. If you call some third-party class libraries, you must add the Visual C ++ Runtime Library, in this way, Visual C ++ Runtime Library is automatically installed in the current environment during installation. After installation, the problem is solved.
The following is an introduction to version 2005, corresponding to version 2008 and other information.
Microsoft Visual C ++ 2005 SP1 redistributable package (x86) install the runtime components of the Visual C ++ library required for running applications developed using Visual C ++ on a computer without visual C ++ 2005 installed.