转自codeproject,找了半天解决办法,这个最靠谱. 我数据库用的EF做ORM,在vs里面测试的时候不会出现这个错误,用IIS就出错了.解决方法如下 Solution for "The underlying provider failed on Open" exception. By venugopalm, 11 Nov 2010 As you guys know that I am posting enterprise architecture design artic…
在登录系统,通过linq查询时发生错误,the underlying provider failed on open,如何解决,请看: Step 1:Open Internet Information Service ManagerStep 2:Click on Application Pools in left navigation tree.Step 3:Select your version Pool. In my case, I am using ASP .Net v4.0. If yo…
异常详细:An exception of type 'System.Data.Entity.Core.EntityException' occurred in EntityFramework.SqlServer.dll but was not handled in user codeAdditional information: The underlying provider failed on Open. 原因分析:数据库连接使用的是集成模式,改为Sqlserver身份验证模式即可 用sqls…
场景:IIS默认站点建立程序,使用Windows集成身份验证方式,连接SQLServer数据库也是采用集成身份验证.我报“System.Data.EntityException: The underlying provider failed on Open.”这个错误是因为计算机登录密码改过,导致之前应用程序池设置的凭证错误,解决办法:把应用程序池的登录凭证也修改一下改成和计算机登录密码一样,这样程序就好了. 步骤: 新增一个应用程序: IIS Default Web Site-->Add Ap…
今天试着学习了Entity Frame Work遇到的问题是 The Entity Framework provider type 'System.Data.Entity.SqlServer.SqlProviderServices, EntityFramework.SqlServer' registered in the application config file for the ADO.NET provider with invariant name 'System.Data.SqlCli…