Web.config file error: Unable to access SQL database with Azure mobile services
Web.config file error: Unable to access SQL database with Azure mobile services
我正在使用 Xamarin.iOS app.I 在 Azure 门户中将数据库从一个订阅导入到另一个订阅。然后我打开 Web Deploy.pubxml 文件并更新 Destination Path
以指向新服务器和新数据库。
我没有更新 web.config 文件中的任何内容。当我尝试登录我的应用程序时,我在日志中收到以下错误:
IIS Detailed Error - 500.0 - Internal Server Error
IIS was not able to access the web.config file for the Web site or application. This can occur if the NTFS permissions are set incorrectly
The authenticated user does not have permission to use this DLL
connectionString 仍然指向 web.config 文件中的旧数据。这需要改变吗?如果是,我从哪里检索新的 connectionString?
经过更多的调试,我意识到 web.config 文件中引用了一些缺少的程序集。该包从项目中丢失,但它仍在 web.config 文件中被引用。
缺少此库:
<assemblyIdentity name="System.Web.Mvc" publicKeyToken="31bf3856ad364e35"/>
所以我将 System.Web.Mvc 库添加到项目中并更新了 web.config 文件。
我正在使用 Xamarin.iOS app.I 在 Azure 门户中将数据库从一个订阅导入到另一个订阅。然后我打开 Web Deploy.pubxml 文件并更新 Destination Path
以指向新服务器和新数据库。
我没有更新 web.config 文件中的任何内容。当我尝试登录我的应用程序时,我在日志中收到以下错误:
IIS Detailed Error - 500.0 - Internal Server Error
IIS was not able to access the web.config file for the Web site or application. This can occur if the NTFS permissions are set incorrectly
The authenticated user does not have permission to use this DLL
connectionString 仍然指向 web.config 文件中的旧数据。这需要改变吗?如果是,我从哪里检索新的 connectionString?
经过更多的调试,我意识到 web.config 文件中引用了一些缺少的程序集。该包从项目中丢失,但它仍在 web.config 文件中被引用。
缺少此库:
<assemblyIdentity name="System.Web.Mvc" publicKeyToken="31bf3856ad364e35"/>
所以我将 System.Web.Mvc 库添加到项目中并更新了 web.config 文件。