"Unhandled Execution Error" when connecting to oracle from IIS hosted web application

StackOverflow https://stackoverflow.com/questions/22675453

  •  22-06-2023
  •  | 
  •  

Frage

I have an ASP.NET 2.0 web application that connects to a remote oracle database, the application visual studio but not on iis. I've tried windows 7, windows server 2008 R2 and windows server 2012.

It fails when hosted on IIS, with the following error message:

Unhandled Execution Error 

   at Oracle.DataAccess.Client.OracleException.HandleErrorHelper(Int32 errCode, OracleConnection conn, IntPtr opsErrCtx, OpoSqlValCtx* pOpoSqlValCtx, Object src, String procedure, Boolean bCheck, Int32 isRecoverable)
   at Oracle.DataAccess.Client.OracleException.HandleError(Int32 errCode, OracleConnection conn, IntPtr opsErrCtx, Object src)
   at Oracle.DataAccess.Client.OracleConnection.Open()
   at AspDbTest._Default.Page_Load(Object sender, EventArgs e) in c:\kourosh\c#\BasicRumTest20\AspDbTest\Default.aspx.cs:line 19
   at System.Web.Util.CalliHelper.EventArgFunctionCaller(IntPtr fp, Object o, Object t, EventArgs e)
   at System.Web.Util.CalliEventHandlerDelegateProxy.Callback(Object sender, EventArgs e)
   at System.Web.UI.Control.OnLoad(EventArgs e)
   at System.Web.UI.Control.LoadRecursive()
   at System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint)


Stack Trace: 

[OracleException (0x80004005)]
   Oracle.DataAccess.Client.OracleException.HandleErrorHelper(Int32 errCode, OracleConnection conn, IntPtr opsErrCtx, OpoSqlValCtx* pOpoSqlValCtx, Object src, String procedure, Boolean bCheck, Int32 isRecoverable) +1514
   Oracle.DataAccess.Client.OracleException.HandleError(Int32 errCode, OracleConnection conn, IntPtr opsErrCtx, Object src) +51
   Oracle.DataAccess.Client.OracleConnection.Open() +5243
   AspDbTest._Default.Page_Load(Object sender, EventArgs e) in c:\kourosh\c#\OracleTest_with_trace\AspDbTest\Default.aspx.cs:19
   System.Web.Util.CalliEventHandlerDelegateProxy.Callback(Object sender, EventArgs e) +51
   System.Web.UI.Control.OnLoad(EventArgs e) +92
   System.Web.UI.Control.LoadRecursive() +54
   System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +772

I also have a client C# app that works there.

I already enabled the 32 bit application option on iis. Any ideas?

War es hilfreich?

Lösung

I used the admin user for the pool (also enabled 32 bit), it did not seem to help. Finally, by chance, I rebooted the machine and it worked. With visual studio it immediately works, but iis apparently needs a reboot in order to work (but iisreset also does not help).

Lizenziert unter: CC-BY-SA mit Zuschreibung
Nicht verbunden mit StackOverflow
scroll top