The route / works The /home/list throws If I don't set any routing constraints or have Routes.HomeIs<HomeInputModel>(); |
The route / works The route /test/home/list works the route /test/home/index returns HTTP Error 404.0 - Not Found Is the above expected behavior, why the different responses on namepaced vs none namespaced home/index Also is I don't set the default home route why can't I get to the the action using full url? Why can't I get to the home route using the full url? |
--
You received this message because you are subscribed to the Google Groups "FubuMVC Development Group" group.
To unsubscribe from this group and stop receiving emails from it, send an email to fubumvc-deve...@googlegroups.com.
To post to this group, send email to fubumv...@googlegroups.com.
Visit this group at http://groups.google.com/group/fubumvc-devel?hl=en.
For more options, visit https://groups.google.com/groups/opt_out.
Line 1: #pragma checksum ".......\Test\home.cshtml" "{ff1816ec-aa5e-4d10-87f7-6f4963833460}" "C92FE1F4231412933A8EA79DCBAE2565C9CF5C8E"
Line 2: //------------------------------------------------------------------------------
Line 3: // <auto-generated>
Line 4: // This code was generated by a tool.
Line 5: // Runtime Version:4.0.30319.18034
Line 6: //
Line 7: // Changes to this file may cause incorrect behavior and will be lost if
Line 8: // the code is regenerated.
Line 9: // </auto-generated>
Line 10: //------------------------------------------------------------------------------
Line 11:
Line 12: namespace ASP {
Line 13: using System;
Line 14: using System.Collections.Generic;
Line 15: using System.IO;
Line 16: using System.Linq;
Line 17: using System.Net;
Line 18: using System.Web;
Line 19: using System.Web.Helpers;
Line 20: using System.Web.Security;
Line 21: using System.Web.UI;
Line 22: using System.Web.WebPages;
Line 23: using FubuMVC.Core;
Line 24: using FubuCore;
Line 25: using FubuCore.Reflection;
Line 26: using FubuLocalization;
Line 27: using FubuMVC.Core.UI;
Line 28: using FubuMVC.Core.Assets;
Line 29: using FubuMVC.Core.View;
Line 30: using FubuMVC.Razor;
Line 31: using HtmlTags;
Line 32: using WebMatrix.Data;
Line 33: using WebMatrix.WebData;
Line 34:
Line 35:
Line 36: public class _Page_home_cshtml : FubuMVC.Razor.Rendering.FubuRazorView<Test.HomeViewModel> {
Line 37:
Line 38: #line hidden
Line 39:
Line 40:
Line 41: public _Page_home_cshtml() {
Line 42: }
Line 43:
Line 44: protected ASP.global_asax ApplicationInstance {
Line 45: get {
Line 46: return ((ASP.global_asax)(Context.ApplicationInstance));
Line 47: }
Line 48: }
Line 49:
Line 50: public override void Execute() {
Line 51:
Line 52: WriteLiteral("\r\n");
Line 53:
Line 54:
Line 55:
Line 56: #line 3 ".......\Test\home.cshtml"
Line 57:
Line 58: Layout = "Application";
Line 59:
Line 60:
Line 61:
Line 62: #line default
Line 63: #line hidden
Line 64: WriteLiteral("\r\n<h2>Home</h2>\r\n");
Line 65:
Line 66:
Line 67: }
Line 68: }
Line 69: }
Line 70: Adding some context. Trying to follow this post http://coreykaylor.com/blog/2012/11/17/getting-started-with-fubumvc-again which doesnt use the webactivator to setup the app
--
You received this message because you are subscribed to a topic in the Google Groups "FubuMVC Development Group" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/fubumvc-devel/ASwgJePBoNg/unsubscribe?hl=en.
To unsubscribe from this group and all its topics, send an email to fubumvc-deve...@googlegroups.com.
Line 2: //------------------------------------------------------------------------------
Line 3: // <auto-generated>
Line 4: // This code was generated by a tool.
Line 5: // Runtime Version:4.0.30319.18047
Line 6: //
Line 7: // Changes to this file may cause incorrect behavior and will be lost if
Line 8: // the code is regenerated.
Line 9: // </auto-generated>
Line 10: //------------------------------------------------------------------------------
Line 11:
Line 12: namespace ASP {
Line 13: using System;
Line 14: using System.Collections.Generic;
Line 15: using System.IO;
Line 16: using System.Linq;
Line 17: using System.Net;
Line 18: using System.Web;
Line 19: using System.Web.Helpers;
Line 20: using System.Web.Security;
Line 21: using System.Web.UI;
Line 22: using System.Web.WebPages;
Line 23: using FubuMVC.Core;
Line 24: using FubuCore;
Line 25: using FubuCore.Reflection;
Line 26: using FubuLocalization;
Line 27: using FubuMVC.Core.UI;
Line 28: using FubuMVC.Core.Assets;
Line 29: using FubuMVC.Core.View;
Line 30: using FubuMVC.Razor;
Line 31: using HtmlTags;
Line 32:
Line 33:
Line 34: public class _Page_contentdashboard_courses_cshtml : FubuMVC.Razor.Rendering.FubuRazorView<PS.Web.Dashboards.ContentDashboard.CoursesVm> {
Line 35:
Line 36: #line hidden
Line 37:
Line 38:
Line 39: public _Page_contentdashboard_courses_cshtml() {
Line 40: }
Line 41:
Line 42: protected ASP.global_asax ApplicationInstance {
Line 43: get {
Line 44: return ((ASP.global_asax)(Context.ApplicationInstance));
Line 45: }
Line 46: }
Line 47:
Line 48: public override void Execute() {
Line 49:
Line 50: WriteLiteral("\r\n<!DOCTYPE html>\r\n\r\n<html>\r\n<head>\r\n <title>Hello</title>\r\n</head>\r\n<body>\r\n " +
Line 51: " <h1>Hello</h1>\r\n <div>\r\n\r\n </div>\r\n</body>\r\n</html>\r\n");
Line 52:
Line 53:
Line 54: }
Line 55: }
Line 56: }I'm running into this same issue with Razor. The view has been striped down to not even reference the model.Note that I'm adding FubuMvc to a project that is already doing WebForms and ASP.NET MVC 3 (with Razor). Not sure if that is causing the issue. Was there ever a resolution to the issue reported here? Will do some more investigation.Compiler Error Message: CS0103: The name 'Context' does not exist in the current context
Source Error:
Line 42: protected ASP.global_asax ApplicationInstance { Line 43: get { Line 44: return ((ASP.global_asax)(Context.ApplicationInstance)); Line 45: } Line 46: }
--
Specifically we want to share the base layout (not whole views). We also couldn't get partials to work? Documentation is still a barrier to adoption... :(