数据库连接因本地IIS而失败,但与IIS Express一起使用

时间:2015-07-28 21:47:09

标签: entity-framework iis-7 sql-server-2008-r2 iis-express

我正在使用Entity Framework开发MVC。我的解决方案能够连接到数据库,SQL Server 2008 R2,当我使用IIS Express运行我的解决方案时,一旦我更改为本地IIS,它就会开始抛出错误:grA = GROUP A BY colA; grACount = FOREACH grA GENERATE group as colA, COUNT(A.colA) as countColA; STORE grACount into 'grACount'; grACountFilter = FILTER grACount BY countColA>15; STORE grACountFilter into 'grACountFilter';

错误消息为:OlResponseStatus

我可以浏览不需要数据库连接的页面。

以下是web.config文件

An exception of type 'System.Data.Entity.Core.EntityException' occurred in EntityFramework.SqlServer.dll but was not handled in user code.

0 个答案:

没有答案