Hello, I wrote a site on asp.net, to which the SQL database is also connected.

I deployed the site using IIS, but only those pages of the site that do not use the database work. How can I share this database to open these pages?

PS The diploma will be handed over soon, and I can’t even open the site normally Help me please.

  • In your current formulation of the question it will be very difficult to help you. You would add specifics: the site is written on pure asp.net or using mvc , how you work with the database ( ado | orm ), which mssql you use ( mssql , mysql , ...), what happens on those pages on Which DB is involved , if exception add it to the original question. - Bald
  • The site is written in asp.net using MVC. - Maxim Shinkarev
  • The site is written in asp.net using MVC. Microsoft SQL server is used, and I work with it on the pages using the Entity Framework (if I understood correctly). I did, following the example from the site professorweb.ru/my/ASP_NET/gamestore/level2/2_1.php On those pages on which the database is involved, this is the error: joxi.ru/Dr8KE4Rtk0qyBA - Maxim Shinkarev
  • make the appropriate changes to the original question using the edit button, insert the text of the exception with text and not with a picture, when addressing the user, do not forget to write the @ symbol in front of the user's nickname (then the notification will come). but essentially you have no connection with the database. Add a connection string to the original question - Bald
  • @Bald Here is the text of my connection string, which is located in Web.config: <connectionStrings> <add name = "EFDbContext" connectionString = "Data Source = (localdb) \ v11.0; Initial Catalog = Store; Integrated Security = True" providerName = "System.Data.SqlClient" /> </ connectionStrings> - Maxim Shinkarev

0