实际上,它在本地系统上运行良好,但是在发布之后,我将这个应用程序托管在服务器上,然后它就不能工作了。
系统找不到指定的文件。0x80131904): A network-related or instance-specific error occurred while establishing a connection to SQLVerify that the instance name is correct and that SQL Server is configured to allow
当我在VS2010中打开解决方案时,我发现数据库资源管理器中的数据库连接不存在。现在,我希望项目连接到新PC本地的SQL Server数据库。我已经将数据库文件(.ldf和.mdf)移动到新位置,并在数据库资源管理器中创建了新连接。但是当我运行该程序时,它似乎没有获取任何数据。我还需要做哪些其他更改?编辑
我正在使用LINQ to SQL来查询数据库。
我使用C#中的SQL Server数据库在Visual Studio Community 2013上构建了一个ASP.NET网站。Exception Details: System.ComponentModel.Win32Exception: The system cannot0x80131904): A network-related or instance-specific error occurred while establishin