在开发阶段,我使用“真正的”IIS7.5服务器。该站点指向包含WebProjectDir\App_Data\database.mdf的web项目文件夹。该站点在ApplicationPoolIdentity下运行如下:当我运行应用程序时,我得到以下错误:
Failed to generate a user instance of SQL ServerException Details: System.Data.SqlClient.SqlException: Failed to generate a user instance of SQL
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 remote connections(provider: SQL Network Interfaces, error: 52 - Unable to locate a