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?
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'.
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.
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
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
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
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 ErrorCould 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?
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.
is working on a reply...