linq - Database problem moving from VS Development Server to IIS7 -


I have a project that I am trying to move to run on IIS7 instead of Visual Studio Development Server. Everything works on the VS Development Server, but when going to IIS7 it is unable to read anything from the database, but the database does not return the error, instead it gives a NullReferenceException to the information received from the database. The project uses the link to get information from DB, if it matters, besides, here is my connection string. I have tried not to take any advantage with it.

  & lt; Connection Seating & gt; & Lt; Add name = "MyProjectConnectionString" connectionString = "data source = MY-PC \ SQLEXPRESS; initial catalog = MyProjectsDB; integrated security = true" provider name = "System.Data.SqlClient" /> & Lt; / ConnectionStrings & gt; System Information: IIS7 Vista Business is running on SQL Server 2008 Express, and it works fine with Visual Studio Development Server and SQL Server 2008. Thanks for any input! 

This is a security problem you can try to use the SQL Server user / password or IIS The user can access that database. IIS user is probably a networker service


Comments

Popular posts from this blog

c++ - Linux and clipboard -

What is expire header and how to achive them in ASP.NET and PHP? -

sql server - How can I determine which of my SQL 2005 statistics are unused? -