Quantcast
Channel: C1 CMS Foundation - Open Source on .NET
Viewing all articles
Browse latest Browse all 2540

New Post: Composite C1 PathInfo Issue with MVC Player

$
0
0
Hi,

I have a problem I have been unable to fix up. I am trying to create some good URLs for a dynamic page using PathInfo to get the various bits of information. I understand I can use QueryString for this but I this isn't an option and PathInfo matches my URL requirements better.

URL Example
localhost:49583/home/contact-map/test-path-info-here

I played around with PathInfo and it works fine for standard pages however for any page using the MVC Player which loads in one of my Views it doesnt work. I am presented with this error.

public class MvcHttpHandlerWrapper : MvcHttpHandler
{
    public MvcHttpHandlerWrapper()
    {
        RouteCollection = MvcPlayerRouteTable.Routes;

    }

    public void PublicProcessRequest(HttpContextBase httpContext)
    {
                    //ERROR DETAILS
                    //The controller for path '/test-path-info-here' was not found or does not implement IController.
        base.ProcessRequest(httpContext);
    }
}
I have tried RegisterPathInfoUsage in various places but this has no effect. It looks like a bug of the MVCPlayer.

Has anyone else experienced this issue?

Viewing all articles
Browse latest Browse all 2540

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>