Barcode Image is not loading (Failed to load the given URL)

Sep 27, 2012 at 9:05 AM
Edited Sep 27, 2012 at 9:37 AM

I am using Barcode Rendering Framework (Zen.Barcode.Web.Mvc) to render barcode dynamically in my NakedObjects MVC3 application.

I have added the following route in RegisterRoutes

// Allow extensionless handling of barcode image URIs

           routes.Add(

               "BarcodeImaging",

               new Route(

                   "Barcode/{id}",

                   new BarcodeImageRouteHandler()));

Using <img src="@Url.Barcode("123456", BarcodeSymbology.Code128, 50, 2, true)" /> in index.cshtml

But Barcode image is not loading. Showing following error

Failed to load the given URL

<img width="250" height="65" src="/Barcode/77u_QmFyY29kZVs0LDUwLDUwLDEsMSwyXTogQGl0ZW0uVGlja2V0Tm8gOi0xODM3NjM2OTA40">

But Standard ASP.NET MVC3 (without NakedObjects) is working fine.

Coordinator
Sep 27, 2012 at 9:27 AM

Put trace points on the controller methods -  to see whether that URL is being intercepted by another (Naked Objects) route pattern match?