2

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

1 に答える 1

1

最後に私の問題の解決策を見つけました。

正直に言うと、@spenderが示唆する長いパス名が原因なのか、それとも別の理由なのかは完全にはわかりません。C ドライブに Dev というフォルダーがありました。

C:\Dev\AzureSolutionExample\Source

私は基本的にそれをCドライブに直接移動し、すべてが機能し始めました.

C:\AzureSolutionExample\Source
于 2015-07-21T06:08:58.207 に答える