Click here to Skip to main content
16,022,054 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
See more:
I followed the procedure in How to Deploy ASP.NET Core Web API on IIS Windows Server || Deploy ASP.NET Web API on IIS .NET 7.0 - YouTube[^]. The developed WebAPI project runs well in debugging, https://localhost:7193/swagger/index.html[^]
Then I tried to deploy it on IIS7.0. However, I got HTTP Error 500.19 - Internal Server Error: The requested page cannot be accessed because the related configuration data for the page is invalid.
How can this bug be resolved? Thanks.

What I have tried:

Got the 500.19 error in deploying a WebAPI project
Posted

1 solution

You resolve it by making the configuration data valid. I know that sounds like it's not answering your question, but as we don't actually know what your configuration looks like (we can't see it, and we're not going to watch a random Youtube video), then there's not a lot more that we can do.

If necessary, post a comment on the Youtube page and hope that you get a response there; or tell us what your configuration actually is. I'm not a big fan of Youtube tutorials unless I know that the person delivering it has a reputation for excellence (e.g. Scott Hanselman). There are far too many people posting crappy videos in the hopes of becoming the next "big thing".
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900