c# - Mono can't load ServiceStack.Interfaces.dll -
using mono on os x (mdk 3.2.3) , nuget installed according monomvc's instructions, i've tried follow the "your first webservice" tutorial in servicestack's documentation. tutorial assumes iis , visual studio, neither of exist in environment, , after several hours of searching solutions on internet i've done following steps don't mention:
- wrap
web.config
example in<configuration>
tag. - put source code hello classes in folder called
app_code
copied of
.dll
files nuget downloaded folder calledbin
withfind . -iname '*.dll' -exec cp {} bin \;
- use
xsp4
root folder of project host development server. - copy
system.core.dll
lib/mono/4.5
project'sbin
folder.
when try visit localhost:8080
, error message:
system.web.compilation.compilationexception
cs1684: reference typeservicestack.servicehost.iresolver
claims defined assemblyservicestack.interfaces, version=3.9.60.0, culture=neutral, publickeytoken=null
, not found
how resolve error?
edit: removed references missing method .ctor errors, they're unrelated compilationexception above. go away if copy system.core.dll lib/mono/4.5
bin
folder, compilationexception remains.
i had similar error while building servicestack project on linux. project didn't reference assembly directly (i believe) referenced assembly had referenced.
i added reference assembly directly main project , error went away.
my repo here: https://github.com/marfarma/servicestack.hello -- builds , runs on ubuntu - in case want try instead of tutorial you've been following.
Comments
Post a Comment