Migrating an MVC project from local Azure-SQL Server issues

I am trying to publish my site on the Internet using Azure and Visual Studio. Before that, I developed my local machine using a local database. I used the Entity Framework and the first code model.

I tried this tutorial to try and set up my site. The site is working, and I can access it through the domain * .azurewebsites.net.

My problem is that whenever I do something related to accessing the database, for example, to register an account, the site gives me a blank 404 page. I look at the database and the tables are not created as usual , with the Entity Framework. I don’t care about the loss of local database data - all this just checks the stuff.

In my project, I have a file called MySiteName - Web Deploy.pubxml that contains the correct connection string.

I can connect to Azure SQL Server from SSMS on my local machine so that there are no problems.

How can I solve the problem? I am completely new to Azure, so I don’t know where to start.

+4
source share
1 answer

In the Web Config file add

<!-- Web.Config Configuration File -->

<configuration>
    <system.web>
        <customErrors mode="Off"/>
    </system.web>
</configuration>

First find the error, try to clear

0
source

All Articles