# ASP.NET Application SQL database will only work on localhost

**URL:** https://forum.kirupa.com/t/asp-net-application-sql-database-will-only-work-on-localhost/219621
**Category:** programming
**Created:** [March 18, 2007, 7:32pm UTC](https://forum.kirupa.com/t/asp-net-application-sql-database-will-only-work-on-localhost/219621 "2007-03-18T19:32:02Z")
**Posts on this page:** 1
**Page:** 1

<div class="post-metadata">

### Author: ![Al6200](https://avatars.discourse-cdn.com/v4/letter/a/f19dbf/32.png) [@Al6200](https://forum.kirupa.com/u/Al6200)
#### Post date: [March 18, 2007, 7:32pm UTC](https://forum.kirupa.com/t/asp-net-application-sql-database-will-only-work-on-localhost/219621/1 "2007-03-18T19:32:02Z")

</div>

I have an ASP application that uses SQL Databases from Visual Studio. Everything works perfectly if the application is run on the localhost virtual server, but when put on a real server I get an ambiguous “Server Error” message whenever a page is loaded that uses the database.
