【问题标题】:Linq to SQL ImpersonationLinq to SQL 模拟
【发布时间】:2013-02-19 14:56:26
【问题描述】:

我有一个 ASP.MVC 3.0 应用程序。我的解决方案包含一个 Linq to SQL 项目 (.dbml)。 I0ve 选择将其放在不同的项目中,而不是放在 Web 应用程序项目中。我还有另一个“手动”连接到数据库(DAL)的项目。 我在网络服务器上部署我的应用程序,激活模拟和 Kerberos 委托。 DAL 的模拟工作正常,但由于未知原因,Linq to SQL 模拟无法正常工作。我错过了什么吗? 这是 web 应用程序的 web.config:

 <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>

我是否遗漏了服务器配置或委托中的某些内容?

【问题讨论】:

    标签: iis linq-to-sql impersonation kerberos


    【解决方案1】:

    这是我的项目中从 Linq 到 SQl 的 app.config:

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

    【讨论】:

      猜你喜欢
      • 2011-07-31
      • 2010-11-17
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多