Server Error in '/' Application.
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. )
I'm not sure, after I created a network service the problem occurs:
USE [master];
CREATE LOGIN [NT AUTHORITY\NETWORK SERVICE] FROM WINDOWS;
EXEC sp_addsrvrolemember N'NT AUTHORITY\NETWORK SERVICE', SYSADMIN;
I have tried to use different connection string to test my connection
Data Source=(localdb)\mssqllocaldb
//publishing and compiling error
But if I build & publish templating direct to local IP for the connection string, the error does not appear...
Data Source=192.168.100.233
//compiling error
I have no idea about this problem..