c# - Internal server when trying to load external asp.mvc website through code -
i'm trying help out colleague problem having. means don't have debug info available, thought maybe here steer in right direction.
as stated in title trying load html of external website code. in fact using curl. have tested using curl (php), file_get_contents (php), wget (terminal), , webclient , httpwebrequest (c#). result internal server error message.
[nullreferenceexception: object reference not set instance of object.] innsyn.controllers.basecontroller.executecore() +673 system.web.mvc.controllerbase.execute(requestcontext requestcontext) +334 system.web.mvc.<>c__displayclassb.<beginprocessrequest>b__5() +61 system.web.mvc.async.<>c__displayclass1.<makevoiddelegate>b__0() +19 system.web.mvc.<>c__displayclasse.<endprocessrequest>b__d() +53 system.web.callhandlerexecutionstep.system.web.httpapplication.iexecutionstep.execute() +468 system.web.httpapplication.executestep(iexecutionstep step, boolean& completedsynchronously) +374
as can see website trying load asp.mvc application: http://einnsyn.harstad.kommune.no/einnsyn
when viewing website browser site works fine.
you need supply http-headers. utilize browser plugin @ headers sent site when using browser, duplicate in tool. used method on einnsyn info wget.
c# php asp.net-mvc curl wget
No comments:
Post a Comment