Trying to create a simple login page in Asp.net C# but getting some error...
I googled about the error... Tried all the solutions but to no avail... What am I doing wrong? The error is:
"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: 26 - Error Locating Server/Instance Specified)"
I think it's something to do with my connection string which is as follows:
<add name="cn"
connectionString="server=HCL;DataBase=GS;Integrated Security=True" />
HCL is another machine connected to my PC through LAN and this database GS resides on it... Is the problem with the value I am giving in "Server" attribute of the above code? If not what else may I be doing wrong?
I can tell what all solutions I tried.. lemme know if that's required..thnx