简体   繁体   中英

Error by publishing ASP.NET MVC site in Azure

An Error appears by creating new ASP.NET MVC web site with SQL Server (named "TestingAzure73737DB") in Azure. I have just started to using Azure. First 3 websites were created without any errors. But 2 sites, that I have created later gives me errors. I don't understand sence of this error. This is name of new SQL Server, that I want to create for new web site in Azure. What is problem with this server name?

My configuration:

  1. Visual Stufio 2013 Community
  2. Azure - free trial

What I'm doing:

  1. In VS create new ASP.NET MVC project with Azure
  2. Azure settings: new SQL server (TestingAzure73737DB), admin name and password.

Result: Website in Azure created, but with no DB. And I see error in Visual Studio Azure app service activity window: "Servername "TestingAzure73737DB" cannot be empty or null."

Thank you! Best regards, Dmitry

The server name must be all lowercase! Furthermore, only letters, numbers and the hyphen are allowed.

Try deleting your azure project and create a new one with the corrected server name.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM