2

我在 Visual Studio 中创建了一个天蓝色的云项目。

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...).
4

1 回答 1

1

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

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

C:\Dev\AzureSolutionExample\Source

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

C:\AzureSolutionExample\Source
于 2015-07-21T06:08:58.207 回答