Error accessing a server hosted on a local IIS

-1

When I test my machine, the login works perfectly, when I share it over the network it returns me the following 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.   Can not create an automatic instance. See the Windows Application event   log for error details.

I am using the IIS 8.5 version, my application is of type WebForm Asp.Net, The login I use is the one that comes from the application.

    
asked by anonymous 25.03.2014 / 13:54

1 answer

0

The problem may be that you are using a local database during development, but this database does not exist on the target machine, ie the machine where you are hosting your application.

Possible solutions:

  • Change the connection string of the database to a database that is accessible from the target machine.

  • Or you can create a database directly on the target machine if that is possible.

25.03.2014 / 14:12