How to publish App in visual studio 2017 with ASP.MVC 5

Asked

Viewed 289 times

0

Good afternoon, I am etudando ASP.MVC 5 and made a test app, published it in visual studio exporting to a directory and tried to climb the same in IIS on Windows 10.

I did all the procedure described on the site ASP and when trying to open appears Error HTTP 403.14 - Forbidden. I went to IIS, gave permission and when trying to open again, it lists the contents and does not open the APP. What could be wrong?

  • Gave permission on what? In the application directory?

  • Permission to search the directory, I think it is not necessary, just follow the recommendations of the error.

2 answers

0

In my case the problem was the version of Asp.NET installed next to IIS. See in the image below if you have the components installed

inserir a descrição da imagem aqui

Then go to IIS and change your app pool to the correct version of . NET Framework in my case, I created an Asp.NET MVC5 application. NET framework 4.5

inserir a descrição da imagem aqui

0


  • Leonardo, thanks for the answer, in case I had already given the permission to search as the link you gave me, the strange thing is that he is listing the content, but does not open the APP. In java (I am migrating due to the need of the company) always had an initial file type an index, but in ASP not.

  • In ASP net this "index" is the home of your main controller that you configure in route.config has the default route there, you created the home?

Browser other questions tagged

You are not signed in. Login or sign up in order to post.