“/nyexp”应用程序中的服务器错误。
--------------------------------------------------------------------------------
Could not create an environment: OCIEnvCreate returned -1.
说明: 执行当前 Web 请求期间,出现未处理的异常。请检查堆栈跟踪信息,以了解有关该错误以及代码中导致错误的出处的详细信息。
异常详细信息: System.Exception: Could not create an environment: OCIEnvCreate returned -1.
源错误:
行 81: Sub connect()
行 82: If myconn.State = ConnectionState.Closed Then
行 83: myconn.Open()
行 84: End If
行 85: End Sub
源文件: c:inetpubwwwrootnyexpflsh_blq_setup_pre.aspx.vb 行: 83
堆栈跟踪:
[Exception: Could not create an environment: OCIEnvCreate returned -1.]
System.Data.OracleClient.DBObjectPool.GetObject(Object owningObject, Boolean& isInTransaction)
System.Data.OracleClient.OracleConnectionPoolManager.GetPooledConnection(String encryptedConnectionString, OracleConnectionString options, OracleConnection owningObject, Boolean& isInTransaction)
System.Data.OracleClient.OracleConnection.OpenInternal(OracleConnectionString parsedConnectionString, Object transact)
System.Data.OracleClient.OracleConnection.Open()
nyexp.flsh_blq_setup_pre.connect() in c:inetpubwwwrootnyexpflsh_blq_setup_pre.aspx.vb:83
nyexp.flsh_blq_setup_pre.nextstep_Click(Object sender, EventArgs e) in c:inetpubwwwrootnyexpflsh_blq_setup_pre.aspx.vb:136
System.Web.UI.WebControls.Button.OnClick(EventArgs e)
System.Web.UI.WebControls.Button.System.Web.UI.IPostBackEventHandler.RaisePostBackEvent(String eventArgument)
System.Web.UI.Page.RaisePostBackEvent(IPostBackEventHandler sourceControl, String eventArgument)
System.Web.UI.Page.RaisePostBackEvent(NameValueCollection postData)
System.Web.UI.Page.ProcessRequestMain()
--------------------------------------------------------------------------------
版本信息: Microsoft .NET Framework 版本:1.1.4322.573; ASP.NET 版本:1.1.4322.573
===================================================================
解决:
1。应该是ASP.Net匿名用户的权限太小了。把它加入到管理员组就好了。
然后别忘了运行:iisreset.exe否则不起作用。
2。问题是ntfs文件格式下,oracle的oracle_home目录的权限较小,把这个目录的权限放开就好了
3。PATH等环境变量设置好了吗?
看来跟Oracle没关系,更多应该是asp.net的配置问题
浙公网安备 33010602011771号