Saturday, May 10, 2014

servicestack mvc4

https://github.com/ServiceStack/ServiceStack/wiki/Run-servicestack-side-by-side-with-another-web-framework

http://stackoverflow.com/questions/22016374/could-not-load-type-servicestack-servicehost-iservice-when-starting-servicesta


Could not load type 'ServiceStack.ServiceHost.IService'

I get the above error when calling Init() on my AppHost.

Checked the DLL and found that all versions are not consistent, so I followed the suggestions in the above link.
  1. Remove all the references from your project.
  2. Remove the packages.config.(only lines with servicestack)
  3. Check the project target is .NET 4.5.
  4. Clean the project.
  5. Then re-run the NuGet command.
And fixed it.


No comments:

Post a Comment