servicestack,Mono,servicestack" /> servicestack,Mono,servicestack" />

Mono上的ServiceStack示例

Mono上的ServiceStack示例,mono,servicestack,Mono,servicestack,正在准备一个ServiceStack.NET HelloWorld示例,并在Mono上运行。陷入此错误: System.Web.HttpException Failed to load httpHandler type `ServiceStack.WebHost.Endpoints.ServiceStackHttpHandlerFactory, ServiceStack' Description: HTTP 500.Error processing request. Details: Err

正在准备一个ServiceStack.NET HelloWorld示例,并在Mono上运行。陷入此错误:

System.Web.HttpException
Failed to load httpHandler type `ServiceStack.WebHost.Endpoints.ServiceStackHttpHandlerFactory, ServiceStack'

Description: HTTP 500.Error processing request.

Details: Error processing request.
Exception stack trace:
at System.Web.Configuration.HttpHandlerAction.LoadType (System.String type_name) [0x00053] in /root/mono-2.11.4/mcs/class/System.Web/System.Web.Configuration_2.0/HttpHandlerAction.cs:170 at System.Web.Configuration.HttpHandlerAction.GetHandlerInstance () [0x00039] in /root/mono-2.11.4/mcs/class/System.Web/System.Web.Configuration_2.0/HttpHandlerAction.cs:296 at System.Web.Configuration.HttpHandlersSection.LocateHandler (System.String verb, System.String filepath, System.Boolean& allowCache) [0x0004b] in /root/mono-2.11.4/mcs/class/System.Web/System.Web.Configuration_2.0/HttpHandlersSection.cs:80 at System.Web.HttpApplication.LocateHandler (System.Web.HttpRequest req, System.String verb, System.String url) [0x0003b] in /root/mono-2.11.4/mcs/class/System.Web/System.Web/HttpApplication.cs:1603 at System.Web.HttpApplication.GetHandler (System.Web.HttpContext context, System.String url, Boolean ignoreContextHandler) [0x00028] in /root/mono-2.11.4/mcs/class/System.Web/System.Web/HttpApplication.cs:1627 at System.Web.HttpApplication.GetHandler (System.Web.HttpContext context, System.String url) [0x00000] in /root/mono-2.11.4/mcs/class/System.Web/System.Web/HttpApplication.cs:1614 at System.Web.HttpApplication+<Pipeline>c__Iterator3.MoveNext () [0x00866] in /root/mono-2.11.4/mcs/class/System.Web/System.Web/HttpApplication.cs:1276 
System.Web.HttpException
未能加载httpHandler类型“ServiceStack.WebHost.Endpoints.ServiceStackHttpHandlerFactory,ServiceStack”
描述:HTTP 500。处理请求时出错。
详细信息:处理请求时出错。
异常堆栈跟踪:
在/root/mono-2.11.4/mcs/class/System.Web/System.Web.Web.Configuration\u 2.0/HttpHandlerAction.cs:170在System.Web.Configuration.HttpHandlerAction.GetHandlerInstance()中的System.Web.Configuration.HttpHandlerAction.LoadType(System.String type_name)[0x00053]在/root/mono-2.11.4/mcs/class/System.Web/System.Web.Configuration_2.0/HttpHandlerAction.cs:296 at System.Web.Configuration.HttpHandlersSection.LocateHandler(System.String动词、System.String文件路径、System.Boolean和allowCache)[0x0004b]在/root/mono-2.11.4/mcs/class/System.Web/System.Web.Configuration_2.0/HttpHandlersSection.cs:80 at System.Web.HttpApplication.LocateHandler(System.Web.HttpRequest-req,System.String动词,System.String url)[0x0003b]in/root/mono-2.11.4/mcs/class/System.Web/System.Web/System.Web/HttpApplication.cs:1603 at System.Web.HttpApplication.GetHandler(System.Web.HttpContext context,System.String url,Boolean ignoreContextHandler)[0x00028]位于/root/mono-2.11.4/mcs/class/System.Web/System.Web/HttpApplication.cs:1627 at System.Web.HttpApplication.GetHandler(System.Web.HttpContext context,System.String url)[0x00000]在/root/mono-2.11.4/mcs/class/System.Web/System.Web/HttpApplication.cs:1614 at System.Web.HttpApplication+c_u迭代器3.MoveNext()[0x00866]in/root/mono-2.11.4/mcs/class/System.Web/System.Web/System.Web/HttpApplication.cs:1276
这是我的web.config--我想它一定出了问题:

<?xml version="1.0"?>
<configuration>
  <!-- ServiceStack: Required to host at: /servicestack -->
  <location path="servicestack">
    <system.web>
      <httpHandlers>
        <add path="servicestack*" type="ServiceStack.WebHost.Endpoints.ServiceStackHttpHandlerFactory, ServiceStack" verb="*"/>
      </httpHandlers>
    </system.web>

    <!-- Required for IIS7 -->
    <system.webServer>
      <modules runAllManagedModulesForAllRequests="true"/>
      <validation validateIntegratedModeConfiguration="false" />
      <handlers>
        <add path="servicestack*" name="ServiceStack.Factory" type="ServiceStack.WebHost.Endpoints.ServiceStackHttpHandlerFactory, ServiceStack" verb="*" preCondition="integratedMode" resourceType="Unspecified" allowPathInfo="true" />
      </handlers>
    </system.webServer>
  </location>
  <!-- Required for MONO -->
  <system.web>
  <customErrors mode="Off"/>
    <httpHandlers>
      <add path="servicestack*" type="ServiceStack.WebHost.Endpoints.ServiceStackHttpHandlerFactory, ServiceStack" verb="*"/>
    </httpHandlers>
  </system.web>
  <!-- Required for IIS7 -->
  <system.webServer>
    <!-- ServiceStack: Required -->
    <validation validateIntegratedModeConfiguration="false"/>
  </system.webServer>
</configuration>


应用程序的Apache虚拟主机设置中存在配置错误。Apache配置文件中的MonoApplications指令中未正确指定应用程序路径。更正此错误可解决此问题。

应用程序的Apache虚拟主机设置中存在配置错误。应用程序路径不正确在Apache配置文件中的MonoApplications指令中指定。更正错误解决了问题。

您正在使用Xamarin studio?我确实拥有Xamarin studio——但这个项目,我只是从ServiceStack的GitHub存储库下载并在VS2012中构建,然后上载到我的服务器。它作为virtu在Apache/mod_mono下所有主机,如果相关的话。你正在与Xamarin studio合作?我确实拥有Xamarin studio——但这个项目,我只是从ServiceStack的GitHub存储库下载并在VS2012中构建,然后上传到我的服务器。如果相关的话,这是在Apache/mod_mono下作为虚拟主机。