ServiceStack.Factor has a bad module "ManagedPipelineHandler" in its list of modules

I wrote an API using ServiceStack to retrieve documents from my SharePoint document library, and I use MVC to output the result.

However, when I try to start the application, I get an HTTP error message:

500.21 ServiceStack.Factor has a bad module "ManagedPipelineHandler" in its module error.

I run my application in classic mode in IIS because I need to use impersonation to authenticate with my SharePoint server.

There seems to be a problem using ServiceStack in classic mode.

How can I solve this error?

Hope this makes sense.

Any help would be appreciated

Here is my configuration:

<system.webServer>
            <modules runAllManagedModulesForAllRequests="true" />
            <validation validateIntegratedModeConfiguration="false" />
            <handlers>
                <add path="*" name="ServiceStack.Factory" type="ServiceStack.WebHost.Endpoints.ServiceStackHttpHandlerFactory, ServiceStack" verb="*" preCondition="classicMode" resourceType="Unspecified" allowPathInfo="true" />
            </handlers>
        </system.webServer>

Update:

- , IIS ASP.NET

+5
1

, . - http://www.asp.net/mvc/tutorials/older-versions/deployment/using-asp-net-mvc-with-different-versions-of-iis-cs - IIS 7.0 , ASP.NET(aspx, axd, ashx).

IIS 7,

web.config( preCondition = "integMode" ):

<system.webServer>
    <modules runAllManagedModulesForAllRequests="true"/>
    <validation validateIntegratedModeConfiguration="false" />
    <handlers>
        <add path="servicestack*" name="ServiceStack.Factory" type="ServiceStack.WebHost.Endpoints.ServiceStackHttpHandlerFactory, ServiceStack" 
             verb="*" preCondition="integratedMode" />
    </handlers>
</system.webServer>

.aspx , ASP.NET( , , )

Routes
.Add<Hello>("/hello.aspx")
.Add<Hello>("/hello.aspx/{Name}");

http://localhost/hello.aspx and http://localhost/hello.aspx?name=Test

1

, IIS 7 (<system.webServer>) . web.config . <httpHandlers>? , 404, ?

<?xml version="1.0"?>
<configuration>
    <system.web>
        <httpHandlers>
            <add path="servicestack*" type="ServiceStack.WebHost.Endpoints.ServiceStackHttpHandlerFactory, ServiceStack" verb="*"/>
        </httpHandlers>
        <compilation debug="true"/>
    </system.web>
    <system.webServer>
        <validation validateIntegratedModeConfiguration="false"/>
    </system.webServer>
</configuration>

:

, path = "api *", ?

. . : http://msdn.microsoft.com/en-us/library/b6x6shw7%28v=vs.100%29.aspx 2 : http://www.servicestack.net/ServiceStack.Hello/ <httpHandler> .

, IIS Express Visual Studio. IIS 7, . http://www.microsoft.com/web/gallery/install.aspx?appid=IISExpress

+4

All Articles