Skip to content
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

Using swagger with web.config in dotnet core web API #1422

Open
moaliba opened this issue Nov 21, 2021 · 0 comments
Open

Using swagger with web.config in dotnet core web API #1422

moaliba opened this issue Nov 21, 2021 · 0 comments

Comments

@moaliba
Copy link

moaliba commented Nov 21, 2021

Hi,
I develop a web API project using .net core 5, and I configure The project using swagger, and it works correctly. However, when I Add Web.config file to the project, It faces the problem and shows this error:
This page isn’t working localhost is currently unable to handle this request.
HTTP ERROR 500
This My Web.Confg file:
<?xml version="1.0" encoding="utf-8"?> <configuration> <system.webServer> <modules> <remove name="WebDAVModule" /> </modules> <handlers> <remove name="WebDAV" /> <add name="aspNetCore" path="*" verb="*" modules="AspNetCoreModuleV2" resourceType="Unspecified" /> </handlers> <aspNetCore stdoutLogEnabled="false" hostingModel="InProcess" /> </system.webServer> </configuration>

Any help will be appreciated,
Thanks.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant