Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

"An operation is not legal in the current state" error when trying to launch ASP.NET project in VS2013?

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?

like image 707
Robert Oschler Avatar asked Mar 05 '14 07:03

Robert Oschler


2 Answers

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.

like image 93
Chtiwi Malek Avatar answered Sep 28 '22 17:09

Chtiwi Malek


Closing Chrome and restarting IIS (e.g. in IIS Manager) should solve the issue. It helped in my case.

like image 39
kenorb Avatar answered Sep 28 '22 17:09

kenorb