iis 7 - MVC5 on IIS 7.5 throws an exception: Could not load type HttpRedirect -


i have mvc5 app deployed fine local iis8 (windows 8) not working after deployment windows web server 2008 sp1.

the error get:

exception details: system.web.httpexception: not load type 'httpredirect'. stack trace:  [httpexception (0x80004005): not load type 'httpredirect'.]    system.web.compilation.buildmanager.gettype(string typename, boolean throwonerror, boolean ignorecase) +9671464    system.web.configuration.configutil.gettype(string typename, string propertyname, configurationelement configelement, xmlnode node, boolean checkaptcabit, boolean ignorecase) +38  [configurationerrorsexception: not load type 'httpredirect'.]    system.web.configuration.configutil.gettype(string typename, string propertyname, configurationelement configelement, xmlnode node, boolean checkaptcabit, boolean ignorecase) +359    system.web.configuration.configutil.gettype(string typename, string propertyname, configurationelement configelement, boolean checkaptcabit) +19    system.web.configuration.common.modulesentry.securegettype(string typename, string propertyname, configurationelement configelement) +39    system.web.configuration.common.modulesentry..ctor(string name, string typename, string propertyname, configurationelement configelement) +42    system.web.httpapplication.buildintegratedmodulecollection(list`1 modulelist) +160    system.web.httpapplication.getmodulecollection(intptr appcontext) +950    system.web.httpapplication.registereventsubscriptionswithiis(intptr appcontext, httpcontext context, methodinfo[] handlers) +82    system.web.httpapplication.initspecial(httpapplicationstate state, methodinfo[] handlers, intptr appcontext, httpcontext context) +172    system.web.httpapplicationfactory.getspecialapplicationinstance(intptr appcontext, httpcontext context) +336    system.web.hosting.pipelineruntime.initializeapplication(intptr appcontext) +296 [httpexception (0x80004005): not load type 'httpredirect'.]    system.web.httpruntime.firstrequestinit(httpcontext context) +9915300    system.web.httpruntime.ensurefirstrequestinit(httpcontext context) +101    system.web.httpruntime.processrequestnotificationprivate(iis7workerrequest wr, httpcontext context) +254 

i went through multiple articles , checked settings on iis, reinstalled net frameworks (4, 4.5, 4.5.1), registered within iis using: c:\windows\microsoft.net\framework\v4.0.30319\aspnet_regiis.exe -ir

i tried deploying few different test applications using standard asp.net website, mvc2/3/4 , 5. end same error. win-forms using net 4 work fine on server.

what interesting cannot find directly related article on net problem loading 'httpredirect' type. there httpredirect role installed on server.

not sure next. fight going on second day , running out of ideas. not easy find detailed requirements mvc run on machine either, or it's me , friday :-)

update:

log fuslogvw

* assembly binder log entry (27/06/2014 @ 15:20:31) *

the operation successful. bind result: hr = 0x0. operation completed successfully.

assembly manager loaded from: c:\windows\microsoft.net\framework\v4.0.30319\clr.dll running under executable c:\windows\syswow64\inetsrv\w3wp.exe --- detailed error log follows.

=== pre-bind state information === log: displayname = system.web.http (partial) wrn: partial binding information supplied assembly: wrn: assembly name: system.web.http | domain id: 6 wrn: partial bind occurs when part of assembly display name provided. wrn: might result in binder loading incorrect assembly. wrn: recommended provide specified textual identity assembly, wrn: consists of simple name, version, culture, , public key token. wrn: see whitepaper http://go.microsoft.com/fwlink/?linkid=109270 more information , common solutions issue. log: appbase = file:///d:/sitesource/mysite/cm3management/ log: initial privatepath = d:\sitesource\mysite\cm3management\bin log: dynamic base = c:\windows\microsoft.net\framework\v4.0.30319\temporary asp.net files\cm3management\bf917f7b log: cache base = c:\windows\microsoft.net\framework\v4.0.30319\temporary asp.net files\cm3management\bf917f7b log: appname = 871e80 calling assembly : (unknown). === log: bind starts in default load context. log: using application configuration file: d:\sitesource\mysite\cm3management\web.config log: using host configuration file: c:\windows\microsoft.net\framework\v4.0.30319\aspnet.config log: using machine configuration file c:\windows\microsoft.net\framework\v4.0.30319\config\machine.config. log: policy not being applied reference @ time (private, custom, partial, or location-based assembly bind). log: attempting download of new url file:///c:/windows/microsoft.net/framework/v4.0.30319/temporary asp.net files/cm3management/bf917f7b/871e80/system.web.http.dll. log: attempting download of new url file:///c:/windows/microsoft.net/framework/v4.0.30319/temporary asp.net files/cm3management/bf917f7b/871e80/system.web.http/system.web.http.dll. log: attempting download of new url file:///d:/sitesource/mysite/cm3management/bin/system.web.http.dll. log: assembly download successful. attempting setup of file: d:\sitesource\mysite\cm3management\bin\system.web.http.dll log: entering download cache setup phase. log: assembly name is: system.web.http, version=4.0.0.0, culture=neutral, publickeytoken=31bf3856ad364e35 log: partially-specified assembly bind succeeded application directory. need re-apply policy. log: using application configuration file: d:\sitesource\mysite\cm3management\web.config log: using host configuration file: c:\windows\microsoft.net\framework\v4.0.30319\aspnet.config log: using machine configuration file c:\windows\microsoft.net\framework\v4.0.30319\config\machine.config. log: post-policy reference: system.web.http, version=4.0.0.0, culture=neutral, publickeytoken=31bf3856ad364e35 log: gac lookup unsuccessful. log: binding succeeds. returns assembly c:\windows\microsoft.net\framework\v4.0.30319\temporary asp.net files\cm3management\bf917f7b\871e80\assembly\dl3\4ba23522\3f728a19_6f7acf01\system.web.http.dll. log: assembly loaded in default load context.

similar issue "partially loaded assembly" affects more assemblies system.web.http in case. far checked have similar looking log.

i wanted add tried publish "copy local" turned on , off system.web.http assembly. makes no difference. copy local assemblies not either.


Comments

Popular posts from this blog

javascript - RequestAnimationFrame not working when exiting fullscreen switching space on Safari -

Python ctypes access violation with const pointer arguments -