Warning: file_get_contents(/data/phpspider/zhask/data//catemap/2/ssis/2.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Web.config文件错误:无法使用Azure mobile services访问SQL数据库_Azure_Xamarin.ios_Azure Mobile Services - Fatal编程技术网

Web.config文件错误:无法使用Azure mobile services访问SQL数据库

Web.config文件错误:无法使用Azure mobile services访问SQL数据库,azure,xamarin.ios,azure-mobile-services,Azure,Xamarin.ios,Azure Mobile Services,我正在使用一个Xamarin.iOS应用程序。我在Azure门户中将一个数据库从一个订阅导入到另一个订阅。然后,我打开Web Deploy.pubxml文件并更新目标路径,以指向新服务器和新数据库 我没有更新web.config文件中的任何内容。当我尝试登录我的应用程序时,日志中出现以下错误: IIS Detailed Error - 500.0 - Internal Server Error IIS was not able to access the web.config file for

我正在使用一个Xamarin.iOS应用程序。我在Azure门户中将一个数据库从一个订阅导入到另一个订阅。然后,我打开Web Deploy.pubxml文件并更新
目标路径
,以指向新服务器和新数据库

我没有更新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

连接字符串仍然指向web.config文件中的旧数据。这需要改变吗?如果是,我从何处检索新的connectionString?

经过一点调试后,我意识到web.config文件中引用了一些缺少的程序集。项目中缺少该包,但它仍在web.config文件中被引用

此库丢失:

<assemblyIdentity name="System.Web.Mvc" publicKeyToken="31bf3856ad364e35"/>


因此,我将System.Web.Mvc库添加到项目中,并更新了Web.config文件。

确保SQL server的防火墙设置正确。另外,我将从您的代码重新部署后端-这将纠正任何遗留的权限问题。您好@Adrian Hall,感谢您的回复。我确保服务器设置正确,除了我之外,其他所有人都不断收到错误信息。经过进一步调试后,我意识到web.config文件中引用了一些缺少的程序集,因此出现了错误。我要发布我的答案。