Azure云服务:“不允许请求的注册表访问"

时间:2018-01-09 09:28:24

标签: c# azure visual-studio-2017 azure-web-roles azure-cloud-services

我一直在尝试将新的云服务(Web角色)部署到Azure。它在我的本地机器上没有问题。 但是当我部署服务状态时总是忙碌

使用IntelliTrace日志我发现它一直在尝试阅读"安全性"不存在的注册表项,以及ASP.NET进程无权创建的注册表项。这与我的代码无关,而我最接近解决方案的是this related post,建议使用.NET 4.5.1。

  

由于其他Azure依赖项,我无法从.NET 4.5.2降级到4.5.1

     

问题:如何创建此注册表项?或让网络角色停止尝试访问它?

这是异常的一小部分,阻止我的进程启动:

Activated   Event   Event Time (UTC+00:00)  Thread
  Registry: Opening "Windows Azure Runtime 2.7.0.0". Trying to open the registry key "Windows Azure Runtime 2.7.0.0".   1/9/2018 6:07:11 AM [2672] <No Name> 
Activated   Event   Event Time (UTC+00:00)  Thread
  Registry: Opened "". Tried to open registry key "".  If the attempt failed, null was returned.  To determine which key was accessed, see the previous diagnostic event in this thread.    1/9/2018 6:07:11 AM [2672] <No Name> 
Activated   Event   Event Time (UTC+00:00)  Thread
  Registry: Closed "HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\EventLog\Key Management Service". Closed Registry key "HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\EventLog\Key Management Service".  1/9/2018 6:07:11 AM [2672] <No Name> 

Activated   Event   Event Time (UTC+00:00)  Thread
  Registry: Opening "Security". Trying to open the registry key "Security". 1/9/2018 6:07:11 AM [2672] <No Name> 
Activated   Event   Event Time (UTC+00:00)  Thread
  Exception: Exception thrown: 'System.Security.SecurityException' in CommonLanguageRuntimeLibrary ("Requested registry access is not allowed."). Exception thrown: 'System.Security.SecurityException' in CommonLanguageRuntimeLibrary ("Requested registry access is not allowed.")   1/9/2018 6:07:11 AM [2672] <No Name> 
Activated   Event   Event Time (UTC+00:00)  Thread
  Exception: Exception caught: 'System.Security.SecurityException' in System.dll ("Requested registry access is not allowed."). Exception caught: 'System.Security.SecurityException' in System.dll ("Requested registry access is not allowed.")   1/9/2018 6:07:11 AM [2672] <No Name> 

Activated   Event   Event Time (UTC+00:00)  Thread
  Registry: Opening "System". Trying to open the registry key "System". 1/9/2018 6:07:11 AM [2672] <No Name> 
Activated   Event   Event Time (UTC+00:00)  Thread
  Registry: Opened "HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\EventLog\System". Tried to open registry key "HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\EventLog\System".  If the attempt failed, null was returned.  To determine which key was accessed, see the previous diagnostic event in this thread.    1/9/2018 6:07:11 AM [2672] <No Name> 

0 个答案:

没有答案
相关问题