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

标签 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...).

最佳答案

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

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

C:\Dev\AzureSolutionExample\Source

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

C:\AzureSolutionExample\Source

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

相关文章:

azure - Cosmos DB 模拟器 :

azure - Azure 函数应用程序包还原失败

sql-server - SSIS Azure BLOB/DW 上传任务错误

c++ - 使用 std::bind 时出现运行时错误

asp.net - 当 Visual Studio 2013 打开 Web 项目时,IISExpress 提供空页面

python - Python Tools For Visual Studio 中的构建前和构建后步骤

azure - Azure 搜索基本中是否禁止 OPTIONS 请求?

node.js - 将大型 Node 模块添加到 Azure 函数

azure - 我可以将 Azure 离线同步 API 与 Azure 存储模拟器结合使用吗?

azure - 无法调试 Windows Azure 云服务项目。输出目录不存在。/Azure SDK 2.3/VS 2013