运行 Azure 云项目时出现异常

Exception when running Azure Cloud Project

我在 visual studio 中创建了一个 Azure 云项目。

1) 使用了 "Convert to Azure" 功能。

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

正在尝试 运行 本地带有 azure 模拟器的项目 "without debug" 模拟器挂起。如果我 运行 调试的项目似乎开始了,但我得到以下异常:

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