Tech Off Post

Single Post Permalink

View Thread: No http handler was found for request type 'GET'
  • User profile image
    phreaks

    Executing a python script in via ASPX in IIS7 via

    Server.Execute("scriptname.py?arg1=x&arg2=z")

    Gives me the following error:

    No http handler was found for request type 'GET'

    [HttpException (0x80004005): No http handler was found for request type 'GET']
       System.Web.HttpApplication.MapIntegratedHttpHandler(HttpContext context, String requestType, VirtualPath path, String pathTranslated, Boolean useAppConfig, Boolean convertNativeStaticFileModule) +849
       System.Web.HttpServerUtility.Execute(String path, TextWriter writer, Boolean preserveForm) +463
    
    [HttpException (0x80004005): Error executing child request for ~/CGI-BIN/Stock-chart.py.]
       System.Web.HttpServerUtility.Execute(String path, TextWriter writer, Boolean preserveForm) +816
       System.Web.HttpServerUtility.Execute(String path) +8
       ms_sandbox.About.Page_Load(Object sender, EventArgs e) in D:\Dropbox\Dropbox\WebSites\ms-sandbox\ms-sandbox\About.aspx.cs:14
       System.Web.Util.CalliHelper.EventArgFunctionCaller(IntPtr fp, Object o, Object t, EventArgs e) +14
       System.Web.Util.CalliEventHandlerDelegateProxy.Callback(Object sender, EventArgs e) +35
       System.Web.UI.Control.OnLoad(EventArgs e) +91
       System.Web.UI.Control.LoadRecursive() +74
       System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +2207


    I have added the script handler to IIS and I can call the script directly fine.
    It's only when I try to call it via server.execute that I have this issue.

    Any Ideas?