Click here to Skip to main content
15,881,027 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
See more: , +
I have a web application done in c#, when I start it from visual studio, it works without problems, however when I try to upload it to IIS and open it via localhost it gives me this problem.

https://imgur.com/Eij19uo

What I have tried:

Googling I found possible solutions, i.e. changing the value of the variable from development to another, however it didn't work, I even tried to delete the variable, but nothing, it didn't work out. Would someone be kind enough to point me to a possible solution? Thanks: D
Posted
Updated 21-Mar-23 0:08am
Comments
Richard MacCutchan 21-Mar-23 4:34am    
You first need to find out what caused the error.

Read the error message: it gives you explicit instructions on what to do to get the actual error information.

You cannot solve this problem from that error message - nobody can - you need the actual error information that caused the system to show that. And the only way to get that is to do exactly what the error message you have says!
 
Share this answer
 
In reality it gives me the impression that the error says nothing, also because starting the web app from visual studio it works perfectly, however I went to the "Event Viewer", "Windows Logs", "Application" setting and you should find the error list with all the details, my problem was simply that the directory of the file containing the db connection string is not being displayed by IIS due to permission issues.
Thanks to those who answered the question, have a nice day :D
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900