Mono 3.0, Ubuntu 12.10, Nginx and ServiceStack

According to the ServiceStack website, it should be easy to get ServiceStack and start Linux using Mono. I installed nginx, mono 3.0 and fastcgi on the system (Ubuntu 12.10). I used this tutorial to run Nginx and fastcgi. In MonoDevelop, I right-clicked on the project, then Tools โ†’ Internet Deployment. This creates the files that I want to deploy. Then I copied the dlls to / var / www / project _folder on Ubuntu. Then I started Nginx and fastcgi. My web.config file looks like this:

<?xml version="1.0"?> <configuration> <system.web> <customErrors mode="Off"/> <httpHandlers> <add path="*" type="ServiceStack.WebHost.Endpoints.ServiceStackHttpHandlerFactory, ServiceStack" verb="*" /> </httpHandlers> <compilation> <assemblies> <add assembly="System.Core, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" /> </assemblies> </compilation> </system.web> <!-- Required for IIS 7.0 (and above?) --> <system.webServer> <validation validateIntegratedModeConfiguration="false" /> <handlers> <add path="*" name="ServiceStack.Factory" type="ServiceStack.WebHost.Endpoints.ServiceStackHttpHandlerFactory, ServiceStack" verb="*" preCondition="integratedMode" resourceType="Unspecified" allowPathInfo="true" /> </handlers> </system.webServer> </configuration> 

I have not added XSP to the server. When I go to the webpage on the server (remote address), I get an error message indicating that it cannot find ServiceStack.WebHost.Endpoints.ServiceStackHttpHandlerFactory. The web.config file is located in the same folder as the dll containing this ServiceStackHttpHandlerFactory.

Any ideas what causes this?

+4
source share
1 answer

First, if you have not read them yet, you must go through the wiki documents to get a ServiceStack running on Mono / Linux .

What ServiceStack.dll files did you copy and where did you get them? ServiceStack.WebHost.Endpoints.ServiceStackHttpHandlerFactory is an ASP.NET entry point and it is available in the core of ServiceStack.dll .

If it cannot find the ServiceStack.dll entry point, then there should be a problem in the Mono FastCGI / ASP.NET node in the ServiceStack.dll file, in the ASP.NET application it should be in the /bin folder relative to your Web.Config . If all the files are in the right place, this could be a file permission issue.

+2
source

All Articles