Dan
Dan

Reputation: 4502

Mono can't load ServiceStack.Interfaces.dll

Using Mono on OS X (MDK 3.2.3) and NuGet installed according to MonoMVC's instructions, I've tried to follow the "your first webservice" tutorial in ServiceStack's documentation. This tutorial assumes IIS and Visual Studio, neither of which exist in my environment, and after several hours of searching for solutions on the internet I've done the following extra steps which they don't mention:

When I try to visit localhost:8080, I now get this error message:

System.Web.Compilation.CompilationException
CS1684: Reference to type ServiceStack.ServiceHost.IResolver claims it is defined assembly ServiceStack.Interfaces, Version=3.9.60.0, Culture=neutral, PublicKeyToken=null, but it could not be found

How do I resolve this error?


Edit: Removed references to the Missing method .ctor errors, as they're unrelated to the CompilationException above. They go away if I copy System.Core.dll from lib/mono/4.5 to the bin folder, but the CompilationException remains.

Upvotes: 0

Views: 1113

Answers (1)

Pauli Price
Pauli Price

Reputation: 4237

I had a similar error while building a ServiceStack project on linux. The project itself didn't reference an assembly directly that (I believe) a referenced assembly had referenced.

I added a reference to the assembly directly to the main project and the error went away.

My repo is here: https://github.com/MarFarMa/ServiceStack.Hello -- it builds and runs successfully on ubuntu - in case you want to try it instead of the tutorial you've been following.

Upvotes: 1

Related Questions