c# - Azure 模拟器在启动 Web 角色后立即关闭。

标签 c# azure visual-studio-2015

当我在存储模拟器中本地运行云应用程序时,它会立即启动并关闭,并且在输出控制台中出现以下错误。

'WaIISHost.exe' (CLR v4.0.30319: WaIISHost.exe): Loaded 'C:\WINDOWS\Microsoft.Net\assembly\GAC_64\mscorlib\v4.0_4.0.0.0__b77a5c561934e089\mscorlib.dll'. Skipped loading symbols. Module is optimized and the debugger option 'Just My Code' is enabled. 'WaIISHost.exe' (CLR v4.0.30319: WaIISHost.exe): Loaded 'D:\AzureDev\EasyClinicCloudService\csx\Debug\roles\Admin\base\x64\WaIISHost.exe'. Skipped loading symbols. Module is optimized and the debugger option 'Just My Code' is enabled. 'WaIISHost.exe' (CLR v4.0.30319: WaIISHost.exe): Loaded 'C:\WINDOWS\Microsoft.Net\assembly\GAC_MSIL\Microsoft.WindowsAzure.ServiceRuntime\v4.0_2.7.0.0__31bf3856ad364e35\Microsoft.WindowsAzure.ServiceRuntime.dll'. Skipped loading symbols. Module is optimized and the debugger option 'Just My Code' is enabled. 'WaIISHost.exe' (CLR v4.0.30319: WaIISHost.exe): Loaded 'C:\WINDOWS\Microsoft.Net\assembly\GAC_MSIL\System\v4.0_4.0.0.0__b77a5c561934e089\System.dll'. Skipped loading symbols. Module is optimized and the debugger option 'Just My Code' is enabled. 'WaIISHost.exe' (CLR v4.0.30319: WaIISHost.exe): Loaded 'C:\WINDOWS\Microsoft.Net\assembly\GAC_MSIL\System.Core\v4.0_4.0.0.0__b77a5c561934e089\System.Core.dll'. Skipped loading symbols. Module is optimized and the debugger option 'Just My Code' is enabled. 'WaIISHost.exe' (CLR v4.0.30319: WaIISHost.exe): Loaded 'C:\WINDOWS\Microsoft.Net\assembly\GAC_64\msshrtmi\v4.0_2.7.0.0__31bf3856ad364e35\msshrtmi.dll'. Skipped loading symbols. Module is optimized and the debugger option 'Just My Code' is enabled. 'WaIISHost.exe' (CLR v4.0.30319: WaIISHost.exe): Loaded 'C:\WINDOWS\Microsoft.Net\assembly\GAC_MSIL\System.Runtime.Serialization\v4.0_4.0.0.0__b77a5c561934e089\System.Runtime.Serialization.dll'. Skipped loading symbols. Module is optimized and the debugger option 'Just My Code' is enabled. 'WaIISHost.exe' (CLR v4.0.30319: WaIISHost.exe): Loaded 'C:\WINDOWS\Microsoft.Net\assembly\GAC_MSIL\System.ServiceModel\v4.0_4.0.0.0__b77a5c561934e089\System.ServiceModel.dll'. Skipped loading symbols. Module is optimized and the debugger option 'Just My Code' is enabled. 'WaIISHost.exe' (CLR v4.0.30319: WaIISHost.exe): Loaded 'C:\WINDOWS\Microsoft.Net\assembly\GAC_MSIL\System.Configuration\v4.0_4.0.0.0__b03f5f7f11d50a3a\System.Configuration.dll'. Skipped loading symbols. Module is optimized and the debugger option 'Just My Code' is enabled. 'WaIISHost.exe' (CLR v4.0.30319: WaIISHost.exe): Loaded 'C:\WINDOWS\Microsoft.Net\assembly\GAC_MSIL\System.Xml\v4.0_4.0.0.0__b77a5c561934e089\System.Xml.dll'. Skipped loading symbols. Module is optimized and the debugger option 'Just My Code' is enabled. 'WaIISHost.exe' (CLR v4.0.30319: WaIISHost.exe): Loaded 'C:\WINDOWS\Microsoft.Net\assembly\GAC_MSIL\System.Xml.Linq\v4.0_4.0.0.0__b77a5c561934e089\System.Xml.Linq.dll'. Skipped loading symbols. Module is optimized and the debugger option 'Just My Code' is enabled. 'WaIISHost.exe' (CLR v4.0.30319: WaIISHost.exe): Loaded 'C:\WINDOWS\Microsoft.Net\assembly\GAC_64\System.Web\v4.0_4.0.0.0__b03f5f7f11d50a3a\System.Web.dll'. Skipped loading symbols. Module is optimized and the debugger option 'Just My Code' is enabled. 'WaIISHost.exe' (CLR v4.0.30319: WaIISHost.exe): Loaded 'C:\WINDOWS\Microsoft.Net\assembly\GAC_MSIL\SMDiagnostics\v4.0_4.0.0.0__b77a5c561934e089\SMDiagnostics.dll'. Skipped loading symbols. Module is optimized and the debugger option 'Just My Code' is enabled. 'WaIISHost.exe' (CLR v4.0.30319: WaIISHost.exe): Loaded 'C:\WINDOWS\Microsoft.Net\assembly\GAC_MSIL\System.IdentityModel\v4.0_4.0.0.0__b77a5c561934e089\System.IdentityModel.dll'. Skipped loading symbols. Module is optimized and the debugger option 'Just My Code' is enabled. 'WaIISHost.exe' (CLR v4.0.30319: WaIISHost.exe): Loaded 'C:\WINDOWS\Microsoft.Net\assembly\GAC_MSIL\System.ServiceModel.Internals\v4.0_4.0.0.0__31bf3856ad364e35\System.ServiceModel.Internals.dll'. Skipped loading symbols. Module is optimized and the debugger option 'Just My Code' is enabled. 'WaIISHost.exe' (CLR v4.0.30319: WaIISHost.exe): Loaded 'C:\WINDOWS\Microsoft.Net\assembly\GAC_MSIL\Microsoft.VisualStudio.Diagnostics.ServiceModelSink\v4.0_4.0.0.0__b03f5f7f11d50a3a\Microsoft.VisualStudio.Diagnostics.ServiceModelSink.dll'. Skipped loading symbols. Module is optimized and the debugger option 'Just My Code' is enabled. 'WaIISHost.exe' (CLR v4.0.30319: WaIISHost.exe): Loaded 'C:\WINDOWS\Microsoft.Net\assembly\GAC_MSIL\System.Xaml\v4.0_4.0.0.0__b77a5c561934e089\System.Xaml.dll'. Skipped loading symbols. Module is optimized and the debugger option 'Just My Code' is enabled. The program '[6124] WaIISHost.exe' has exited with code 0 (0x0).

