我正在使用oracle ODP.Net库但是我在cnn.open()中遇到了未处理的执行错误;在它的“消息”属性中甚至没有一个单词的行。 最重要的一点是,这个问题存在于我的WCF项目中而不是其他地方。
Oracle.DataAccess.Client.OracleConnection cnn =
new Oracle.DataAccess.Client.OracleConnection("Data Source=(DESCRIPTION=(ADDRESS=(PROTOCOL=TCP)(HOST=localhost)(PORT=1521)) (CONNECT_DATA=(SID=orcl)));User Id=masoud;Password=123;");
cnn.Open();
更多细节:
描述:在执行当前Web请求期间发生了未处理的异常。请查看堆栈跟踪以获取有关错误及其源自代码的位置的更多信息。
异常详细信息: Oracle.DataAccess.Client.OracleException:
堆栈跟踪: [OracleException(0x80004005)] Oracle.DataAccess.Client.OracleException.HandleErrorHelper(Int32 errCode,OracleConnection conn,IntPtr opsErrCtx,OpoSqlValCtx * pOpoSqlValCtx,Object src,String procedure,Boolean bCheck,Int32 isRecoverable)+1336 Oracle.DataAccess.Client.OracleException.HandleError(Int32 errCode,OracleConnection conn,IntPtr opsErrCtx,Object src)+70 Oracle.DataAccess.Client.OracleConnection.Open()+ 8141 图.TradingSystem.Services.App_Code.Bootstrapper.AppInitialize()在d:\ App_Code \ Bootstrapper.cs:29
[TargetInvocationException:调用目标抛出了异常。] System.RuntimeMethodHandle.InvokeMethod(Object target,Object [] arguments,Signature sig,Boolean constructor)+0 System.Reflection.RuntimeMethodInfo.UnsafeInvokeInternal(Object obj,Object [] parameters,Object [] arguments)+192 System.Reflection.RuntimeMethodInfo.Invoke(Object obj,BindingFlags invokeAttr,Binder binder,Object []参数,CultureInfo文化)+108 System.Web.Compilation.BuildResultMainCodeAssembly.CallAppInitializeMethod()+146 System.Web.Compilation.CodeDirectoryCompiler.CallAppInitializeMethod()+27 System.Web.Compilation.BuildManager.CallAppInitializeMethod()+36 System.Web.Hosting.HostingEnvironment.Initialize(ApplicationManager appManager,IApplicationHost appHost,IConfigMapPathFactory configMapPathFactory,HostingEnvironmentParameters hostingParameters,PolicyLevel policyLevel,Exception appDomainCreationException)+530
[HttpException(0x80004005):调用目标抛出了异常。] System.Web.HttpRuntime.FirstRequestInit(HttpContext context)+9913572 System.Web.HttpRuntime.EnsureFirstRequestInit(HttpContext context)+101 System.Web.HttpRuntime.ProcessRequestNotificationPrivate(IIS7WorkerRequest wr,HttpContext context)+254
您怎么看?