I have a Windows 7 desktop with Visual Studio 2012 installed. I've developed a simple application on this machine that uses LINQ for CRUD operations into a database. The connection string looks as follows:
<connectionStrings><add name="MusicDatabaseConnectionString" connectionString="Data Source=(LocalDb)\v11.0;AttachDbFilename=|DataDirectory|\MusicDatabase.mdf;Integrated Security=SSPI;" providerName="System.Data.SqlClient" /></connectionStrings>
The web server I want to host on is a Windows Server 2008 first revision with service pack 2, so I'm unable to get Visual Studio 2012 installed. (Apparently I need Revision 2). I've also installed LocalDb files using Web PI.
I have the application on the server and when I load it up using Visual Studio as the web server software, the application loads fine and everything works.
However, when I cofigure the site as an application in IIS and browse to the site through IIS I get IE's error message "Cannot display the web page".
Browsing to the site from my desktop and using Chrome gives "500 - Internal server error"
I turned CustomErrors to RemoteOnly, Off, and On but I can't get any more detailed infomration as to what my error could be. In my head it has to be an IIS problem because the site works just fine through Visual Studio 2010's web server software but I'm not sure how to fix this.
Network Service and IIS_IUSRS have proper NTFS permissions on the directory.
Any suggestions please? Thank you!