aspnetcore: Embedded views doesn't works after updating to .net core 3

In other to migrate from asp.net core 2.2 to asp.net core 3 I change the code for loading external views as the following :

services.Configure<MvcRazorRuntimeCompilationOptions>(options =>
            {
                options.FileProviders.Add(embeddedFileProvider);
            });

When running the project, I have the following error : InvalidOperationException: The view ‘Login’ was not found. The following locations were searched: /Views/Account/Login.cshtml /Views/Shared/Login.cshtml /Pages/Shared/Login.cshtml

About this issue

  • Original URL
  • State: closed
  • Created 5 years ago
  • Comments: 15 (7 by maintainers)

Most upvoted comments

@fpanaccia Could you please open a separate issue so that we can track and prioritize your issue appropriately?

Could you also include more details on what you are trying to accomplish and how? It’s unclear from the description in your comment and the repro project you provided.