Code Monkey home page Code Monkey logo

Comments (12)

haacked avatar haacked commented on June 8, 2024

Hi @bartvanderwalips what version of ASP.NET MVC are you running this against. And did you install the latest RouteDebugger package?

Starting with RouteDebugger 2.0, you don't need to add any code to Global.asax.cs in order for it to work. Check out this blog post: http://haacked.com/archive/2011/04/13/routedebugger-2.aspx/

After you install the package into your ASP.NET MVC project (make sure you target the right project), it should just work.

from routemagic.

bartvanderwalips avatar bartvanderwalips commented on June 8, 2024

Hello Phil,

Thanks for your time! To answer you question: I'm running MVC5 since a while. Like I stated before. But I had the same issue (The type or namespace name 'RouteDebugger' does not exist... in MVC 4.0 before I updated. I switched from the RouteDebugger NuGet package to the RouteMagic package when you asked me to log a bug on this repo. Version 1.2 (NuGet indicates this as the latest). This had the same issue.

If you're saying the line in global.asax isn't necessary anymore, then that might solve the issue. Since I can simply remove the line that is not compiling. My issue is then more that I was following online instructions that are out of date :).

However if I remove this line from global.asax routedebugging is also not working. I DO have this in my appSettings:
<add key="RouteDebugger:Enabled" value="true" />

I don't have time to investigate it further right now. Will do that when I need to route debug again 😄.

from routemagic.

haacked avatar haacked commented on June 8, 2024

If you can take out any proprietary code and send me the project, I can look at it.

from routemagic.

bartvanderwalips avatar bartvanderwalips commented on June 8, 2024

Thanks! About the whole project is proprietary. But if I simply

  • create a new default (c#) MVC5 app, and
  • add the RouteMagic NuGet package and
  • the RouteDebugger:Enabled appSetting

then I also don't see the expected extra route debugging info at the bottom of the page when running it.

I'm a bit afraid I'm doing something elementary wrong. But if you are still willing to take some time, I cloned your project on GitHub and have added a zip with the solution in it. You can download it here

Note: I'm using Visual Web Express 2013.

from routemagic.

haacked avatar haacked commented on June 8, 2024

Do you want RouteMagic or RouteDebugger? The RouteMagic package contains a set of custom routes that are useful. The RouteDebugger package contains the route debugger and doesn't require any changes.

I think the confusion is that the source code for these two packages are both in the same GitHub repository, haacked/routemagic.

Sorry for the confusion.

from routemagic.

bartvanderwalips avatar bartvanderwalips commented on June 8, 2024

Thanks @haacked!

It is working now 😄 . I switched back to the RouteDebugger package.

To prevent future confusion perhaps you could add a small mention in your original post that the line in the global.asax line is no longer necessary in newer versions (just above code sample):
http://haacked.com/archive/2008/03/13/url-routing-debugger.aspx/

from routemagic.

haacked avatar haacked commented on June 8, 2024

@bartvanderwalips great! Sorry for the confusion.

To prevent future confusion perhaps you could add a small mention in your original post that the line in the global.asax line is no longer necessary in newer versions (just above code sample):

Want to send me a pull request? On every post, there is an "edit" link (I put here for convenience) that takes you to a markdown editor. When you make a change, it'll send me a pull request.

If you don't have the time, I'll do it. But I love getting contributions. 😄

from routemagic.

bartvanderwalips avatar bartvanderwalips commented on June 8, 2024

Thanks! I hadn't noticed the edit link on your blog. Am curious to see how that works. Will do it from my personal GitHub profile.

from routemagic.

haacked avatar haacked commented on June 8, 2024

Yes. You'll have to login to GitHub.com (if you're not alread). It'll fork my repository and give you an in-browser text editor. When you commit it, it'll submit a pull request to me.

from routemagic.

ortrails avatar ortrails commented on June 8, 2024

@haacked does this work at all with classic web forms?

from routemagic.

haacked avatar haacked commented on June 8, 2024

@ortrails it works with Routing. So if you're using Routing with Web Forms, then yes.

from routemagic.

ortrails avatar ortrails commented on June 8, 2024

from routemagic.

Related Issues (12)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.