Skip to content

Cannot debug under VS2010 SP1 with IIS Express #4

@ericjohannsen

Description

@ericjohannsen

When I switched my MVC 3 project to use IIS Express rather than Cassini, I can no longer debug. I can however browse to the appropriate URL on localhost and view the website without debugging.

In Application_Error(), I get

The remote host closed the connection. The error code is 0x800704CD.

There is no inner exception, and the stack is:

at System.Web.Hosting.IIS7WorkerRequest.RaiseCommunicationError(Int32 result, Boolean throwOnDisconnect)
at System.Web.Hosting.IIS7WorkerRequest.ExplicitFlush()
at System.Web.HttpResponse.Flush(Boolean finalFlush)
at System.Web.HttpResponse.Flush()
at Rejuicer.RejuicerModule.context_BeginRequest(Object sender, EventArgs e)
at System.Web.HttpApplication.SyncEventExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute()
at System.Web.HttpApplication.ExecuteStep(IExecutionStep step, Boolean& completedSynchronously)

Changing

to

resolves the issue.

Note though that there is no issue either way debugging under Cassini.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions