VS2005(ASP.NET+C#) + ORACLE 9(数据库在本机上)
开发环境中正常,发布后连接数据库出错!在连接Open()的时候。
连接串 "Provider=MSDAORA.1;Password=pwpw;User ID=hy;Data Source=ss "
“/JzxSl”应用程序中的服务器错误。
--------------------------------------------------------------------------------
Error while trying to retrieve text for error ORA-01019
说明: 执行当前 Web 请求期间,出现未处理的异常。请检查堆栈跟踪信息,以了解有关该错误以及代码中导致错误的出处的详细信息。
异常详细信息: System.Data.OleDb.OleDbException: Error while trying to retrieve text for error ORA-01019
源错误:
执行当前 Web 请求期间生成了未处理的异常。可以使用下面的异常堆栈跟踪信息确定有关异常原因和发生位置的信息。
堆栈跟踪:
[OleDbException (0x80004005): Error while trying to retrieve text for error ORA-01019]
System.Data.OleDb.OleDbConnectionInternal..ctor(OleDbConnectionString constr, OleDbConnection connection) +1054737
System.Data.OleDb.OleDbConnectionFactory.CreateConnection(DbConnectionOptions options, Object poolGroupProviderInfo, DbConnectionPool pool, DbConnection owningObject) +53
System.Data.ProviderBase.DbConnectionFactory.CreateNonPooledConnection(DbConnection owningConnection, DbConnectionPoolGroup poolGroup) +27
System.Data.ProviderBase.DbConnectionFactory.GetConnection(DbConnection owningConnection) +47
System.Data.ProviderBase.DbConnectionClosed.OpenConnection(DbConnection outerConnection, DbConnectionFactory connectionFactory) +105
System.Data.OleDb.OleDbConnection.Open() +37
_Default.Btn_lg_Click(Object sender, EventArgs e) +99
System.Web.UI.WebControls.Button.OnClick(EventArgs e) +105
System.Web.UI.WebControls.Button.RaisePostBackEvent(String eventArgument) +107
System.Web.UI.WebControls.Button.System.Web.UI.IPostBackEventHandler.RaisePostBackEvent(String eventArgument) +7
System.Web.UI.Page.RaisePostBackEvent(IPostBackEventHandler sourceControl, String eventArgument) +11
System.Web.UI.Page.RaisePostBackEvent(NameValueCollection postData) +33
System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +5102
--------------------------------------------------------------------------------
版本信息: Microsoft .NET Framework 版本:2.0.50727.42; ASP.NET 版本:2.0.50727.210
------解决方案--------------------------------------------------------
连接字符串没写对?
http://www.linuxts.com/modules/wordpress/?m=200502
看看这中可能会吗?
------解决方案--------------------------------------------------------
关注
------解决方案--------------------------------------------------------
1.进到oracle客户端安装的目录
2.打开 "工具 "选项
3.在 "查看 "中将 "使用简单文件共享 "置为非选中(是出现 "安全 "选项)
4.oracle客户端安装目录的 "安全 "选项中添加Authenticated Users用户组,并将它对应的Read&Excute权限去掉,然后重起
5.重启后再选中Read&Excute权限
----------------------------------------