2

在我的本地机器上抛出一个奇怪的 Oracle 异常。该应用程序在测试环境中运行良好,但不会在本地运行。我在本地安装了 Oracle 版本 10.2 和 11.2,在我的项目中引用了 10.2 Oracle.DataAccess.dll(10.2.0.100)。抛出异常,但没有异常消息可以帮助我解决它。使用 C#/.NET 4.0获得更大的图像:http 在此处输入图像描述 : //i.imgur.com/R88M3.png

这是“异常详细信息”文本:

Oracle.DataAccess.Client.OracleException was unhandled by user code
  HResult=-2146233087
  Message=""
  StackTrace:
       at Oracle.DataAccess.Client.OracleException.HandleErrorHelper(Int32 errCode, OracleConnection conn, IntPtr opsErrCtx, OpoSqlValCtx* pOpoSqlValCtx, Object src, String procedure)
       at Oracle.DataAccess.Client.OracleException.HandleError(Int32 errCode, OracleConnection conn, IntPtr opsErrCtx, Object src)
       at Oracle.DataAccess.Client.OracleConnection.Open()
       at DomainModel.Concrete.AutherizationRespository.getUser(String sqlCmd) in C:\LocalRepository\Web_Apps\TransferArticulation6\trunk\DomainModel\Concrete\AutherizationRespository.cs:line 38
       at DomainModel.Concrete.AutherizationRespository.GetAdminUser(String netId) in C:\LocalRepository\Web_Apps\TransferArticulation6\trunk\DomainModel\Concrete\AutherizationRespository.cs:line 30
       at TransferArticulation4.Controllers.AccountController.SecondaryAuthentication(String userNetId) in C:\LocalRepository\Web_Apps\TransferArticulation6\trunk\TransferArticulation\Controllers\AccountController.cs:line 117
       at TransferArticulation4.Controllers.AccountController.Logon(FormCollection form) in C:\LocalRepository\Web_Apps\TransferArticulation6\trunk\TransferArticulation\Controllers\AccountController.cs:line 84
       at lambda_method(Closure , ControllerBase , Object[] )
       at System.Web.Mvc.ActionMethodDispatcher.Execute(ControllerBase controller, Object[] parameters)
       at System.Web.Mvc.ReflectedActionDescriptor.Execute(ControllerContext controllerContext, IDictionary`2 parameters)
       at System.Web.Mvc.ControllerActionInvoker.InvokeActionMethod(ControllerContext controllerContext, ActionDescriptor actionDescriptor, IDictionary`2 parameters)
       at System.Web.Mvc.ControllerActionInvoker.<>c__DisplayClassd.<InvokeActionMethodWithFilters>b__a()
       at System.Web.Mvc.ControllerActionInvoker.InvokeActionMethodFilter(IActionFilter filter, ActionExecutingContext preContext, Func`1 continuation)
  InnerException: 

堆栈跟踪文本:

   at Oracle.DataAccess.Client.OracleException.HandleErrorHelper(Int32 errCode, OracleConnection conn, IntPtr opsErrCtx, OpoSqlValCtx* pOpoSqlValCtx, Object src, String procedure)
   at Oracle.DataAccess.Client.OracleException.HandleError(Int32 errCode, OracleConnection conn, IntPtr opsErrCtx, Object src)
   at Oracle.DataAccess.Client.OracleConnection.Open()
   at DomainModel.Concrete.AutherizationRespository.getUser(String sqlCmd) in C:\LocalRepository\Web_Apps\TransferArticulation6\trunk\DomainModel\Concrete\AutherizationRespository.cs:line 38
   at DomainModel.Concrete.AutherizationRespository.GetAdminUser(String netId) in C:\LocalRepository\Web_Apps\TransferArticulation6\trunk\DomainModel\Concrete\AutherizationRespository.cs:line 30
   at TransferArticulation4.Controllers.AccountController.SecondaryAuthentication(String userNetId) in C:\LocalRepository\Web_Apps\TransferArticulation6\trunk\TransferArticulation\Controllers\AccountController.cs:line 117
   at TransferArticulation4.Controllers.AccountController.Logon(FormCollection form) in C:\LocalRepository\Web_Apps\TransferArticulation6\trunk\TransferArticulation\Controllers\AccountController.cs:line 84
   at lambda_method(Closure , ControllerBase , Object[] )
   at System.Web.Mvc.ActionMethodDispatcher.Execute(ControllerBase controller, Object[] parameters)
   at System.Web.Mvc.ReflectedActionDescriptor.Execute(ControllerContext controllerContext, IDictionary`2 parameters)
   at System.Web.Mvc.ControllerActionInvoker.InvokeActionMethod(ControllerContext controllerContext, ActionDescriptor actionDescriptor, IDictionary`2 parameters)
   at System.Web.Mvc.ControllerActionInvoker.<>c__DisplayClassd.<InvokeActionMethodWithFilters>b__a()
   at System.Web.Mvc.ControllerActionInvoker.InvokeActionMethodFilter(IActionFilter filter, ActionExecutingContext preContext, Func`1 continuation)

我还应该提到,如果我引用版本 11.2 Oracle.DataAccess.dll(4.112.2.0),我可以让它在本地运行,但是它在测试服务器上不起作用。

4

0 回答 0