Error logging in to server hosted on local IIS

Asked

Viewed 101 times

-1

When I test on my machine the login works perfectly, when I share over the network 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. (Preview: 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 am using version IIS 8.5, my application is of type Webform Asp.Net, The login I use is the one that already comes from the application.

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 database connection string to a database that is accessible from the target machine.

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

Browser other questions tagged

You are not signed in. Login or sign up in order to post.