gpt4 book ai didi

azure - 运行Azure云项目时出现异常

转载 作者:行者123 更新时间:2023-12-03 00:14:22 25 4
gpt4 key购买 nike

我在 Visual Studio 中创建了一个 Azure 云项目。

1) 使用“转换为Azure”功能。

2) 添加了 Https 端点和证书。

尝试使用 Azure 模拟器在本地“不进行调试”运行项目,模拟器会挂起。如果我通过调试运行项目,它似乎会启动,但出现以下异常:

A first chance exception of type 'System.ServiceModel.FaultException`1'     occurred in System.ServiceModel.dll

Additional information: Invalid name.

Parameter name: name

异常后站点无法继续。

我想知道是否有人遇到过这个问题以及他们是如何解决的?

其他信息:

.net 4.5.1 framework.  
IIS: version 7.5
Azure SDK 2.6

因此,查看 WaIISHost.Log 我发现不断抛出以下异常:

WaIISHost Information: 0 : [00014196:00000001, 2015/07/15     07:45:38.428,ERROR]         Exception:System.ServiceModel.FaultException`1[System.ServiceModel.ExceptionDeta    il]: 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.AddAllowAceIte rative(DirectoryInfo dir, FileSystemRights rights, IdentityReference[] accounts)
at Microsoft.WindowsAzure.ServiceRuntime.IISConfigurato...).

最佳答案

我最终找到了解决问题的方法。

我会完全诚实,我不完全确定这是由于 @spender 建议的长路径名还是其他原因。我的 C 盘上有一个名为 Dev 的文件夹:

C:\Dev\AzureSolutionExample\Source

我基本上把它直接移到了 C 驱动器上,一切都开始工作了。

C:\AzureSolutionExample\Source

关于azure - 运行Azure云项目时出现异常,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/31341793/

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