Error localhost Visual Studio

3

My VS was working perfectly, today I bought and installed the kaspersky antivirus, when I was running an ASP.NET site (MVC) the following error appeared:

  

UNABLE TO START PROGRAM '' An operation is not   valid in the current state.

 How do I solve the problem?

    
asked by anonymous 23.02.2017 / 22:38

2 answers

6

Check your Firewall and try changing your port, probably an ISS problem. To configure follow the example here:

    
25.02.2017 / 14:44
1

Another simple option is to stop the IIS service and run the project again in Visual Studio. When you run (F5) your project again (by default) the visual studio will upload a new instance of IIS.

Here's how to stop the service in a simple and easy way:

  

I had the same problem and I quickly resolved that.

    
26.07.2017 / 02:17