简体   繁体   中英

IIS hosted profect on local machine cannot access SQL server database

It gives error after publishing site on IIS. I have include the database file before publishing the site. I am trying to access the site locally using localhost or the IP address. ERROR: A network-related or instance-specific error occurred while establishing a connection to SQL Server. The server was not found or was not accessible. Verify that the instance name is correct and that SQL Server is configured to allow remote connections. (provider: SQL Network Interfaces, error: 50 - Local Database Runtime error occurred. Cannot create an automatic instance. See the Windows Application event log for error details. )

在将Identity更改为LocalSystem并将服务器名称(LocalDb)\\ v11.0选择为INNOVATE8-PC后,它可以工作。

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM