-
-
Notifications
You must be signed in to change notification settings - Fork 8
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
"ASP.NET Core Module is required" when running in Visual Studio #51
Comments
I have just tried this and I cannot reproduce it. Can you confirm which version of VS you have installed, and which operating system. It might also be useful to know if you have the global ANCM runtime installed. There is an issue with V17.5 of VS - but I'm not sure if this is related. I've tried V17.6.0P1.0 and V17.4.5. <add name="AspNetCoreModuleV2" image="%IIS_BIN%\Asp.Net Core Module\V2\aspnetcorev2.dll" /> For reference I used dotnet new systemwebfull -n test
cd test
start . Then opened test.csproj in VS2022 Pro. And the file generated was If I have time, I'm going to try this on the 'developer image in a box' available at https://developer.microsoft.com/en-us/windows/downloads/virtual-machines/ - I may have to add the ASP.NET and web development workload to that - I'm not sure if that is installed by default. |
@Bouke I've tried this on the windows developer image mentioned above and cannot replicate the issue you are describing. |
Do you have ANCM installed at all? It certainly isn't used when running systemweb based aspnet projects using this sdk, but maybe VS is doing an unnecessary check here. |
Has anyone solved this? I'm seeing it as well. |
Steps to reproduce
What happens
Visual Studio now shows this error message: "The ASP.NET Core Module is required to host ASP.NET Core projects in IIS Express and does not appear to be installed. Try repairing Visual Studio to correct the problem."
When I try to run the project in Rider, I need to disable the Core Module by removing the following from
applicationhost.config
.In Rider I can then run the project in IIS Express, but not debug it. The debug button becomes greyed out, so it's probably trying to start something or wait on something that doesn't happen.
What should happen
How can I run/debug the project with Visual Studio, and debug it with Rider?
Update
For Rider, there's a workaround documented here. Not ideal, but debugging works. I think that with Visual Studio's launch profiles one can achieve the same in Visual Studio.
The text was updated successfully, but these errors were encountered: