Tech Off Thread

4 posts

No http handler was found for request type 'GET'

Back to Forum: Tech Off
  • User profile image

    Executing a python script in via ASPX in IIS7 via


    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/]
       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?


  • User profile image

    have you tried it with a full path?

    can you execute any asp script using that Server.Execute() just to eliminate the python aspect of the problem?

    maybe your app pool identity needs to be in iis_iusr group (total guess there).

  • User profile image


    Asp Scripts execute fine and I've already set the app pool to run under an escalated account.

    Really, not sure why my name is now WTF though....

  • User profile image

    Check your web.config setting.

            <add name="cgi-bin" 
             scriptProcessor="C:\Python\python.exe %s %s" 
             resourceType="Unspecified" />

    Have you enabled verb "GET" (or just use wildcard "*") for extension ".py"? (Make sure you've modified the scriptProcessor attribute above to match your python path.)

    Recent Achievement unlocked: Code Avenger Tier 4/6: You see dead program. A lot!
    Last modified

Comments closed

Comments have been closed since this content was published more than 30 days ago, but if you'd like to continue the conversation, please create a new thread in our Forums, or Contact Us and let us know.