net webservice访问oracle数据库,报以下错误,有没有大虾碰到过
1个回答
展开全部
你好,环境与原来有什么不同,防火墙一类的问题。
System.Web.Services.Protocols.SoapException: Server was unable to process request. ---> System.Exception: OCIEnvCreate failed with return code -1 but error message text was not available.
at System.Data.ProviderBase.DbConnectionPool.GetConnection(DbConnection owningObject)
at System.Data.ProviderBase.DbConnectionFactory.GetConnection(DbConnection owningConnection)
at System.Data.ProviderBase.DbConnectionClosed.OpenConnection(DbConnection outerConnection, DbConnectionFactory connectionFactory)
at System.Data.OracleClient.OracleConnection.Open()
at CFWebService.Oracle.OracleHelper.PrepareCommand(OracleCommand command, OracleConnection connection, OracleTransaction trans, CommandType cmdType, String cmdText, OracleParameter[] commandParameters) in d:\wwwroot\WebService\App_Code\OracleHelper.cs:line 335
at CFWebService.Oracle.OracleHelper.ExecuteDataSet(String cmdText, OracleParameter[] commandParameters) in d:\wwwroot\WebService\App_Code\OracleHelper.cs:line 173
at WebServiceHandler.SelectProductBySaleSate(Boolean isSale) in d:\wwwroot\WebService\App_Code\WebServiceHandler.cs:line 87
--- End of inner exception stack trace
转载,仅供参考。
System.Web.Services.Protocols.SoapException: Server was unable to process request. ---> System.Exception: OCIEnvCreate failed with return code -1 but error message text was not available.
at System.Data.ProviderBase.DbConnectionPool.GetConnection(DbConnection owningObject)
at System.Data.ProviderBase.DbConnectionFactory.GetConnection(DbConnection owningConnection)
at System.Data.ProviderBase.DbConnectionClosed.OpenConnection(DbConnection outerConnection, DbConnectionFactory connectionFactory)
at System.Data.OracleClient.OracleConnection.Open()
at CFWebService.Oracle.OracleHelper.PrepareCommand(OracleCommand command, OracleConnection connection, OracleTransaction trans, CommandType cmdType, String cmdText, OracleParameter[] commandParameters) in d:\wwwroot\WebService\App_Code\OracleHelper.cs:line 335
at CFWebService.Oracle.OracleHelper.ExecuteDataSet(String cmdText, OracleParameter[] commandParameters) in d:\wwwroot\WebService\App_Code\OracleHelper.cs:line 173
at WebServiceHandler.SelectProductBySaleSate(Boolean isSale) in d:\wwwroot\WebService\App_Code\WebServiceHandler.cs:line 87
--- End of inner exception stack trace
转载,仅供参考。
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询