Win7x64 using vs Debug Web Project "ORA-06413: Connection not open" error resolution

Source: Internet
Author: User

  1. Error description
    1. Common Web projects, Web projects running on 32-bit systems well, a little bit of a problem.
    2. 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.

    3. Use IIS Express or IIS server to start the Times wrong:HTTP error 500.21-internal server error, handler "pagehandlerfactory-integrated" There is an error module "Managedpipelinehandler" in its module list.
    4. 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.

  2. Solution Solutions
    1. "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.

    2. Modify the installation directory of VS, create WinForm project, connect database, test pass.

    3. 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.

    4. The only workaround is to use the IIS server to debug the program.

    5. Under normal circumstances the problem should have been solved, but when I changed to the IIS server debugging, I reported an error: HTTP error 500.21-internal server error, handler "pagehandlerfactory-integrated "There is an error module" Managedpipelinehandler "in its module list.
    6. 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

    7. 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.

    8. 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).

    9. Through the above toss, finally KO!

Win7x64 using vs Debug Web Project "ORA-06413: Connection not open" error resolution

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.