c# - ServiceStack.Text.JsConfig.With(...) Method is missing? -
c# - ServiceStack.Text.JsConfig.With(...) Method is missing? -
i have asp.net mvc application has few errors cause can't seem track down. think related, not familiar plenty servicestack tell sure.
for starters, maintain on seeing next exception thrown:
method not found: 'servicestack.text.jsconfigscope servicestack.text.jsconfig.with( system.nullable`1<boolean>, system.nullable`1<boolean>, system.nullable`1<boolean>, system.nullable`1<boolean>, system.nullable`1<boolean>, system.nullable`1<boolean>, system.nullable`1<boolean>, system.nullable`1<boolean>, system.nullable`1<servicestack.text.datehandler>, system.nullable`1<servicestack.text.timespanhandler>, system.nullable`1<servicestack.text.propertyconvention>, system.nullable`1<boolean>, system.nullable`1<boolean>, system.string, system.func`2<system.type,system.string>, system.func`2<system.string,system.type>, system.nullable`1<boolean>, system.nullable`1<boolean>, system.nullable`1<boolean>, system.nullable`1<boolean>, system.nullable`1<boolean>, system.nullable`1<boolean>, system.nullable`1<int32>, servicestack.emptyctorfactorydelegate, system.string[])'.
this method isn't beingness called in own code though. error seems maintain on occurring within servicestack. 1 illustration when trying typed session:
appservicebase.cs
using servicestack; namespace mywebproject.serviceinterface { public abstract class appservicebase : service { public virtual usersession usersession { { homecoming sessionas<usersession>(); // throws error when called } } } }
that'll give me stack trace this:
[missingmethodexception: method not found: 'servicestack.text.jsconfigscope servicestack.text.jsconfig.with(system.nullable`1<boolean>, system.nullable`1<boolean>, system.nullable`1<boolean>, system.nullable`1<boolean>, system.nullable`1<boolean>, system.nullable`1<boolean>, system.nullable`1<boolean>, system.nullable`1<boolean>, system.nullable`1<servicestack.text.datehandler>, system.nullable`1<servicestack.text.timespanhandler>, system.nullable`1<servicestack.text.propertyconvention>, system.nullable`1<boolean>, system.nullable`1<boolean>, system.string, system.func`2<system.type,system.string>, system.func`2<system.string,system.type>, system.nullable`1<boolean>, system.nullable`1<boolean>, system.nullable`1<boolean>, system.nullable`1<boolean>, system.nullable`1<boolean>, system.nullable`1<boolean>, system.nullable`1<int32>, servicestack.emptyctorfactorydelegate, system.string[])'.] servicestack.redis.redisclient.exec(func`2 action) +0 servicestack.redis.redisclient.get(string key) +241 servicestack.redis.redisclientmanagercacheclient.get(string key) +142 servicestack.sessionextensions.sessionas(icacheclient cache, irequest httpreq, iresponse httpres) +150 ...where called , rest of stack.
this seems happen calls jsconfig.with()
somewhere. insight might causing much appreciated.
whenever method signatures don't match between assemblies or there's runtime missingmethodexception
it's there's version mismatch between dependencies, updating nuget packages should resolve.
servicestack libraries deployed in lock-step same version number can tell if dlls same version comparing assembly version info.
c# asp.net asp.net-mvc servicestack
Comments
Post a Comment