Reputation: 4502
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:
web.config
example in a <configuration>
tag.App_Code
Copied all of the .dll
files that NuGet downloaded into a folder called bin
with
find . -iname '*.dll' -exec cp {} bin \;
xsp4
from the root folder of my project to host a development server.System.Core.dll
from lib/mono/4.5
to my project's bin
folder.When I try to visit localhost:8080
, I now get this error message:
System.Web.Compilation.CompilationException
CS1684: Reference to typeServiceStack.ServiceHost.IResolver
claims it is defined assemblyServiceStack.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
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