当我检查我的 Waiishost 日志时,它看起来像..

WaIISHost Information: 0 : [00006124:00000001, 2016-06-13 13:54:36.312, INFO ] Starting host process. WaIISHost Information: 0 : [00006124:00000001, 2016-06-13 13:54:36.365, INFO ] DebuggerAttachStart START WaIISHost Information: 0 : [00006124:00000001, 2016-06-13 13:54:36.366, INFO ] DebuggerAttachStart END WaIISHost Information: 0 : [00006124:00000001, 2016-06-13 13:54:36.376, INFO ] Found role model xml file WaIISHost Information: 0 : [00006124:00000001, 2016-06-13 13:54:36.402, INFO ] Creating endpoint IPAddress:127.0.0.1 PortNum:83 Protocol:http HostHeader: WaIISHost Information: 0 : [00006124:00000001, 2016-06-13 13:54:36.402, INFO ] Adding site to AppModel with name , endpoints http:127.0.0.1:83: WaIISHost Information: 0 : [00006124:00000001, 2016-06-13 13:54:36.435, INFO ] Reacl all resources for iis users WaIISHost Information: 0 : [00006124:00000001, 2016-06-13 13:54:36.442, INFO ] Reacl all resources for iis users has been finished. WaIISHost Information: 0 : [00006124:00000001, 2016-06-13 13:54:36.443, INFO ] Wait for iisconfigurator initialization global event to be set WaIISHost Information: 0 : [00006124:00000001, 2016-06-13 13:54:36.443, INFO ] Found iisconfigurator initialization global event WaIISHost Information: 0 : [00006124:00000001, 2016-06-13 13:54:36.443, INFO ] Iisconfigurator initialization global event set WaIISHost Information: 0 : [00006124:00000001, 2016-06-13 13:54:36.457, INFO ] Changing operation timeout to 00:05:00 WaIISHost Information: 0 : [00006124:00000001, 2016-06-13 13:54:36.465, INFO ] Attempt Deploy with RoleInstanceId=deployment29(79).EasyClinicCloudService.Admin_IN_0 RoleRoot=D:\AzureDev\EasyClinicCloudService\csx\Debug\roles\Admin\ optional SitesDestination= WaIISHost Information: 0 : [00006124:00000001, 2016-06-13 13:54:38.066, ERROR] Exception:System.ServiceModel.FaultException`1[System.ServiceModel.ExceptionDetail]: Invalid name. Parameter name: name (Fault Detail is equal to An ExceptionDetail, likely created by IncludeExceptionDetailInFaults=true, whose value is: System.ArgumentException: Invalid name. Parameter name: name 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.FileSystemSecurity..ctor(Boolean isContainer, String name, AccessControlSections includeSections, Boolean isDirectory) 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.IISConfigurato...).

WaIISHost Information: 0 : [00006124:00000001, 2016-06-13 13:54:38.073, ERROR] Exception:System.ServiceModel.FaultException`1[System.ServiceModel.ExceptionDetail]: Invalid name. Parameter name: name (Fault Detail is equal to An ExceptionDetail, likely created by IncludeExceptionDetailInFaults=true, whose value is: System.ArgumentException: Invalid name. Parameter name: name 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.FileSystemSecurity..ctor(Boolean isContainer, String name, AccessControlSections includeSections, Boolean isDirectory) 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.IISConfigurato...).

我正在使用 vs 2015 和 azure sdk 2.9 我真的很困惑,请给我建议一个解决方案。

提前谢谢您。

最佳答案

我通过简单地从应用程序中删除node_modules 解决了这个问题。我使用以下命令删除node_modules。

1-> npm install rimraf -g

2-> rimraf 节点模块

当我删除它时,它现在工作正常。

我尝试将节点版本更新到 3.x,但这对我不起作用。

请建议是否有任何方法可以保持node_modules原样并运行。

谢谢。

关于c# - Azure 模拟器在启动 Web 角色后立即关闭。,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/37792038/

相关文章:

c# - 如何恢复 C# 服务器和 Java 客户端之间损坏的下载

azure - Azure 虚拟机运行 X 小时的警报?

azure - 如何监视 Azure 部署中的种子方法?

c++ - 模板方法运行,但 Visual Studio 2015 显示错误

c# - 我们可以用 DllImport 方法签名中的 "int"替换所有 "IntPtr"参数和返回类型吗?

C# .NET 使用自定义架构从 SQL 数据集写入 XML 文件

c# - 如何以不区分大小写的方式对 DataView 进行排序?

Azure 自动电子邮件通知 ApplicationLog 中的错误

.net - 从 Visual Studio 2015 构建时自动发布 Web 应用程序

.net - 移植到 VS2015/.NET 4.6 后,C++/CLI DLL 在加载时崩溃