1

我正在使用 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 然后重新安装它,但一切都以同样的方式失败。谢谢你。

4

1 回答 1

3

有同样的问题,但通过手动卸载 IIS Express 7.5 和 WebMatrix 解决了。然后我下载了 IIS 7.5、MSSQL Server Management Objects 和 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 服务器管理对象: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

希望这可以帮助。

于 2012-08-12T19:02:34.977 回答