【问题标题】:Webmatrix fails to create project from templateWebmatrix 无法从模板创建项目
【发布时间】:2012-08-03 04:51:54
【问题描述】:

我正在使用 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 的问题。您能否尝试卸载 IIS Express(所有版本)并重新安装?

标签: c# asp.net asp.net-mvc webmatrix


【解决方案1】:

遇到了同样的问题,但通过手动卸载 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

希望这会有所帮助。

【讨论】:

    猜你喜欢
    • 2021-12-08
    • 1970-01-01
    • 1970-01-01
    • 2014-03-28
    • 2015-08-31
    • 2016-10-11
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    相关资源
    最近更新 更多