2012-08-03 84 views
1

我正在使用webmatrix2,我無法從模板創建項目。它失敗並出現錯誤Webmatrix無法從模板創建項目

Error 

There was an error creating site 'mysitename' Invalid Index. 
(Exception from HRESULT: 0x80070585) 

copy details to clipboard 

正在生成其「從...下載模板」。 這裏是我的剪貼板中的內容

--------------------------- 
Error 
--------------------------- 
There was an error creating site 'mysitename'. 

Invalid index. (Exception from HRESULT: 0x80070585) 
--------------------------- 
OK 
--------------------------- 

--------------------------- 
System.Runtime.InteropServices.COMException (0x80070585): Invalid index. (Exception from HRESULT: 0x80070585) 
    at Microsoft.Web.Administration.Interop.IAppHostElement.GetPropertyByName(String bstrSubName) 
    at Microsoft.Web.Administration.ConfigurationElement.GetAttributeValue(String attributeName) 
    at Microsoft.Web.Administration.Binding.get_SslFlags() 
    at Microsoft.Web.Administration.Binding.get_CertificateHash() 
    at Microsoft.Web.Administration.BindingCollection.Add(Binding binding) 
    at Microsoft.Web.Administration.BindingCollection.Add(String bindingInformation, String bindingProtocol) 
    at Microsoft.Web.Administration.SiteCollection.Add(String name, String bindingProtocol, String bindingInformation, String physicalPath, Byte[] certificateHash, String certificateStore, SslFlags sslFlags) 
    at Microsoft.WebMatrix.Utility.CreateSiteHelper.CreateSite(String name, String path, FrameworkType frameworkType) 
    at Microsoft.WebMatrix.Utility.CreateSiteHelper.CreateSiteFromName(String name, Boolean makeNameUnique) 
    at Microsoft.WebMatrix.Gallery.Server.GalleryModuleService.<>c__DisplayClass10.<AddSiteFromName>b__f(ExecutionContext context) 
    at Microsoft.WebMatrix.Core.Server.ModuleService.<>c__DisplayClass4`1.<InvokeOnMTA>b__0() 
    at Microsoft.WebMatrix.Core.TaskServiceImplementation.<>c__DisplayClass8`1.<InvokeOnMTA>b__5() 
--------------------------- 

有什麼錯誤意味着一個想法之前,任何你遇到此?

我試着卸載webmatrix2然後重新安裝它,但一切都失敗了相同的方式。謝謝。

+0

哎呀。我將它傳遞給WebMatrix開發團隊來看看。 – 2012-08-04 22:44:09

+0

這看起來像是IIS Express的問題。你可以請嘗試卸載IIS Express(它的所有版本)並再次安裝它? – 2012-08-05 02:46:36

回答

3

有同樣的問題,但通過手動卸載IIS Express 7.5和WebMatrix來解決它。然後我下載了IIS 7.5,MSSQL服務器管理對象和WebMatrix,然後手動安裝它。我的電腦在通過WebPI進行安裝時關機,這可能導致了我的問題。下面

的鏈接是我從WebPI複製的:

IIS快車7.5:http://download.microsoft.com/download/D/C/4/DC4EC38C-A6AA-449D-9B19-7ABC6DF72B34/iisexpress_1_11_x86_en-US.msi

MSSQL Server管理對象:http://download.microsoft.com/download/F/E/D/FEDB200F-DE2A-46D8-B661-D019DFE9D470/ENU/x86/SharedManagementObjects.msi

的WebMatrix 2:http://download.microsoft.com/download/8/5/7/8573745C-384B-4F74-BE2C-D85C390742D5/WebMatrix_x86_en-US.msi

希望這有助於。