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