Skip to content

Running MvcSandbox sample project from source through ANCM fails with 500.33 error #24304

@seangwright

Description

@seangwright

Describe the bug

Building the source works well when following the instructions outlined in BuildFromSource.md.

However, when trying to run MvcSandbox in Visual Studio using ANCM, the ANCM integration fails with HTTP Error 500.33 - ANCM Request Handler Load Failure.

To Reproduce

Follow the steps in BuildFromSource.md and try to run the MvcSandbox project through ANCM.

Exceptions (if any)

HTTP Error 500.33 - ANCM Request Handler Load Failure
Common solutions to this issue:
Make sure Microsoft.AspNetCore.App is referenced by your application.
Specific error detected by ANCM:
Could not find the assembly 'aspnetcorev2_inprocess.dll' referenced for the in-process application. Please confirm the Microsoft.AspNetCore.Server.IIS or Microsoft.AspNetCore.App is referenced in your application.
Troubleshooting steps:
Check the system event log for error messages
Enable logging the application process' stdout messages
Attach a debugger to the application process and inspect
For more information visit: https://go.microsoft.com/fwlink/?LinkID=2028526

Further technical details

I'm working out of the release/3.1 branch since I'm working on 3.1 projects, so the instructions are slightly different from master currently.

As noted in this comment

we haven't done the work to get inprocess working in samples because we removed the dependency on building native by default.

This isn't a huge issue since running the app through Kestrel works fine, but maybe it would be helpful to add a README.md to the MVC README.md to indicate ANCM cannot be used or to a new README.md in the MvcSandbox folder.

I just spent 3 hours trying to get this to work thinking I had VS, the SDK, or the ANCM module misconfigured... 🤦‍♂️.

I'd be happy to make a PR!

I appreciate how (relatively) painless it was to get the source running locally, so thanks for the work that went into that.

Metadata

Metadata

Assignees

No one assigned

    Labels

    area-infrastructureIncludes: MSBuild projects/targets, build scripts, CI, Installers and shared framework

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions