2013-03-05 141 views
0

我有一個ASP.MVC 3.0應用程序。我的解決方案包含一個Linq to SQL項目(.dbml)。我已經選擇將它放在不同的項目中,而不是放在Web應用程序項目中。我還有另一個將「mannually」連接到數據庫(DAL)的項目。 我在Web服務器上部署我的應用程序,激活模擬和Kerberos委派。 DAL的模擬工作正常,但由於未知原因,Linq to SQL模擬不起作用。我想念什麼? 這裏是web.config中形成的Web應用程序:Linq to SQL Impersonation

<identity impersonate="true"/> 

這裏是從的LINQ to SQL項目的app.config:

<connectionStrings> 
    <add name="testConnectionString" 
     connectionString="Data Source=SERVERNAME;Initial Catalog=DBNAME;Integrated Security=True;" 
     providerName="System.Data.SqlClient" /> 
</connectionStrings> 

我懷念在服務器配置的東西,或者在代表團?

回答

0

下面是從的LINQ在app.config到SQL我的項目:

<connectionStrings> <add name="DefaultConnection" connectionString= "server=server name or ip addrress;database=dbname;uid=id;pwd=pass" providerName="System.Data.SqlClient" /> </connectionStrings>