gpt4 book ai didi

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

转载 作者:行者123 更新时间:2023-12-05 07:49:09 27 4
gpt4 key购买 nike

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

'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/

27 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com