Microsoft.Data.Odbc for C# web application

When I try to run my web application I get the following.
What is the problem?


Server Error in '/MSPOS' Application.
--------------------------------------------------------------------------------

ERROR [IM003] Specified driver could not be loaded due to system error 5 (Oracle in OraHome92).
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: Microsoft.Data.Odbc.OdbcException: ERROR [IM003] Specified driver could not be loaded due to system error 5 (Oracle in OraHome92).

Source Error:


Line 73: {
Line 74:       OdbcConnection myConnection =  new OdbcConnection("DSN=MSPOS;UID=system;PWD=system");
Line 75:     myConnection.Open();
Line 76:          
Line 77:     // get records from the table
 

Source File: D:\Inetpub\wwwroot\MSPOS\Stores.aspx    Line: 75

Stack Trace:


[OdbcException: ERROR [IM003] Specified driver could not be loaded due to system error  5 (Oracle in OraHome92).]
   Microsoft.Data.Odbc.OdbcConnection.Open() +646
   ASP.Stores_aspx.BindData() in D:\Inetpub\wwwroot\MSPOS\Stores.aspx:75
   ASP.Stores_aspx.Page_Load(Object sender, EventArgs e) in D:\Inetpub\wwwroot\MSPOS\Stores.aspx:64
   System.Web.UI.Control.OnLoad(EventArgs e) +67
   System.Web.UI.Control.LoadRecursive() +35
   System.Web.UI.Page.ProcessRequestMain() +731

 


--------------------------------------------------------------------------------
Version Information: Microsoft .NET Framework Version:1.1.4322.573; ASP.NET Version:1.1.4322.573
mathieu_cuprykAsked:
Who is Participating?
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.