Swagger page is blank - asp.net-core

I am running this .net core 3.1 api project and i got swashbuckle installed and configured swagger on the startup. However when i navigate to http://localhost:5000/swagger/index.html the page is totally empty. Can someone advise how to properly configure the project?

Related

How do I troubleshoot auto-refresh failing silently in ASP.NET Core 5?

I read about the Auto-refresh capability introduced in ASP.NET Core 5 with .NET 5. I upgraded my Blazor site to .NET 5, and thought it would just work, but it doesn't seem to be working for me.
I used to use Westwind.AspNetCore.LiveReload, but I have removed it to try this out.
When I make a change, the app rebuilds and restarts web server for me, but the browser doesn't refresh. This is a project I upgraded from .NET Core 3.1. Is there anything that needs to be done in startup.cs to enable this? What else could be interfering? How can I troubleshoot?
You can livereload page using methods mentioned in that question answers
.NET Core MVC Page Not Refreshing After Changes

ASP.NET CORE do not render ViewComponents when the application is part of website

I deployed ASP.NET core 2.2 application to IIS 6. It is working and displays all forms. I have a request to have this application to be part of big website. I copied application to another directory and changed hostingModel from inprocess to outofprocess in web.config file. Now the application can be viewed with other applications, however it does not display any ViewComponents in it. Any advice will be greatly appreciated.
Thank you.
I was using JavaScript to invoke ViewComponents and it was worked good when the web application is stand alone. However, if it is a part of web site it is not working. I did not find the reason, I just set invocation of ViewComponents in Razor page, instead of JavaScript, and it started to work normally.

Web page not found .net core 2.1

I am new to working with asp.net core 2.1, I have added few Razor Views but on publishing application to azure, I am unable to access those pages. I get "no web page was found" error.
Here is My Solution explorer
I guess there is an issue with StartUp.cs wherein, I need to route things but I didn't find proper documentation since I am using .net core 2.1.

how to run API and website on same IIS site

i have
serverside blazor project (website)
web API made with entity framework core
both target 3.1. and as selfcontained projects.
my API routes are xxxxxx.com/api/*
i'm using unoeuro so dont have full control over the IIS as i understand it.
i can convert to applications, so i tried making a API folder and turn it into an application. But i guess there is something i need to change. Because when deploy the API it works, but then when i deploy the website the API stops working and gives me.
HTTP Error 500.0 - ANCM In-Process Handler Load Failure
Common causes of this issue:
The specified version of Microsoft.NetCore.App or Microsoft.AspNetCore.App was not found.
So is there a file i need to specify this setup in.
What i had to do was, run my api as a outofprocess application.
<PropertyGroup>
<AspNetCoreHostingModel>OutOfProcess</AspNetCoreHostingModel>
</PropertyGroup>
and change my AspNetCoreModuleV2 to AspNetCoreModule in web.config

How to publish service on IIS using ASP.NET Boilerplate?

As there is no documentation, Could you please provide steps to publish ASP.NET Boilerplate service on IIS Server
All the steps are same for Asp.Net Core which we have for a classical Asp.Net web application.
First, you need to install the .NET Core Hosting Bundle. Please find the steps below.
Navigate to the .NET All Downloads page.
Select the latest non-preview .NET Core runtime from the list (.NET
Core > Runtime > .NET Core Runtime x.y.z). Unless you intend to work
with preview software, avoid runtimes that have the word "preview" in
their link text.
On the .NET Core runtime download page under Windows, select the
Hosting Bundle Installer link to download the .NET Core Hosting
Bundle.
After all the above steps just follow the steps which you do for Asp.Net web application.