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

3

9

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?

Holle answered 5/3, 2014 at 7:10 Comment(1)
did you ever figure this outGermanium
D
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.

Dishonor answered 3/5, 2017 at 8:38 Comment(0)
S
3

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

Speculator answered 1/3, 2018 at 17:34 Comment(0)
H
0

Just had the same issue on VS (Visual Studio) 2017 this morning. The steps that will resolve this are:

  1. Stop project that runs in VS
  2. Clean all IIS instances that VS temporarily created
  3. Compile project and start that service again
Hone answered 15/3, 2018 at 15:46 Comment(0)

© 2022 - 2024 — McMap. All rights reserved.