Copied to clipboard

Flag this post as spam?

This post will be reported to the moderators as potential spam to be looked at


  • Seth Niemuth 275 posts 397 karma points
    Mar 16, 2011 @ 11:18
    Seth Niemuth
    0

    HttpException for ImageGen.ashx

    I keep getting errors (over 100 a day) in my error log where the path looking for ImageGen is not correct by it looking in the directory where it is already. Here is the exception:

     

     

    System.Web.HttpException: The file '/accessories/umbraco/ImageGen.ashx' does not exist.

    Generated: Wed, 16 Mar 2011 09:37:09 GMT

    System.Web.HttpException: The file '/accessories/umbraco/ImageGen.ashx' does not exist.
       at System.Web.UI.Util.CheckVirtualFileExists(VirtualPath virtualPath)
       at System.Web.Compilation.BuildManager.GetVPathBuildResultInternal(VirtualPath virtualPath, Boolean noBuild, Boolean allowCrossApp, Boolean allowBuildInPrecompile)
       at System.Web.Compilation.BuildManager.GetVPathBuildResultWithNoAssert(HttpContext context, VirtualPath virtualPath, Boolean noBuild, Boolean allowCrossApp, Boolean allowBuildInPrecompile)
       at System.Web.Compilation.BuildManager.GetVPathBuildResult(HttpContext context, VirtualPath virtualPath, Boolean noBuild, Boolean allowCrossApp, Boolean allowBuildInPrecompile)
       at System.Web.UI.SimpleHandlerFactory.System.Web.IHttpHandlerFactory2.GetHandler(HttpContext context, String requestType, VirtualPath virtualPath, String physicalPath)
       at System.Web.HttpApplication.MapHttpHandler(HttpContext context, String requestType, VirtualPath path, String pathTranslated, Boolean useAppConfig)
       at System.Web.HttpApplication.MapHandlerExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute()
       at System.Web.HttpApplication.ExecuteStep(IExecutionStep step, Boolean& completedSynchronously)
    

    I can never see this error when I go to the page (tried in many different browsers). It is only in the error log.

    I am never using relative paths. Here is the HTML code produced on the page for the image src:

     

    src="/umbraco/ImageGen.ashx?image=/media/18914/acs%20duocom.jpg&width=120&height=80&Constrain=true"
    

     

    I am actually guessing that it has nothing to do with ImageGen but the ImageGen resource is the only thing that ever shows up with this error. 

    Umbraco version 4.0.4.2

    SQL Server 2005

    ImageGen version 2.0.1.0

    Any ideas?

  • Douglas Robar 3570 posts 4711 karma points MVP ∞ admin c-trib
    Mar 16, 2011 @ 11:24
    Douglas Robar
    0

    Don't think it is related to ImageGen at all. You might check your webserver log for requests to /accessories/umbraco/ImageGen.ashx and see where those requests are coming from. Might be a bad macro or a spammer, for instance.

    cheers,
    doug. 

  • Stefan Kip 1614 posts 4131 karma points c-trib
    Mar 16, 2011 @ 11:39
    Stefan Kip
    0

    Or maybe you're rewriting the url and you're not aware of that? Check Url rewriting for rules which could match the imagegen url.

  • Seth Niemuth 275 posts 397 karma points
    Mar 16, 2011 @ 11:41
    Seth Niemuth
    0

    I don't think it is spammers or robots because they are coming from different IP addresses, and I can see them coming from different browsers (IE6, IE7, Firefox on Mac, Safari on Mac).

    It is probably not related necessarily to ImageGen but ImageGen is the only resource that is coming up (not non-image gen images or CSS or javascript files).

    I don't think it is a bad macro as when I go to the pages, I can never see the error and I always see the pictures.

  • Seth Niemuth 275 posts 397 karma points
    Mar 16, 2011 @ 11:44
    Seth Niemuth
    0

    Good thought about the URL Rewriting but I am not using any redirects or rewriting on the site. As in, there are no entries in the '/config/UrlRewriting.config'

Please Sign in or register to post replies

Write your reply to:

Draft