【问题标题】:Issues with installing Orchard & Mono安装 Orchard 和 Mono 的问题
【发布时间】:2013-04-04 16:47:55
【问题描述】:

我目前正在运行 Ubuntu Server 12.10。

我尝试将 Orchard 与 mono 一起安装。当我尝试启动单声道时:

MONO_IOMAP=all xsp4

我在 CLI 中收到以下错误:

    Handling exception type ConfigurationErrorsException
Message is No factory for host (/home/shto/sites/test/Orchard/Web.config line 13)
IsTerminating is set to True
System.Configuration.ConfigurationErrorsException: No factory for host (/home/shto/sites/test/Orchard/Web.config line 13)

Server stack trace: 
  at System.Configuration.ConfigInfo.ThrowException (System.String text, System.Xml.XmlReader reader) [0x00000] in <filename unknown>:0 
  at System.Configuration.SectionGroupInfo.ReadRemoveSection (System.Xml.XmlReader reader) [0x00000] in <filename unknown>:0 
  at System.Configuration.SectionGroupInfo.ReadConfig (System.Configuration.Configuration cfg, System.String streamName, System.Xml.XmlReader reader) [0x00000] in <filename unknown>:0 
  at System.Configuration.SectionGroupInfo.ReadConfig (System.Configuration.Configuration cfg, System.String streamName, System.Xml.XmlReader reader) [0x00000] in <filename unknown>:0 
  at System.Configuration.Configuration.ReadConfigFile (System.Xml.XmlReader reader, System.String fileName) [0x00000] in <filename unknown>:0 
  at System.Configuration.Configuration.Load () [0x00000] in <filename unknown>:0 
  at System.Configuration.Configuration.Init (IConfigSystem system, System.String configPath, System.Configuration.Configuration parent) [0x00000] in <filename unknown>:0 
  at System.Configuration.Configuration..ctor (System.Configuration.InternalConfigurationSystem system, System.String locationSubPath) [0x00000] in <filename unknown>:0 
  at System.Configuration.InternalConfigurationFactory.Create (System.Type typeConfigHost, System.Object[] hostInitConfigurationParams) [0x00000] in <filename unknown>:0 
  at System.Web.Configuration.WebConfigurationManager.OpenWebConfiguration (System.String path, System.String site, System.String locationSubPath, System.String server, System.String userName, System.String password, Boolean fweb) [0x00000] in <filename unknown>:0 

Exception rethrown at [0]: 

  at (wrapper xdomain-invoke) System.AppDomain:DoCallBack (System.CrossAppDomainDelegate)
  at (wrapper remoting-invoke-with-check) System.AppDomain:DoCallBack (System.CrossAppDomainDelegate)
  at System.Web.Hosting.ApplicationHost.CreateApplicationHost (System.Type hostType, System.String virtualDir, System.String physicalDir) [0x00000] in <filename unknown>:0 
  at Mono.WebServer.VPathToHost.CreateHost (Mono.WebServer.ApplicationServer server, Mono.WebServer.WebSource webSource) [0x00000] in <filename unknown>:0 
  at Mono.WebServer.XSP.Server.RealMain (System.String[] args, Boolean root, IApplicationHost ext_apphost, Boolean quiet) [0x00000] in <filename unknown>:0 
  at Mono.WebServer.XSP.Server.Main (System.String[] args) [0x00000] in <filename unknown>:0 

当我安装单声道时,我使用了命令:apt-get install mono-complete

【问题讨论】:

    标签: mono content-management-system orchardcms


    【解决方案1】:

    Orchard 目前不在 Mono 中运行。

    【讨论】:

    • "为了让 Orchard 正常工作,您需要上面提到的 Mono 版本之一以及应用于 Orchard 源的几个补丁。通用 Mono 更改 - 引入了对 Mono 调试信息文件 (.mdb) 的支持以及更改顶级 Web.config 以使其与 Mono 兼容。PostgreSQL 支持 - 引入了对 PostgreSQL 的支持,并不特定于 Mono。”来源 - orchard.codeplex.com/discussions/247340#post849907
    • 我的意思是 Orchard 可以在 Mono 上工作/运行。在此处查看另一个示例(日期为 2013 年 3 月 17 日):blog.erikd.org/2013/03/17/…。我的最终目标是让 Orchard 的最新版本在 linux 上运行。如果您知道任何其他方式,请告诉:)。
    • 原则上,是的,它可以,但在实践中,我们需要一个足够了解 Mono 并有足够动力使其工作的所有者。今天,它没有。我从来没有说过不能。我们都希望它。如果你想成为那个人,那太棒了。我的印象是您只是希望它开箱即用,因此我的回答是。恐怕我无法帮助你克服这个错误。看起来它在 web.config 中与 Razor 相关的行中中断了。我会从一个较小的测试应用程序开始,然后逐个尝试每个配置行。
    猜你喜欢
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2016-04-15
    • 2013-04-07
    • 2013-02-17
    • 1970-01-01
    • 2021-04-07
    • 2014-05-07
    相关资源
    最近更新 更多