Error using IOC conatiner StructureMap

Last post 03-15-2010, 9:03 PM by cutechat. 1 replies.
Sort Posts: Previous Next
  •  03-15-2010, 6:12 PM 59409

    Error using IOC conatiner StructureMap

    Hi,

    I have a ASP.NET MVC app and are evaluating the AjaxUploader.

    I am using StructureMap which uses its own controller factory instead of the default one for MVC.

    When I try to upload a file I get this error.

    The IControllerFactory 'Mylester.Web.StructureMapControllerFactory' did not return a controller for a controller named 'UploadHandler.ashx'.

    Do you have any ideas as to why this is? If you need mre info let me know.

    Malcolm

  •  03-15-2010, 9:03 PM 59413 in reply to 59409

    Re: Error using IOC conatiner StructureMap

    Malcolm,
     
    MvcUploader use UploadHandler.ashx to process the http request.
     
    You need find a way to prevent the IOC framework to intercept the *.ashx handlers.
     
    I mean the IOC framework should have a solution which is compatible of ASP.NET buildin features.
     
    Regards,
    Terry
     
View as RSS news feed in XML