0

I have an asp.net website that runs on my localhost and creates records on Sql server 2008 on my machine. When i try to run this website over LAN (from an other pc) the pages that don’t have any relation with the database run.
The other pages that shows records don’t run.
Any solution for this?

Thanks in advance.

Mayuri
  • 402
  • 6
  • 13
Abhinav
  • 5
  • 6

1 Answers1

1
  1. Ensure your connection string is correctly pointing to the SQL Server with the right credentials.
  2. Ensure the SQL server can be connected remotely by opening up port 1433, 1434 etc in the Firewall. (else you'll get an error like 'a network-related or instance specific error...')

Why am I getting "Cannot Connect to Server - A network-related or instance-specific error"?

Community
  • 1
  • 1
Raja Nadar
  • 9,409
  • 2
  • 32
  • 41