I’m trying to deploy a .NET Core 2.1 app on IIS 10 using ServiceStack 5.10.2. After deploying everything I get the following error when trying to navigate to the site:
Could not load file or assembly ‘ServiceStack’ or one of its dependencies.
The system cannot find the file specified.
This is the list of assemblies from ServiceStack that are part of the deploy:
I followed the IIS integration guide with MVC on IIS and ended up with the following web.config on IIS:
<?xml version="1.0" encoding="utf-8"?>
<configuration>
<location path="." inheritInChildApplications="false">
<system.web>
<httpHandlers>
<add path="*" type="ServiceStack.HttpHandlerFactory, ServiceStack"
verb="*"/>
</httpHandlers>
</system.web>
<system.webServer>
<modules runAllManagedModulesForAllRequests="true">
<remove name="WebDAVModule" />
</modules>
<validation validateIntegratedModeConfiguration="false" />
<handlers>
<add path="*" name="ServiceStack.Factory"
type="ServiceStack.HttpHandlerFactory, ServiceStack" verb="*"
preCondition="integratedMode"
resourceType="Unspecified" allowPathInfo="true" />
<add name="aspNetCore" path="*" verb="*" modules="AspNetCoreModule"
resourceType="Unspecified" />
</handlers>
</system.webServer>
</location>
</configuration>
I’ve spent hours trying to find info on this, but I have not been able to find it. I’ve already gone through and uninstalled all Nuget packages, cleaned solution, and reinstalled. Any ideas?