c# - Could not load file or assembly 'System.Runtime, Version=4.1.0.0 in install SignalR -
i working on asp.net mvc v4.5 project,
i added signalr (v2.2.2.0) nuget.
but when app runs under error:
(my owin version 3.0.1.0 , when delete microsoft.owin.host.systemweb.dll referenced, app runs correctly owin not work anymore)
could not load file or assembly 'system.runtime, version=4.1.0.0, culture=neutral, publickeytoken=b03f5f7f11d50a3a' or 1 of dependencies. located assembly's manifest definition not match assembly reference. (exception hresult: 0x80131040)
description: unhandled exception occurred during execution of current web request. please review stack trace more information error , originated in code.
exception details: system.io.fileloadexception: not load file or assembly 'system.runtime, version=4.1.0.0, culture=neutral, publickeytoken=b03f5f7f11d50a3a' or 1 of dependencies. located assembly's manifest definition not match assembly reference. (exception hresult: 0x80131040)
source error:
an unhandled exception generated during execution of current web request. information regarding origin , location of exception can identified using exception stack trace below.
=== pre-bind state information === log: displayname = system.runtime, version=4.1.0.0, culture=neutral, publickeytoken=b03f5f7f11d50a3a (fully-specified) log: appbase = file:///d:/projects/sp works/travelagencymanager/silverpath.template/ log: initial privatepath = d:\projects\sp works\travelagencymanager\silverpath.template\bin calling assembly : stimulsoft.report.netcore, version=2017.1.0.6, culture=neutral, publickeytoken=null. === log: bind starts in default load context. log: using application configuration file: d:\projects\sp works\travelagencymanager\silverpath.template\web.config log: using host configuration file: c:\users\radi\documents\iisexpress\config\aspnet.config log: using machine configuration file c:\windows\microsoft.net\framework\v4.0.30319\config\machine.config. log: post-policy reference: system.runtime, version=4.1.0.0, culture=neutral, publickeytoken=b03f5f7f11d50a3a log: attempting download of new url file:///c:/windows/microsoft.net/framework/v4.0.30319/temporary asp.net files/root/4e996c54/127b397b/system.runtime.dll. log: attempting download of new url file:///c:/windows/microsoft.net/framework/v4.0.30319/temporary asp.net files/root/4e996c54/127b397b/system.runtime/system.runtime.dll. log: attempting download of new url file:///d:/projects/sp works/travelagencymanager/silverpath.template/bin/system.runtime.dll. wrn: comparing assembly name resulted in mismatch: minor version err: failed complete setup of assembly (hr = 0x80131040). probing terminated.
stack trace:
[fileloadexception: not load file or assembly 'system.runtime, version=4.1.0.0, culture=neutral, publickeytoken=b03f5f7f11d50a3a' or 1 of dependencies. located assembly's manifest definition not match assembly reference. (exception hresult: 0x80131040)] system.modulehandle.resolvetype(runtimemodule module, int32 typetoken, intptr* typeinstargs, int32 typeinstcount, intptr* methodinstargs, int32 methodinstcount, objecthandleonstack type) +0
system.modulehandle.resolvetypehandleinternal(runtimemodule module, int32 typetoken, runtimetypehandle[] typeinstantiationcontext, runtimetypehandle[] methodinstantiationcontext) +145
system.reflection.runtimemodule.resolvetype(int32 metadatatoken, type[] generictypearguments, type[] genericmethodarguments) +130
system.reflection.customattribute.filtercustomattributerecord(customattributerecord carecord, metadataimport scope, assembly& lastaptcaokassembly, runtimemodule decoratedmodule, metadatatoken decoratedtoken, runtimetype attributefiltertype, boolean mustbeinheritable, object[] attributes, ilist derivedattributes, runtimetype& attributetype, iruntimemethodinfo& ctor, boolean& ctorhasparameters, boolean& isvararg) +91
system.reflection.customattribute.getcustomattributes(runtimemodule decoratedmodule, int32 decoratedmetadatatoken, int32 pcacount, runtimetype attributefiltertype, boolean mustbeinheritable, ilist derivedattributes, boolean isdecoratedtargetsecuritytransparent) +466 system.reflection.customattribute.getcustomattributes(runtimeassembly assembly, runtimetype catype) +103
system.reflection.runtimeassembly.getcustomattributes(boolean inherit) +37 owin.loader.defaultloader.searchforstartupattribute(string friendlyname, ilist1 errors, boolean& conflict) +1061 errors) +46
owin.loader.defaultloader.getdefaultconfiguration(string friendlyname, ilist
owin.loader.defaultloader.loadimplementation(string startupname, ilist1 errordetails) +75 owin.loader.defaultloader.load(string startupname, ilist1 errordetails) +21
microsoft.owin.host.systemweb.owinbuilder.getappstartup() +115
microsoft.owin.host.systemweb.owinhttpmodule.initializeblueprint() +28 system.threading.lazyinitializer.ensureinitializedcore(t& target, boolean& initialized, object& synclock, func`1 valuefactory) +115
microsoft.owin.host.systemweb.owinhttpmodule.init(httpapplication context) +106
system.web.httpapplication.registereventsubscriptionswithiis(intptr appcontext, httpcontext context, methodinfo[] handlers) +536
system.web.httpapplication.initspecial(httpapplicationstate state, methodinfo[] handlers, intptr appcontext, httpcontext context) +173
system.web.httpapplicationfactory.getspecialapplicationinstance(intptr appcontext, httpcontext context) +336
system.web.hosting.pipelineruntime.initializeapplication(intptr appcontext) +296[httpexception (0x80004005): not load file or assembly 'system.runtime, version=4.1.0.0, culture=neutral, publickeytoken=b03f5f7f11d50a3a' or 1 of dependencies. located assembly's manifest definition not match assembly reference. (exception hresult: 0x80131040)]
system.web.httpruntime.firstrequestinit(httpcontext context) +10044576 system.web.httpruntime.ensurefirstrequestinit(httpcontext context) +95 system.web.httpruntime.processrequestnotificationprivate(iis7workerrequest wr, httpcontext context) +254
i installed system.runtime (v4.1.0.0) nuget no changes made.
how can resolve problem?
Comments
Post a Comment