Copied to clipboard

Flag this post as spam?

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


  • jlacis 19 posts 39 karma points
    Sep 02, 2012 @ 20:40
    jlacis
    0

    umbracoMVCo problem

    hello!

    I vant to use umbracoMVCo

    http://our.umbraco.org/projects/website-utilities/umbramvco

    I've read the readme file and removed all umbracoRequestModule references in httpModules and  modules sections.
    but when I'm debugging my solution I get System.NullReferenceException: Object reference not set to an instance of an object.
    [NullReferenceException: Object reference not set to an instance of an object.]
       umbraco.page..ctor(XmlNode xmlNode) +264
       UmbraMVCo.RenderRouteHandler.GetHttpHandler(RequestContext requestContext) +584
       System.Web.Routing.UrlRoutingHandler.ProcessRequest(HttpContextBase httpContext) +123
       System.Web.Routing.UrlRoutingHandler.ProcessRequest(HttpContext httpContext) +42
       System.Web.Routing.UrlRoutingHandler.System.Web.IHttpHandler.ProcessRequest(HttpContext context) +10
       UmbraMVCo.RequestModule.RewriteToPath(HttpContext context, String currentPath, String currentQuery, Boolean isMvc) +388
       UmbraMVCo.RequestModule.UmbracoRewrite(Object sender, EventArgs e) +1909
       UmbraMVCo.RequestModule.PostMapRequestHandler(Object sender, EventArgs e) +40
       System.Web.SyncEventExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute() +148
       System.Web.HttpApplication.ExecuteStep(IExecutionStep step, Boolean& completedSynchronously) +75
    what am I doing wrong?

    P.S. I use umbreco 4.8.1

  • jlacis 19 posts 39 karma points
    Sep 03, 2012 @ 13:56
    jlacis
    0

    does anyone know the solution?

     

    imho, I have to add Global.asax file to mu solution

    could anyone give me example of this file to make my umbraco cms project work with MVC

  • Jeroen Breuer 4908 posts 12265 karma points MVP 4x admin c-trib
    Sep 03, 2012 @ 14:01
    Jeroen Breuer
    0

    In 4.8 the Global.asax has been changed so that might be the problem: http://our.umbraco.org/forum/developers/api-questions/34262-umbracoGlobal-in-v48.

    It might be better to use umbraMVCo with 4.7 or wait for 4.10 which will also have MVC support and will be out soon.

    Jeroen

  • jlacis 19 posts 39 karma points
    Sep 03, 2012 @ 14:52
    jlacis
    0

    thank you for reply.

    I've tried to use umbraco 4.7

    but I get the CS0433 error  " The type 'ASP.global_asax' exists in both 'd:\Temp\TmpASP\root\70364a2b\6948c426\assembly\dl3\33122687\008dfdd6_4ad0cc01\App_global.asax.DLL' and 'd:\Temp\TmpASP\root\70364a2b\6948c426\App_global.asax.tnsx3h29.dll'"

     

    if I remove my global.asax file I get the error described in my 1st post

    and, if I delete the App_global.asax.dll file and in tehe references set copy local ="false", I get

    Configuration Error


    Could not load type 'umbraco.presentation.urlRewriter.FormRewriterControlAdapter'.

    <browser refID="Default">
          <controlAdapters>
     <adapter controlType="System.Web.UI.HtmlControls.HtmlForm"                 adapterType="umbraco.presentation.urlRewriter.FormRewriterControlAdapter" />
         </controlAdapters>

    is it possible to fix it?

  • Scott Williams 14 posts 71 karma points
    Sep 03, 2012 @ 15:06
    Scott Williams
    0

    i've noticed it can thow that exception if it failes to find a content node for the page your visiting.

    Try going directly to

    yourdomain.com/umbraco/umbraco.aspx

    and make user you have some nodes in the content tree and if you do try right clicking the root "content" node and clicking republish entire site to rebuild the XML cache.

    Scott.

Please Sign in or register to post replies

Write your reply to:

Draft