简体   繁体   English

使用asp.net将OleDb连接用于SalesLogix时发生错误。无可用的错误消息,结果代码:E_FAIL(0x80004005)

[英]Error when using OleDb conneciton for SalesLogix using asp.net.No error message available, result code: E_FAIL(0x80004005)

I am using SalesLogix Connection Provider and it's a 32 bit driver. 我正在使用SalesLogix连接提供程序,它是32位驱动程序。 when I try to open connecton then following exception raises 当我尝试打开connecton时,出现以下异常

System.Data.OleDb.OleDbException (0x80004005): No error message available, result code: E_FAIL(0x80004005) System.Data.OleDb.OleDbException(0x80004005):无可用的错误消息,结果代码:E_FAIL(0x80004005)

I am using following connections string in both applicaiton(web and desktop) 我在applicaiton(网络和桌面)中都使用以下连接字符串

Provider=SLXOLEDB.1;Data Source=TestServer;Initial Catalog=SLXTestApp;User Id=Alex;Password=alex124;Persist Security Info=True;Extended Properties=Port=1706;Log=Off"

When I use same code with same connection string in desktop application(C#). 当我在桌面应用程序(C#)中使用具有相同连接字符串的相同代码时。 It open connection successfully and also get data with no error. 它成功打开了连接,并且没有错误地获取了数据。 But gives error me in asp.net 4.0 case. 但是在asp.net 4.0的情况下给我错误。

Following are configurations/settings of my application 以下是我的应用程序的配置/设置

1-Platform target in both applications are same ie x86 . 两个应用程序中的1-Platform目标相同,即x86
2-I am using IIS(7.5.7600.16385) on webserver 2008 R2 with 64 bit OS. 2-我在具有64位OS的Web服务器2008 R2上使用IIS(7.5.7600.16385)。
3-Enable 32-bit Applications is true in Application Pool. 3启用32位应用程序在应用程序池中为true。
4-Managed pipeline mode = Integrated 4受管管道模式=集成
5-Aspnet 4.0(C#) 5-Aspnet 4.0(C#)

The SalesLogix OLEDB Provider is 32 bit only. SalesLogix OLEDB提供程序仅为32位。 You need to run the IIS website in 32 bit mode in order to have access to the db. 您需要以32位模式运行IIS网站才能访问数据库。

See here for details: http://help.webcontrolcenter.com/KB/a1114/how-to-enable-32-bit-application-pool-iis-7-dedicatedvps.aspx 有关详细信息,请参见此处: http : //help.webcontrolcenter.com/KB/a1114/how-to-enable-32-bit-application-pool-iis-7-dedicatedvps.aspx

You seem to already have that set up... But double check just in case. 您似乎已经设置好了...但是仔细检查以防万一。

Then: is the driver working properly? 然后:驱动程序工作正常吗? The usual check is to run the SalesLogix LAN Client (install it if it's not already installed). 通常的检查是运行SalesLogix LAN客户端(如果尚未安装,请安装它)。 Possibly just running the client installation will fix the problem for you. 可能仅运行客户端安装将为您解决问题。

Edit: just to insert into the response another cause of this problem (which seems to be quite common) is the user account running the Application Pool, which should be Local System, usually. 编辑:只是在响应中插入此问题的另一个原因(这似乎很常见)是运行应用程序池的用户帐户,该帐户通常应为本地系统。

暂无
暂无

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 没有可用的错误消息,结果代码:E_FAIL(0x80004005) - No error message available, result code: E_FAIL(0x80004005) 没有可用的错误信息,结果代码:E_FAIL(0x80004005) - No error message available, result code: E_FAIL(0x80004005) 有人知道为什么 SQL Server 2005 抛出“'SQLOLEDB' failed with no error message available, result code: E_FAIL(0x80004005).”? - Anybody know why SQL Server 2005 throws "'SQLOLEDB' failed with no error message available, result code: E_FAIL(0x80004005). "? 尝试使用DSN连接到Informix数据库时,oledbConnection.Open()产生错误E_FAIL(0x80004005) - oledbConnection.Open() yields Error E_FAIL(0x80004005) when attempting to connect to Informix db using DSN IErrorInfo.GetDescription在asp.net c#中的E_FAIL(0x80004005)失败了? - IErrorInfo.GetDescription failed with E_FAIL(0x80004005) in asp.net c#? 未指定的错误(HRESULT的异常:0x80004005(E_FAIL))(Web服务) - Unspecified error (Exception from HRESULT: 0x80004005(E_FAIL)) (Web Service) ASP.net -2147467259(0x80004005)错误 - ASP.net -2147467259 (0x80004005) error IErrorInfo.GetDescription失败,显示E_FAIL(0x80004005)。.Surendra Marri - IErrorInfo.GetDescription failed with E_FAIL(0x80004005)..Surendra Marri Windows Search SQL:LIKE语句中的分号导致异常(E_FAIL 0x80004005) - Windows Search SQL: Semicolon in LIKE statement causes exception (E_FAIL 0x80004005) Bitmap.Save上的ASP.NET错误“异常(0x80004005):GDI +中发生了一般错误。” - ASP.NET error on Bitmap.Save “Exception (0x80004005): A generic error occurred in GDI+.”
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM