简体   繁体   中英

Connect Kentico through Azure SQL

I've followed this tutorial https://docs.kentico.com/k12sptutorial/mvc-development and successfully run it on localhost, however when I try to publish to Azure app service the connection string doesn't seem to work at all and I've tried all the fixes including changing region of all services to be in one region, whitelist IP addresses.

here is the link of the site: https://adia.azurewebsites.net 在此处输入图像描述

connection string:

Data Source=tcp:adiadb.database.windows.net,1433;Initial Catalog=adia;User Id=sqladmin@adiadb;Password=password

在此处输入图像描述

Please advice when went wrong. Thanks.

It looks like the DB is not available to other resources within Azure. You're able to connect with SQL Management Studio, but not the Web application. When you create the database, there is a checkbox to make it available to other resources within Azure. By default this is disabled. I'm not at my computer just now, but I'll update this when I am with a screenshot of where to check.

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