Web Application ASP.NET Core do not open home page

1k views Asked by At

I'm studying .net and created an asp.net core webapplication. I'm using .net core 3.1.

I started my application following Microsoft tutorial to start a web application on the link: https://learn.microsoft.com/pt-br/aspnet/core/getting-started/?view=aspnetcore-5.0&tabs=windows

So, for default, when an application is created and to be running, will be possible to access a default page like in the image: enter image description here.

But in my case, I received an error on the frontend but no error in the visual studio. See images: enter image description here

enter image description here

enter image description here

Now, after some tests, a new error has been showing on the web browser:

Não é possível acessar esse site
A conexão foi redefinida.
Tente:

Verificar a conexão
Verificar o proxy e o firewall
Executar o Diagnóstico de Rede do Windows
ERR_CONNECTION_RESET

So, I can't continue with my study.

Someone know how can I solve this problem?

1

There are 1 answers

0
Borbea On

My problem was that I accidentally deleted @page directive from .cshtml file. Without it the page is not registered and can't be accessed. It was a stupid mistake but I wasted hours to fix it.