Open Asp.net project/solution that are coming from another machine

Asked

Viewed 330 times

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.

1 answer

1


See what the mistake says:

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.

That is, your project is configured to use IIS Express with the URL localhost:52961, however, this URL is configured on some site on the local IIS.

Then, open the local IIS, find the website that is using this URL in bindings and change the address or remove the site.

  • 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?

  • At what point?

  • @Denispolicarpo No, IIS Express is configured by Visual Studio file.

  • 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.

  • Open the SLN file in a text editor and look for the text Useiisexpress

  • 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.

  • @Denispolicarpo If you solved the first error. Open a question with the new, keep editing the question is not a good idea...

  • Beauty...I will open a new topic...thank you very much!

Show 3 more comments

Browser other questions tagged

You are not signed in. Login or sign up in order to post.