Looking for some help with my first question here.
I've recently completed a small ASP.Net project focused on racing drivers and teams, which works well locally but encounters issues when deployed to Azure.
The first problem I've encountered is that the CSS doesn't load on the deployed version. The default pages - Home, About, and Contact - function correctly but lack styling. However, the custom pages I created from my models return an error page stating:
Error. An error occurred while processing your request.
These custom pages work fine in the local version of the project.
After researching online, I came across suggestions on Stackoverflow to set
<customErrors mode="Off"/>
for a more detailed error report. However, I couldn't locate this option in my Web.config or anywhere else in the project. Could it be that 'customErrors' is deprecated since I'm using Visual Studio Enterprise 2015?
I meticulously followed deployment guides given by my lecturer which have proven successful for others. Therefore, I am perplexed about where the issue may lie.
During deployment, I checked the "Execute code first migrations" box in the publish web/settings menu in Visual Studio. However, I noticed that there are two databases listed - ApplicationDBContext (defaultConnection) and MyModelContext (created by myself). Unfortunately, the checkbox for ApplicationDBContext was disabled, so I could only select the one for MyModelContext.
In my Web.config, I have two connection strings - one for DefaultConnection containing AspNetUsers tables and another named MyModelContext housing tables related to racing drivers and teams.
If needed, please let me know if I should provide more specific details about my issue.
My setup includes Visual Studio Enterprise 2015, SQL Server 2014, and Windows 10.
EDIT: I encountered the following error when opening the Package Manager Console. While unsure if it's related, I thought it might be helpful to mention.
The type initializer for 'System.Management.Automation.Runspaces.InitialSessionState' threw an exception.