I have an ASP.NET web site created with WebMatrix 3. I do have the option in VS2013 checked to use the 64-bit version of IIS Express since I am running on 64-bit Windows 8.1. When I try to launch the project I get the error "An operation is not legal in the current state". Does anybody know how to fix this?
Asked
Active
Viewed 3,124 times
9
-
2did you ever figure this out – johnny 5 Mar 10 '17 at 03:58
3 Answers
3
I got this same error "An operation is not legal in the current state" when running a project on Google Chrome, Stopping the project then closing all chrome instances fixed the problem.
I think it's related to visual studio not being able to attach to chrome instance for debugging.

Chtioui Malek
- 11,197
- 1
- 72
- 69
0
Just had the same issue on VS (Visual Studio) 2017 this morning. The steps that will resolve this are:
- Stop project that runs in VS
- Clean all IIS instances that VS temporarily created
- Compile project and start that service again

Yusubov
- 5,815
- 9
- 32
- 69