Welcome Guest! To enable all features please Login or Register.

Notification

Icon
Error

Module development
nvanmatre
#1 Posted : Tuesday, September 14, 2010 6:09:38 AM(UTC)
Rank: Member
Groups: Registered

Joined: 3/10/2010(UTC)
Posts: 21
I created a new module using the vs module template. I can run and debug the module from VS but when I create a web site in IIS7 I get the following routing errors.

FYI,I am running it as a Mock Application.

The incoming request does not match any route.

Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code.

Exception Details: System.Web.HttpException: The incoming request does not match any route.

Source Error:


Line 8: HttpContext.Current.RewritePath("/home/index");
Line 9: IHttpHandler httpHandler = new Everest.CmsServices.Web.KoobooMvcHttpHandler();
Line 10: httpHandler.ProcessRequest(HttpContext.Current);
Line 11: }
Line 12: </script>

Thanks,
Nick
nvanmatre
#2 Posted : Tuesday, September 21, 2010 5:05:39 AM(UTC)
Rank: Member
Groups: Registered

Joined: 3/10/2010(UTC)
Posts: 21
Never mind I figured out what was going on. For anyone else that has had this problem

In order to run the module under .net 4.0 IIS you need to modify your web.config with the following

<system.webServer>
<validation validateIntegratedModeConfiguration="false"/>
<modules runAllManagedModulesForAllRequests="true">
<remove name="UrlRoutingModule"/>
<remove name="ScriptModule"/>
<add name="ModuleTemplateRouting" type="CRM.Module.HttpModule.ModuleTemplateRouting"/> <!--add this line-->
...

If someone gets time please update the web.config in the ModuleTemplate VS template.

Thanks
Users browsing this topic
Guest
Forum Jump  
You cannot post new topics in this forum.
You cannot reply to topics in this forum.
You cannot delete your posts in this forum.
You cannot edit your posts in this forum.
You cannot create polls in this forum.
You cannot vote in polls in this forum.

Powered by YAF 1.9.5.5 | YAF © 2003-2011, Yet Another Forum.NET
This page was generated in 0.053 seconds.