Oracle未知异常

时间:2012-08-02 18:07:06

标签: c# oracle .net-4.0

在我的本地方框中抛出一个奇怪的Oracle异常。该应用程序在测试环境中运行良好,但不会在本地运行。我在本地安装了Oracle 10.2和11.2,在我的项目中引用了10.2 Oracle.DataAccess.dll(10.2.0.100)。抛出异常,但没有异常消息可以帮助我解决它。使用C#/ .NET 4.0 enter image description here 对于较大的图像: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: 

Stack Trace文本:

   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),我可以让它在本地运行,但它在测试服务器上不起作用。

0 个答案:

没有答案