我試圖遠程連接,我已經使用EF4 CTP5代碼首先如何連接到使用MVC3 EF4
<add name="ApplicationServicesX"
connectionString="provider=System.Data.SqlClient;provider connection string='Data Source=asc-svr2;
Initial Catalog=AdventureWorks;Integrated Security=True;Connection Timeout=60;
multipleactiveresultsets=true'" providerName="System.Data.EntityClient" />
我MVC3下面的連接字符串,它提供了一個錯誤遠程SQL Server 2008的
[ProviderIncompatibleException: The provider did not return a ProviderManifestToken string.]
和
Login failed. The login is from an untrusted domain and cannot be used with Windows authentication.
我的控制器看起來像這樣
public ActionResult Index()
{
var post = cmsDB.Posts.ToList();
return View(post);
}
當我運行我的本地機器上的代碼都沒有問題,但是當我進入 遠程連接到SQL Server 2008中的問題出現了。
非常感謝您的幫助。
遠程SQL服務器是否允許來自其他服務器的連接?命名管道或通過TCP/IP? – 2012-07-31 04:58:17