Warning: file_get_contents(/data/phpspider/zhask/data//catemap/1/asp.net/36.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181

Warning: file_get_contents(/data/phpspider/zhask/data//catemap/2/.net/20.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Asp.net IIS中的ODP.NET错误:ORA-12357网络会话文件结束_Asp.net_.net_Asp.net Mvc_Oracle_Iis - Fatal编程技术网

Asp.net IIS中的ODP.NET错误:ORA-12357网络会话文件结束

Asp.net IIS中的ODP.NET错误:ORA-12357网络会话文件结束,asp.net,.net,asp.net-mvc,oracle,iis,Asp.net,.net,Asp.net Mvc,Oracle,Iis,我正在尝试将MVC应用程序部署到IIS服务器,并连接到Oracle数据库。为此,我下载了Visual Studio 2013的ODAC扩展,并使用Nuget将最新的ODP.NET托管客户端安装到项目中。我的开发机器还安装了Oracle客户端(即,我可以在我的开发设备上运行SQL Developer),但从我的阅读来看,ODP.NET不需要在服务器上安装Oracle客户端。但是,该应用程序在我的开发设备上运行良好,但在部署到服务器时,我会出现错误,并且无法使任何Oracle连接正常工作。到目前为止

我正在尝试将MVC应用程序部署到IIS服务器,并连接到Oracle数据库。为此,我下载了Visual Studio 2013的ODAC扩展,并使用Nuget将最新的ODP.NET托管客户端安装到项目中。我的开发机器还安装了Oracle客户端(即,我可以在我的开发设备上运行SQL Developer),但从我的阅读来看,ODP.NET不需要在服务器上安装Oracle客户端。但是,该应用程序在我的开发设备上运行良好,但在部署到服务器时,我会出现错误,并且无法使任何Oracle连接正常工作。到目前为止,我找不到任何有用的信息来说明是什么导致了这些错误,以及如何避免这些错误

环境:64位Windows 7上的Visual Studio 2013更新5,部署到Windows Server 2008 IIS 7。我对IIS框没有管理权限,它已被锁定。服务器管理员正竭尽全力提供帮助,但他不了解Oracle,而我知道的仅仅是不够危险。本地Oracle开发人员都在Linux服务器上运行Java,所以我是一个没有内部支持的奇怪的.NET/Windows家伙。Oracle数据库是11.2.0.3.0。web应用程序位于64位应用程序池中

重要提示:Oracle客户端未安装在IIS盒上。我们不确定是否必须安装单独的Oracle客户端,我的读数显示不是,但我可能错了

我需要什么:理想情况下,该项目可以部署到任意IIS服务器并连接到我的目标Oracle数据库,而不需要在服务器上安装任何Oracle组件/客户端。我希望尽可能独立,这样我就可以最大限度地减少对服务器的影响,并100%负责我的应用程序的配置管理。如果我不能完全独立,那么我需要能够生成一个包含可重复步骤的书面文档,以随意配置和部署到新的IIS服务器,并且对服务器和Oracle管理员的影响最小。Entity Framework非常好,但不是绝对必需的——我的“真正”应用程序(这只是测试连接的一个尖峰)目前在域存储库中使用OleDbDataReader对象,一旦ODP.NET连接正常工作,我将把它们交换到OracleDataReader

推测:目前我正在考虑以下错误的原因。但我不知道真正的原因是什么,所以我不知道该把精力集中在哪里

  • 服务器需要安装组件。如果有,哪些

  • 服务器被防火墙阻止或未被数据库服务器列入白名单。防火墙不应该是服务器管理员的问题,也不确定数据库白名单

  • ???还有别的吗

  • 下面是我所拥有和得到的东西的总结。每个操作之后都会出现它生成的错误消息

    所有这些都能在我的开发设备上完美运行——错误都在服务器上。

    /Home/Index

    这实际上是从以下位置复制/粘贴:

    错误消息:ORA-12537:网络会话:文件结束

    ORA-12537: Network Session: End of file
    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: OracleInternal.Network.NetworkException: ORA-12537: Network Session: End of file
    
    Source Error:
    
    An unhandled exception was generated during the execution of the current web request. Information regarding the origin and location of the exception can be identified using the exception stack trace below.
    
    Stack Trace:
    
    
    [NetworkException (0x30f9): ORA-12537: Network Session: End of file]
       OracleInternal.Network.ReaderStream.ReadIt(OraBuf OB, Int32 len) +294
       OracleInternal.Network.ReaderStream.ReadwithCrypto(OraBuf OB) +127
    
    [NetworkException (0x80004005): ORA-12570: Network Session: Unexpected packet read error]
       OracleInternal.Network.ReaderStream.ReadwithCrypto(OraBuf OB) +1188
       OracleInternal.Network.ReaderStream.Read(OraBuf OB) +88
       OracleInternal.TTC.OraBufReader.GetDataFromNetwork() +274
       OracleInternal.TTC.OraBufReader.Read(Boolean bIgnoreData) +46
       OracleInternal.TTC.MarshallingEngine.UnmarshalUB1(Boolean bIgnoreData) +16
       OracleInternal.TTC.TTCProtocolNegotiation.ReadResponse() +86
    
    [OracleException (0x80004005): ORA-12570: Network Session: Unexpected packet read error]
       OracleInternal.ConnectionPool.PoolManager`3.Get(ConnectionString csWithDiffOrNewPwd, Boolean bGetForApp, String affinityInstanceName, Boolean bForceMatch) +5643
       OracleInternal.ConnectionPool.OraclePoolManager.Get(ConnectionString csWithNewPassword, Boolean bGetForApp, String affinityInstanceName, Boolean bForceMatch) +1381
       OracleInternal.ConnectionPool.OracleConnectionDispenser`3.Get(ConnectionString cs, PM conPM, ConnectionString pmCS, SecureString securedPassword, SecureString securedProxyPassword) +1583
       Oracle.ManagedDataAccess.Client.OracleConnection.Open() +3837
       OracleClientSpikeMvc.Controllers.HomeController.Oracle() +65
       lambda_method(Closure , ControllerBase , Object[] ) +79
       System.Web.Mvc.ReflectedActionDescriptor.Execute(ControllerContext controllerContext, IDictionary`2 parameters) +242
       System.Web.Mvc.ControllerActionInvoker.InvokeActionMethod(ControllerContext controllerContext, ActionDescriptor actionDescriptor, IDictionary`2 parameters) +39
       System.Web.Mvc.Async.AsyncControllerActionInvoker.<BeginInvokeSynchronousActionMethod>b__39(IAsyncResult asyncResult, ActionInvocation innerInvokeState) +12
       System.Web.Mvc.Async.WrappedAsyncResult`2.CallEndDelegate(IAsyncResult asyncResult) +139
       System.Web.Mvc.Async.AsyncInvocationWithFilters.<InvokeActionMethodFilterAsynchronouslyRecursive>b__3d() +112
       System.Web.Mvc.Async.<>c__DisplayClass46.<InvokeActionMethodFilterAsynchronouslyRecursive>b__3f() +452
       System.Web.Mvc.Async.<>c__DisplayClass33.<BeginInvokeActionMethodWithFilters>b__32(IAsyncResult asyncResult) +15
       System.Web.Mvc.Async.<>c__DisplayClass2b.<BeginInvokeAction>b__1c() +37
       System.Web.Mvc.Async.<>c__DisplayClass21.<BeginInvokeAction>b__1e(IAsyncResult asyncResult) +241
       System.Web.Mvc.Controller.<BeginExecuteCore>b__1d(IAsyncResult asyncResult, ExecuteCoreState innerState) +29
       System.Web.Mvc.Async.WrappedAsyncVoid`1.CallEndDelegate(IAsyncResult asyncResult) +111
       System.Web.Mvc.Controller.EndExecuteCore(IAsyncResult asyncResult) +53
       System.Web.Mvc.Async.WrappedAsyncVoid`1.CallEndDelegate(IAsyncResult asyncResult) +19
       System.Web.Mvc.MvcHandler.<BeginProcessRequest>b__5(IAsyncResult asyncResult, ProcessRequestState innerState) +51
       System.Web.Mvc.Async.WrappedAsyncVoid`1.CallEndDelegate(IAsyncResult asyncResult) +111
       System.Web.CallHandlerExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute() +606
       System.Web.HttpApplication.ExecuteStep(IExecutionStep step, Boolean& completedSynchronously) +288
    
    public ActionResult Oracle()
    {
        var connectionString = "Data Source=(DESCRIPTION=(ADDRESS=(PROTOCOL=tcp)(HOST=myhost)(PORT=1521))(CONNECT_DATA=(SERVICE_NAME=myservicename)));User Id=myuserid;Password=mypassword;";
        var conn = new OracleConnection(connectionString);
        conn.Open();
    
        var command = conn.CreateCommand();
        command.CommandText = "select sysdate from dual";
        command.CommandType = System.Data.CommandType.Text;
        var reader = command.ExecuteReader();
    
        if (!reader.HasRows)
            return Content("No rows returned");
    
        reader.Read();
    
        return Content(reader["sysdate"].ToString());
    }
    
    ORA-12537: Network Session: End of file
    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: OracleInternal.Network.NetworkException: ORA-12537: Network Session: End of file
    
    Source Error:
    
    An unhandled exception was generated during the execution of the current web request. Information regarding the origin and location of the exception can be identified using the exception stack trace below.
    
    Stack Trace:
    
    
    [NetworkException (0x30f9): ORA-12537: Network Session: End of file]
       OracleInternal.Network.ReaderStream.ReadIt(OraBuf OB, Int32 len) +294
       OracleInternal.Network.ReaderStream.ReadwithCrypto(OraBuf OB) +127
    
    [NetworkException (0x80004005): ORA-12570: Network Session: Unexpected packet read error]
       OracleInternal.Network.ReaderStream.ReadwithCrypto(OraBuf OB) +1188
       OracleInternal.Network.ReaderStream.Read(OraBuf OB) +88
       OracleInternal.TTC.OraBufReader.GetDataFromNetwork() +274
       OracleInternal.TTC.OraBufReader.Read(Boolean bIgnoreData) +46
       OracleInternal.TTC.MarshallingEngine.UnmarshalUB1(Boolean bIgnoreData) +16
       OracleInternal.TTC.TTCProtocolNegotiation.ReadResponse() +86
    
    [OracleException (0x80004005): ORA-12570: Network Session: Unexpected packet read error]
       OracleInternal.ConnectionPool.PoolManager`3.Get(ConnectionString csWithDiffOrNewPwd, Boolean bGetForApp, String affinityInstanceName, Boolean bForceMatch) +5643
       OracleInternal.ConnectionPool.OraclePoolManager.Get(ConnectionString csWithNewPassword, Boolean bGetForApp, String affinityInstanceName, Boolean bForceMatch) +1381
       OracleInternal.ConnectionPool.OracleConnectionDispenser`3.Get(ConnectionString cs, PM conPM, ConnectionString pmCS, SecureString securedPassword, SecureString securedProxyPassword) +1583
       Oracle.ManagedDataAccess.Client.OracleConnection.Open() +3837
       OracleClientSpikeMvc.Controllers.HomeController.Oracle() +65
       lambda_method(Closure , ControllerBase , Object[] ) +79
       System.Web.Mvc.ReflectedActionDescriptor.Execute(ControllerContext controllerContext, IDictionary`2 parameters) +242
       System.Web.Mvc.ControllerActionInvoker.InvokeActionMethod(ControllerContext controllerContext, ActionDescriptor actionDescriptor, IDictionary`2 parameters) +39
       System.Web.Mvc.Async.AsyncControllerActionInvoker.<BeginInvokeSynchronousActionMethod>b__39(IAsyncResult asyncResult, ActionInvocation innerInvokeState) +12
       System.Web.Mvc.Async.WrappedAsyncResult`2.CallEndDelegate(IAsyncResult asyncResult) +139
       System.Web.Mvc.Async.AsyncInvocationWithFilters.<InvokeActionMethodFilterAsynchronouslyRecursive>b__3d() +112
       System.Web.Mvc.Async.<>c__DisplayClass46.<InvokeActionMethodFilterAsynchronouslyRecursive>b__3f() +452
       System.Web.Mvc.Async.<>c__DisplayClass33.<BeginInvokeActionMethodWithFilters>b__32(IAsyncResult asyncResult) +15
       System.Web.Mvc.Async.<>c__DisplayClass2b.<BeginInvokeAction>b__1c() +37
       System.Web.Mvc.Async.<>c__DisplayClass21.<BeginInvokeAction>b__1e(IAsyncResult asyncResult) +241
       System.Web.Mvc.Controller.<BeginExecuteCore>b__1d(IAsyncResult asyncResult, ExecuteCoreState innerState) +29
       System.Web.Mvc.Async.WrappedAsyncVoid`1.CallEndDelegate(IAsyncResult asyncResult) +111
       System.Web.Mvc.Controller.EndExecuteCore(IAsyncResult asyncResult) +53
       System.Web.Mvc.Async.WrappedAsyncVoid`1.CallEndDelegate(IAsyncResult asyncResult) +19
       System.Web.Mvc.MvcHandler.<BeginProcessRequest>b__5(IAsyncResult asyncResult, ProcessRequestState innerState) +51
       System.Web.Mvc.Async.WrappedAsyncVoid`1.CallEndDelegate(IAsyncResult asyncResult) +111
       System.Web.CallHandlerExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute() +606
       System.Web.HttpApplication.ExecuteStep(IExecutionStep step, Boolean& completedSynchronously) +288
    
    错误消息:ORA-12537:网络会话:文件结束

    ORA-12537: Network Session: End of file
    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: OracleInternal.Network.NetworkException: ORA-12537: Network Session: End of file
    
    Source Error:
    
    An unhandled exception was generated during the execution of the current web request. Information regarding the origin and location of the exception can be identified using the exception stack trace below.
    
    Stack Trace:
    
    
    [NetworkException (0x30f9): ORA-12537: Network Session: End of file]
       OracleInternal.Network.ReaderStream.ReadIt(OraBuf OB, Int32 len) +294
       OracleInternal.Network.ReaderStream.ReadwithCrypto(OraBuf OB) +127
    
    [NetworkException (0x80004005): ORA-12570: Network Session: Unexpected packet read error]
       OracleInternal.Network.ReaderStream.ReadwithCrypto(OraBuf OB) +1188
       OracleInternal.Network.ReaderStream.Read(OraBuf OB) +88
       OracleInternal.TTC.OraBufReader.GetDataFromNetwork() +274
       OracleInternal.TTC.OraBufReader.Read(Boolean bIgnoreData) +46
       OracleInternal.TTC.MarshallingEngine.UnmarshalUB1(Boolean bIgnoreData) +16
       OracleInternal.TTC.TTCProtocolNegotiation.ReadResponse() +86
    
    [OracleException (0x80004005): ORA-12570: Network Session: Unexpected packet read error]
       OracleInternal.ConnectionPool.PoolManager`3.Get(ConnectionString csWithDiffOrNewPwd, Boolean bGetForApp, String affinityInstanceName, Boolean bForceMatch) +5643
       OracleInternal.ConnectionPool.OraclePoolManager.Get(ConnectionString csWithNewPassword, Boolean bGetForApp, String affinityInstanceName, Boolean bForceMatch) +1381
       OracleInternal.ConnectionPool.OracleConnectionDispenser`3.Get(ConnectionString cs, PM conPM, ConnectionString pmCS, SecureString securedPassword, SecureString securedProxyPassword) +1583
       Oracle.ManagedDataAccess.Client.OracleConnection.Open() +3837
       OracleClientSpikeMvc.Controllers.HomeController.Oracle() +65
       lambda_method(Closure , ControllerBase , Object[] ) +79
       System.Web.Mvc.ReflectedActionDescriptor.Execute(ControllerContext controllerContext, IDictionary`2 parameters) +242
       System.Web.Mvc.ControllerActionInvoker.InvokeActionMethod(ControllerContext controllerContext, ActionDescriptor actionDescriptor, IDictionary`2 parameters) +39
       System.Web.Mvc.Async.AsyncControllerActionInvoker.<BeginInvokeSynchronousActionMethod>b__39(IAsyncResult asyncResult, ActionInvocation innerInvokeState) +12
       System.Web.Mvc.Async.WrappedAsyncResult`2.CallEndDelegate(IAsyncResult asyncResult) +139
       System.Web.Mvc.Async.AsyncInvocationWithFilters.<InvokeActionMethodFilterAsynchronouslyRecursive>b__3d() +112
       System.Web.Mvc.Async.<>c__DisplayClass46.<InvokeActionMethodFilterAsynchronouslyRecursive>b__3f() +452
       System.Web.Mvc.Async.<>c__DisplayClass33.<BeginInvokeActionMethodWithFilters>b__32(IAsyncResult asyncResult) +15
       System.Web.Mvc.Async.<>c__DisplayClass2b.<BeginInvokeAction>b__1c() +37
       System.Web.Mvc.Async.<>c__DisplayClass21.<BeginInvokeAction>b__1e(IAsyncResult asyncResult) +241
       System.Web.Mvc.Controller.<BeginExecuteCore>b__1d(IAsyncResult asyncResult, ExecuteCoreState innerState) +29
       System.Web.Mvc.Async.WrappedAsyncVoid`1.CallEndDelegate(IAsyncResult asyncResult) +111
       System.Web.Mvc.Controller.EndExecuteCore(IAsyncResult asyncResult) +53
       System.Web.Mvc.Async.WrappedAsyncVoid`1.CallEndDelegate(IAsyncResult asyncResult) +19
       System.Web.Mvc.MvcHandler.<BeginProcessRequest>b__5(IAsyncResult asyncResult, ProcessRequestState innerState) +51
       System.Web.Mvc.Async.WrappedAsyncVoid`1.CallEndDelegate(IAsyncResult asyncResult) +111
       System.Web.CallHandlerExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute() +606
       System.Web.HttpApplication.ExecuteStep(IExecutionStep step, Boolean& completedSynchronously) +288
    
    public ActionResult Oracle()
    {
        var connectionString = "Data Source=(DESCRIPTION=(ADDRESS=(PROTOCOL=tcp)(HOST=myhost)(PORT=1521))(CONNECT_DATA=(SERVICE_NAME=myservicename)));User Id=myuserid;Password=mypassword;";
        var conn = new OracleConnection(connectionString);
        conn.Open();
    
        var command = conn.CreateCommand();
        command.CommandText = "select sysdate from dual";
        command.CommandType = System.Data.CommandType.Text;
        var reader = command.ExecuteReader();
    
        if (!reader.HasRows)
            return Content("No rows returned");
    
        reader.Read();
    
        return Content(reader["sysdate"].ToString());
    }
    
    ORA-12537: Network Session: End of file
    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: OracleInternal.Network.NetworkException: ORA-12537: Network Session: End of file
    
    Source Error:
    
    An unhandled exception was generated during the execution of the current web request. Information regarding the origin and location of the exception can be identified using the exception stack trace below.
    
    Stack Trace:
    
    
    [NetworkException (0x30f9): ORA-12537: Network Session: End of file]
       OracleInternal.Network.ReaderStream.ReadIt(OraBuf OB, Int32 len) +294
       OracleInternal.Network.ReaderStream.ReadwithCrypto(OraBuf OB) +127
    
    [NetworkException (0x80004005): ORA-12570: Network Session: Unexpected packet read error]
       OracleInternal.Network.ReaderStream.ReadwithCrypto(OraBuf OB) +1188
       OracleInternal.Network.ReaderStream.Read(OraBuf OB) +88
       OracleInternal.TTC.OraBufReader.GetDataFromNetwork() +274
       OracleInternal.TTC.OraBufReader.Read(Boolean bIgnoreData) +46
       OracleInternal.TTC.MarshallingEngine.UnmarshalUB1(Boolean bIgnoreData) +16
       OracleInternal.TTC.TTCProtocolNegotiation.ReadResponse() +86
    
    [OracleException (0x80004005): ORA-12570: Network Session: Unexpected packet read error]
       OracleInternal.ConnectionPool.PoolManager`3.Get(ConnectionString csWithDiffOrNewPwd, Boolean bGetForApp, String affinityInstanceName, Boolean bForceMatch) +5643
       OracleInternal.ConnectionPool.OraclePoolManager.Get(ConnectionString csWithNewPassword, Boolean bGetForApp, String affinityInstanceName, Boolean bForceMatch) +1381
       OracleInternal.ConnectionPool.OracleConnectionDispenser`3.Get(ConnectionString cs, PM conPM, ConnectionString pmCS, SecureString securedPassword, SecureString securedProxyPassword) +1583
       Oracle.ManagedDataAccess.Client.OracleConnection.Open() +3837
       OracleClientSpikeMvc.Controllers.HomeController.Oracle() +65
       lambda_method(Closure , ControllerBase , Object[] ) +79
       System.Web.Mvc.ReflectedActionDescriptor.Execute(ControllerContext controllerContext, IDictionary`2 parameters) +242
       System.Web.Mvc.ControllerActionInvoker.InvokeActionMethod(ControllerContext controllerContext, ActionDescriptor actionDescriptor, IDictionary`2 parameters) +39
       System.Web.Mvc.Async.AsyncControllerActionInvoker.<BeginInvokeSynchronousActionMethod>b__39(IAsyncResult asyncResult, ActionInvocation innerInvokeState) +12
       System.Web.Mvc.Async.WrappedAsyncResult`2.CallEndDelegate(IAsyncResult asyncResult) +139
       System.Web.Mvc.Async.AsyncInvocationWithFilters.<InvokeActionMethodFilterAsynchronouslyRecursive>b__3d() +112
       System.Web.Mvc.Async.<>c__DisplayClass46.<InvokeActionMethodFilterAsynchronouslyRecursive>b__3f() +452
       System.Web.Mvc.Async.<>c__DisplayClass33.<BeginInvokeActionMethodWithFilters>b__32(IAsyncResult asyncResult) +15
       System.Web.Mvc.Async.<>c__DisplayClass2b.<BeginInvokeAction>b__1c() +37
       System.Web.Mvc.Async.<>c__DisplayClass21.<BeginInvokeAction>b__1e(IAsyncResult asyncResult) +241
       System.Web.Mvc.Controller.<BeginExecuteCore>b__1d(IAsyncResult asyncResult, ExecuteCoreState innerState) +29
       System.Web.Mvc.Async.WrappedAsyncVoid`1.CallEndDelegate(IAsyncResult asyncResult) +111
       System.Web.Mvc.Controller.EndExecuteCore(IAsyncResult asyncResult) +53
       System.Web.Mvc.Async.WrappedAsyncVoid`1.CallEndDelegate(IAsyncResult asyncResult) +19
       System.Web.Mvc.MvcHandler.<BeginProcessRequest>b__5(IAsyncResult asyncResult, ProcessRequestState innerState) +51
       System.Web.Mvc.Async.WrappedAsyncVoid`1.CallEndDelegate(IAsyncResult asyncResult) +111
       System.Web.CallHandlerExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute() +606
       System.Web.HttpApplication.ExecuteStep(IExecutionStep step, Boolean& completedSynchronously) +288
    
    错误消息:连接请求超时

    Connection request timed out
    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: Oracle.ManagedDataAccess.Client.OracleException: Connection request timed out
    
    Source Error:
    
    An unhandled exception was generated during the execution of the current web request. Information regarding the origin and location of the exception can be identified using the exception stack trace below.
    
    Stack Trace:
    
    
    [OracleException (0x80004005): Connection request timed out]
       OracleInternal.ConnectionPool.PoolManager`3.Get(ConnectionString csWithDiffOrNewPwd, Boolean bGetForApp, String affinityInstanceName, Boolean bForceMatch) +5643
       OracleInternal.ConnectionPool.OraclePoolManager.Get(ConnectionString csWithNewPassword, Boolean bGetForApp, String affinityInstanceName, Boolean bForceMatch) +1381
       OracleInternal.ConnectionPool.OracleConnectionDispenser`3.Get(ConnectionString cs, PM conPM, ConnectionString pmCS, SecureString securedPassword, SecureString securedProxyPassword) +1583
       Oracle.ManagedDataAccess.Client.OracleConnection.Open() +3837
       Oracle.ManagedDataAccess.EntityFramework.EFOracleProviderServices.GetDbProviderManifestToken(DbConnection connection) +234
       System.Data.Entity.Core.Common.DbProviderServices.GetProviderManifestToken(DbConnection connection) +118
    
    [ProviderIncompatibleException: The provider did not return a ProviderManifestToken string.]
       System.Data.Entity.Core.Common.DbProviderServices.GetProviderManifestToken(DbConnection connection) +459
       System.Data.Entity.Utilities.DbProviderServicesExtensions.GetProviderManifestTokenChecked(DbProviderServices providerServices, DbConnection connection) +40
    
    [ProviderIncompatibleException: An error occurred accessing the database. This usually means that the connection to the database failed. Check that the connection string is correct and that the appropriate DbContext constructor is being used to specify it or find it in the application's config file. See http://go.microsoft.com/fwlink/?LinkId=386386 for information on DbContext and connections. See the inner exception for details of the failure.]
       System.Data.Entity.Utilities.DbProviderServicesExtensions.GetProviderManifestTokenChecked(DbProviderServices providerServices, DbConnection connection) +126
       System.Collections.Concurrent.ConcurrentDictionary`2.GetOrAdd(TKey key, Func`2 valueFactory) +83
       System.Data.Entity.Infrastructure.DefaultManifestTokenResolver.ResolveManifestToken(DbConnection connection) +327
       System.Data.Entity.DbModelBuilder.Build(DbConnection providerConnection) +118
       System.Data.Entity.Internal.LazyInternalContext.CreateModel(LazyInternalContext internalContext) +94
       System.Data.Entity.Internal.RetryLazy`2.GetValue(TInput input) +248
       System.Data.Entity.Internal.LazyInternalContext.InitializeContext() +543
       System.Data.Entity.Internal.InternalContext.GetEntitySetAndBaseTypeForType(Type entityType) +26
       System.Data.Entity.Internal.Linq.InternalSet`1.Initialize() +72
       System.Data.Entity.Internal.Linq.InternalSet`1.get_InternalContext() +21
       System.Data.Entity.Infrastructure.DbQuery`1.System.Linq.IQueryable.get_Provider() +64
       System.Linq.Queryable.OrderBy(IQueryable`1 source, Expression`1 keySelector) +85
       OracleClientSpikeMvc.Controllers.HomeController.Index() +282
       lambda_method(Closure , ControllerBase , Object[] ) +79
       System.Web.Mvc.ReflectedActionDescriptor.Execute(ControllerContext controllerContext, IDictionary`2 parameters) +242
       System.Web.Mvc.ControllerActionInvoker.InvokeActionMethod(ControllerContext controllerContext, ActionDescriptor actionDescriptor, IDictionary`2 parameters) +39
       System.Web.Mvc.Async.AsyncControllerActionInvoker.<BeginInvokeSynchronousActionMethod>b__39(IAsyncResult asyncResult, ActionInvocation innerInvokeState) +12
       System.Web.Mvc.Async.WrappedAsyncResult`2.CallEndDelegate(IAsyncResult asyncResult) +139
       System.Web.Mvc.Async.AsyncInvocationWithFilters.<InvokeActionMethodFilterAsynchronouslyRecursive>b__3d() +112
       System.Web.Mvc.Async.<>c__DisplayClass46.<InvokeActionMethodFilterAsynchronouslyRecursive>b__3f() +452
       System.Web.Mvc.Async.<>c__DisplayClass33.<BeginInvokeActionMethodWithFilters>b__32(IAsyncResult asyncResult) +15
       System.Web.Mvc.Async.<>c__DisplayClass2b.<BeginInvokeAction>b__1c() +37
       System.Web.Mvc.Async.<>c__DisplayClass21.<BeginInvokeAction>b__1e(IAsyncResult asyncResult) +241
       System.Web.Mvc.Controller.<BeginExecuteCore>b__1d(IAsyncResult asyncResult, ExecuteCoreState innerState) +29
       System.Web.Mvc.Async.WrappedAsyncVoid`1.CallEndDelegate(IAsyncResult asyncResult) +111
       System.Web.Mvc.Controller.EndExecuteCore(IAsyncResult asyncResult) +53
       System.Web.Mvc.Async.WrappedAsyncVoid`1.CallEndDelegate(IAsyncResult asyncResult) +19
       System.Web.Mvc.MvcHandler.<BeginProcessRequest>b__5(IAsyncResult asyncResult, ProcessRequestState innerState) +51
       System.Web.Mvc.Async.WrappedAsyncVoid`1.CallEndDelegate(IAsyncResult asyncResult) +111
       System.Web.CallHandlerExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute() +606
       System.Web.HttpApplication.ExecuteStep(IExecutionStep step, Boolean& completedSynchronously) +288
    
    连接请求超时
    描述:执行当前web请求期间发生未处理的异常。请查看堆栈跟踪以了解有关错误的更多信息以及错误在代码中的起源。
    异常详细信息:Oracle.ManagedDataAccess.Client.OracleException:连接请求超时
    源错误:
    在执行当前web请求期间生成了未经处理的异常。有关异常的起源和位置的信息可以使用下面的异常堆栈跟踪来识别。
    堆栈跟踪:
    [OracleException(0x80004005):连接请求超时]
    OracleInternal.ConnectionPool.PoolManager`3.Get(ConnectionString CSWithDifforNewWD,Boolean bGetForApp,String AffinityInInstanceName,Boolean bForceMatch)+5643
    OracleInternal.ConnectionPool.OraclePoolManager.Get(ConnectionString csWithNewPassword,Boolean bGetForApp,String affinityInstanceName,Boolean bForceMatch)+1381
    OracleInternal.ConnectionPool.OracleConnectionDispenser`3.Get(ConnectionString cs、PM conPM、ConnectionString pmCS、SecureString securedPassword、SecureString SecuredProxy Password)+1583
    Oracle.ManagedDataAccess.Client.OracleConnection.Open()+3837
    Oracle.ManagedDataAccess.EntityFramework.EFOracleProviderServices.GetDbProviderManifestToken(DbConnection连接)+234
    System.Data.Entity.Core.Common.DbProviderServices.GetProviderManifestToken(DbConnection连接)+118
    [ProviderIncompatibleException:提供程序未返回ProviderManifestToken字符串。]
    System.Data.Entity.Core.Common.DbProviderServices.GetProviderManifestToken(DbConnection连接)+459
    System.Data.Entity.Utilities.DbProviderServicesExtensions.GetProviderManifestTokenChecked(DbProviderServices providerServices,DbConnection连接)+40
    [ProviderIncompatibleException:访问数据库时出错。这通常意味着与数据库的连接失败。请检查连接字符串是否正确,以及是否正在使用适当的DbContext构造函数指定该字符串或在应用程序的配置文件中查找该字符串。请参阅http://go.microsoft.com/fwlink/?LinkId=386386有关DbContext和连接的信息。有关失败的详细信息,请参阅内部异常。]
    System.Data.Entity.Utilities.DbProviderServicesExtensions.GetProviderManifestTokenChecked(DbProviderServices providerServices,DbConnection连接)+126
    System.Collections.Concurrent.ConcurrentDictionary`2.GetOrAdd(TKey,Func`2 valueFactory)+83
    System.Data.Entity.Infrastructure.DefaultManifestTokenResolver.ResolveManifestToken(DbConnection连接)+327
    System.Data.Entity.DbModelBuilder。