2
I have a project that was created on a machine and I have to give maintenance on it.
I copied the project to my current machine and when I try to open Solution/project I get the following message from Visual Studio:
http://localhost:52961 : error : Error Opening web http://localhost:52961. The Web Site 'http://localhost:52961' is configured to use IIS Express as the web server but the URL is Currently configured on the local IIS web server. To open this Web Site, you must use IIS Manager to remove the bindings using this URL from the local IIS web server.
With this I realized that the project is running with iis express and not the site.
I tried to create a new site on the local IIS with localhost:52961 and put the files of my solution in there, but get IIS error in the browser, the error message is:
HTTP Error 500.19 - Internal Server Error
The requested page can not be accessed because the Configuration data Related to the page is invalid.
I’ve never really messed with IIS and ASP.NET so I may be doing some very wrong things.
I would like to open the project with IIS express the same way it is configured in the project.
Yeah. I did that. Now the following error message appears in visual studio: http://localhost:52961 : error : Error Opening web http://localhost:52961. Unable to open the Web site 'http://localhost:52961'. The Web server 'http://localhost:52961' could not be found. Since I brought this project from another machine, I probably have to configure iis express in order to open this new machine? If yes, how can I run this configuration?
– Denis Policarpo
At what point?
– Jéf Bueno
@Denispolicarpo No, IIS Express is configured by Visual Studio file.
– Jéf Bueno
This error message appears at the moment when I try to open the project in visual studio, when it is trying to load the project.
– Denis Policarpo
Open the SLN file in a text editor and look for the text Useiisexpress
– Jéf Bueno
I had this line, but it wasn’t on. I set it to: Useiisexpress = "true" Now the application is loaded, but when I try to open it in the browser an error appears. I will edit my main post above to post the error message.
– Denis Policarpo
@Denispolicarpo If you solved the first error. Open a question with the new, keep editing the question is not a good idea...
– Jéf Bueno
Beauty...I will open a new topic...thank you very much!
– Denis Policarpo