Comments (12)
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.
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.
If you can take out any proprietary code and send me the project, I can look at it.
from routemagic.
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.
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.
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.
@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.
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.
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.
@haacked does this work at all with classic web forms?
from routemagic.
@ortrails it works with Routing. So if you're using Routing with Web Forms, then yes.
from routemagic.
from routemagic.
Related Issues (12)
- Json Results have RouteDebugging Appended
- MapDelegate overrides default routing when calling with Html.ActionLink HOT 2
- Route Debugger Not Showing Any Route Information HOT 7
- Unused for loop HOT 1
- Redirect Route Not working HOT 2
- General questions - not an issue but seeking more info HOT 4
- Unit testing fails with GroupRoute
- Namespace Distinction
- RouteMagic redirection giving 404 instead of redirecting HOT 4
- RouteMagic on Mono HOT 1
- Redirect routes are registered without name, so @Url.RouteUrl("name"...) fail
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from routemagic.