Base solution for your next web application
Ends in:
01 DAYS
01 HRS
01 MIN
01 SEC
Open Closed

Version 11.0 Web.Host start error #10786


User avatar
0
hypernetbilisim created

ANZ version 11.0 angular/.NET Core

I get the following error when Web.host runs. The view 'Login' was not found. The following locations were searched:

But the swager is working.


5 Answer(s)
  • User Avatar
    0
    ismcagdas created
    Support Team

    Hi @hypernetbilisim

    We couldn't reproduce this problem.

    • Did you select "Single Solution" option while downloading your project ?

    • Could you check if you have Login view under "Views/UI/" folder ?

  • User Avatar
    0
    hypernetbilisim created

    Hi

    we used multiple solution and available on the login view

  • User Avatar
    0
    ismcagdas created
    Support Team

    Hi,

    Is it possible for you to share the project with [email protected] ? We may reproduce this problem on your solution.

    Thanks,

  • User Avatar
    0
    hypernetbilisim created

    To fix the problem:

    Inside the Startup.cs in the Web.Host project

    change

    Reference : https://docs.microsoft.com/en-us/aspnet/core/mvc/views/view-compilation?view=aspnetcore-6.0&tabs=visual-studio

  • User Avatar
    0
    musa.demir created

    Thanks hypernetbilisim

    The issue has been created after our meeting. https://github.com/aspnetzero/aspnet-zero-core/issues/4167