Webmatrix无法根据模板创建项目

本文关键字:创建 项目 Webmatrix | 更新日期: 2024-09-27 02:23:59

我正在使用webmatrix2,无法从模板创建项目。它失败并出现错误

 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,然后重新安装,但一切都以同样的方式失败。非常感谢。

Webmatrix无法根据模板创建项目

也有同样的问题,但通过手动卸载IIS Express 7.5和WebMatrix解决了这个问题。然后我下载了IIS 7.5、MSSQL Server管理对象和WebMatrix,然后手动安装。我的电脑在通过WebPI安装时关闭,这可能导致了我的问题。

以下链接是我从WebPI:复制的链接

IIS Express 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

希望这能有所帮助。