运行Azure云项目时出现异常

时间:2015-07-10 13:17:55

标签: azure visual-studio-2013 azure-emulator

我在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...).

1 个答案:

答案 0 :(得分:1)

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

我是完全诚实的,我不完全确定它是否是由于@spender建议的长路径名称或者其他东西。我的C盘上有一个名为Dev的文件夹:

C:\Dev\AzureSolutionExample\Source

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

C:\AzureSolutionExample\Source
相关问题