ServiceStack Not Found IIS

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"?>
  <location path="." inheritInChildApplications="false">
        <add path="*" type="ServiceStack.HttpHandlerFactory, ServiceStack"

      <modules runAllManagedModulesForAllRequests="true">
        <remove name="WebDAVModule" />
      <validation validateIntegratedModeConfiguration="false" />
        <add path="*" name="ServiceStack.Factory"
             type="ServiceStack.HttpHandlerFactory, ServiceStack" verb="*"
             resourceType="Unspecified" allowPathInfo="true" />
        <add name="aspNetCore" path="*" verb="*" modules="AspNetCoreModule" 
         resourceType="Unspecified" />

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?

If you’re building a .NET Core App you wouldn’t be using ASP .NET Framework’s HttpHandlers that you’ve got configured in the Web.config - they’re only used for classic ASP .NET Framework projects.

These are the MSDN docs for hosting an ASP .NET Core App on IIS you should be following instead:

Here’s our recommended empty .NET Core project template you can compare with to see if your App’s source code is structured properly:

First thing you should do is test if you can run the published app, this should tell you if there’s a problem with the App:

$ dotnet publish -c Release
$ cd bin\Release\net5\publish
$ dotnet ProjectName.dll

If the app runs then the issue isn’t with the App, it’s with the IIS configuration.

Also for reference you can find our docs specific to .NET Core at