c# - Server Error in '/' Application 4 -


this question has answer here:

response not available in context. how can solve problem need please tried solve couldnt website work on local host when upload host doesnt work me please

{  response not available in context.  description: unhandled exception occurred during execution of current web request. please review stack trace more information error , originated in code.   exception details: system.web.httpexception: response not available in context.  source error:   unhandled exception generated during execution of current web request. information regarding origin , location of exception can identified using exception stack trace below.  stack trace:    [httpexception (0x80004005): response not available in context.]    system.web.httpcontext.get_response() +8820296    asp.global_asax.application_start(object sender, eventargs e) +54  [httpexception (0x80004005): response not available in context.]    system.web.httpapplicationfactory.ensureappstartcalledforintegratedmode(httpcontext context, httpapplication app) +2731054    system.web.httpapplication.registereventsubscriptionswithiis(intptr appcontext, httpcontext context, methodinfo[] handlers) +128    system.web.httpapplication.initspecial(httpapplicationstate state, methodinfo[] handlers, intptr appcontext, httpcontext context) +188    system.web.httpapplicationfactory.getspecialapplicationinstance(intptr appcontext, httpcontext context) +295    system.web.httpapplicationfactory.getpipelineapplicationinstance(intptr appcontext, httpcontext context) +56    system.web.hosting.pipelineruntime.initializeapplication(intptr appcontext) +231  [httpexception (0x80004005): response not available in context.]    system.web.httpruntime.firstrequestinit(httpcontext context) +8929163    system.web.httpruntime.ensurefirstrequestinit(httpcontext context) +85    system.web.httpruntime.processrequestnotificationprivate(iis7workerrequest wr, httpcontext context) +333 } 

as error says, can not access response object in application_start. check (and preferably post) code in global.asax application_start method.


Comments

Popular posts from this blog

php - Calling a template part from a post -

Firefox SVG shape not printing when it has stroke -

How to mention the localhost in android -