Cannot find view but only when published to AWS Elastic Beanstalk

Benjamin Sims 21 Reputation points
2022-08-09T17:03:38.83+00:00

I have an ASP.NET 6 project that's working just fine when I have it running on my local machine, but when I publish up to AWS Elastic Beanstalk, it can't find any views. I've tried explicitly adding the views to the build, added MvcRazorCompileOnPublish to the csproj file, and tried setting the build to explicitly use x64, and none of these have fixed the issue. Is there any other steps I may have missed to make this publish properly?

ASP.NET Core
ASP.NET Core
A set of technologies in the .NET Framework for building web applications and XML web services.
4,400 questions
0 comments No comments
{count} votes

6 answers

Sort by: Most helpful
  1. Bruce (SqlWork.com) 61,731 Reputation points
    2022-08-12T00:45:08.4+00:00

    You don’t show your authentication code, but I suspect it has the bug.

    Note: it alway a best practice to test locally if deployment fails.