Windows Azure的项目Web角色切入点主机停止错误 [英] Windows Azure Project web role entry point host stopped error

查看:258
本文介绍了Windows Azure的项目Web角色切入点主机停止错误的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我刚开始开发的Azure。
我已创建了Asp.net角色的Azure项目,但是当我尝试调试它没有使它提供了以下错误的任何变化:
Windows Azure的Web角色切入点主机已停止工作。


解决方案

  

    

检查您%USERPROFILE%\\ AppData的\\本地\\ Temp目录。你应该会看到几个文件有包括IISConfigurator.log


  

有关我在 SDK V1.6 路径是的%USERPROFILE%\\ AppData的\\本地\\ dftmp \\ IISConfiguratorLogs \\ IISConfigurator.log (注意与最新的SDK,的看起来他们已经改变了路径的)
问题是与该行的添加用户访问IUSR和NT AUTHORITY \\ NETWORK SERVICE到路径%MyPathOnTheBuildMachine%

  IISConfigurator信息:0:[00004816:00000004,2011/12/08 13:01:51.971]添加用户访问IUSR和NT AUTHORITY \\ NETWORK SERVICE到路径%MyPathOnTheBuildMachine%
IISConfigurator信息:0:[00004816:00000004,2011/12/08 13:01:51.972]捕捉到异常
IISConfigurator信息:0:[00004816:00000004,2011/12/08 13:01:51.974]异常:System.InvalidOperationException:方法出现意外错误code 3失败。
在System.Security.AccessControl.NativeObjectSecurity.CreateInternal(resourceType为的ResourceType,布尔isContainer,字符串名称,手柄的SafeHandle,AccessControlSections的includeSections,布尔createByName,ExceptionFromError code exceptionFromError code,对象exceptionContext)
在System.Security.AccessControl.DirectorySecurity..ctor(字符串名称,AccessControlSections的includeSections)
在System.IO.DirectoryInfo.GetAccessControl(AccessControlSections的includeSections)
在Microsoft.WindowsAzure.ServiceRuntime.IISConfigurator.FileManager.AddAllowAceIterative(DirectoryInfo的目录,FileSystemRights权利的IdentityReference []帐户)
在Microsoft.WindowsAzure.ServiceRuntime.IISConfigurator.FileManager.AddAllowAce(DirectoryInfo的目录,FileSystemRights权利,布尔继承的IdentityReference []帐户)
在Microsoft.WindowsAzure.ServiceRuntime.IISConfigurator.Security.AddAppPoolSidAceToVdir(字符串appPoolName,字符串sitePath,字符串appPoolSid)
在Microsoft.WindowsAzure.ServiceRuntime.IISConfigurator.IISConfigurator.Deploy(字符串角色ID,WebAppModel appModel,字符串roleRootDirectory,字符串sitesDestinationDirectory,字符串diagnosticsRootFolder,字符串roleGuid,Dictionary`2 globalEnvironment)

原来,我打包(cspack)我的解决方案在一台机器上,而是试图在另一个运行它(csrun)。所以它试图给权利一台机器上存在的目录,但在另一种不存在

这么多相信你cspack和csrun在同一台机器上的code(这可能不是当你自动构建和放大器的情况下,部署为例)。

I have just started development for Azure. I have created an Azure project with Asp.net role, but when I try to debug it without making any changes it gives the following error: "windows azure web role entry point host has stopped working".

解决方案

Check your %UserProfile%\AppData\Local\Temp directory. You should see a couple files there including IISConfigurator.log

For me on SDK v1.6 the path was %UserProfile%\AppData\Local\dftmp\IISConfiguratorLogs\IISConfigurator.log (be careful with the latest SDKs, it looks like they have changed the path) The problem was with the line 'Adding access to users IUSR and NT AUTHORITY\NETWORK SERVICE to path %MyPathOnTheBuildMachine%':

IISConfigurator Information: 0 : [00004816:00000004, 2011/12/08 13:01:51.971] Adding access to users IUSR and NT AUTHORITY\NETWORK SERVICE to path %MyPathOnTheBuildMachine%
IISConfigurator Information: 0 : [00004816:00000004, 2011/12/08 13:01:51.972] Caught exception
IISConfigurator Information: 0 : [00004816:00000004, 2011/12/08 13:01:51.974] Exception:System.InvalidOperationException: Method failed with unexpected error code 3.
at System.Security.AccessControl.NativeObjectSecurity.CreateInternal(ResourceType resourceType, Boolean isContainer, String name, SafeHandle handle, AccessControlSections includeSections, Boolean createByName, ExceptionFromErrorCode exceptionFromErrorCode, Object exceptionContext)
at System.Security.AccessControl.DirectorySecurity..ctor(String name, AccessControlSections includeSections)
at System.IO.DirectoryInfo.GetAccessControl(AccessControlSections includeSections)
at Microsoft.WindowsAzure.ServiceRuntime.IISConfigurator.FileManager.AddAllowAceIterative(DirectoryInfo dir, FileSystemRights rights, IdentityReference[] accounts)
at Microsoft.WindowsAzure.ServiceRuntime.IISConfigurator.FileManager.AddAllowAce(DirectoryInfo dir, FileSystemRights rights, Boolean inherit, IdentityReference[] accounts)
at Microsoft.WindowsAzure.ServiceRuntime.IISConfigurator.Security.AddAppPoolSidAceToVdir(String appPoolName, String sitePath, String appPoolSid)
at Microsoft.WindowsAzure.ServiceRuntime.IISConfigurator.IISConfigurator.Deploy(String roleId, WebAppModel appModel, String roleRootDirectory, String sitesDestinationDirectory, String diagnosticsRootFolder, String roleGuid, Dictionary`2 globalEnvironment)

It turned out that I packaged (cspack) my solution on one machine, but tried to run it (csrun) on the other one. So it tried to give the rights to the directory that exist on one machine, but doesn't exist on the other one.

So many sure you cspack and csrun your code on the same machine (which might not be the case when you do automated build&deploy for example).

这篇关于Windows Azure的项目Web角色切入点主机停止错误的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