我在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...).
我懷疑這是與你的system.servicemodel配置....你可以從web.config發佈? – ojf
我的web.config中沒有任何system.servicemodel配置。 – TBD
你的項目文件夾中是否有異常長的路徑? – spender