Tags: WinForm style http OS using SP for on file
Using the VS built-in Development server debug, the page will start normally, but a connection database will be reported as "ORA-06413: Connection not open" error.
After the above problem is resolved, another error has been reported: Failed to load the file or assembly "Xxx.dll" or one of its dependencies. An attempt was made to load a program that is not properly formatted.
"ORA-06413: Connection not open" error because the path of the program that is connected to the database is not allowed to have special characters. VS when installed under the 64-bit version, it is installed by default under program Files (x86), with the exception of "()" special characters.
Modify the installation directory of VS, create WinForm project, connect database, test pass.
However, when you create a Web project, the database is connected, and you are still prompted with "ORA-06413: Connection not open." It turned out to be the reason for debugging using the VS built-in Web server because the built-in server program was installed under C:/Program Files (x86)/common files/, so the problem was unavoidable. Currently, you cannot modify the installation path for the built-in Web server.
The only workaround is to use the IIS server to debug the program.
asked the next degree Niang (although Niang often do not give force, but Google is now in the river crab ... ), possibly because after you install the framework v4.0, you enable IIS, which causes the framework not to be fully installed. Workaround: Start with all programs, accessories, right-click Command prompt, run as Administrator->%windir%\microsoft.net\framework\ V4.0.30319\aspnet_regiis.exe-i
This problem should be solved, but a press F5 and reported a new error: failed to load file or assembly "Xxx.dll" or one of its dependencies. An attempt was made to load a program that is not properly formatted.
Again please Niang Mountain, understand the reason may be the project references some x86 dynamic link library or set the target platform to x86. Workaround: Start the 32-bit application->true, advanced settings, IIS Manager, application pool->defaultapppool (based on actual selection).
Win7x64 using vs Debug Web Project "ORA-06413: Connection not open" error resolution