Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 85269
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 10, 20262026-05-10T22:03:46+00:00 2026-05-10T22:03:46+00:00

I am using the .NET 3.5 SP1 framework and I’ve implemented URL routing in

  • 0

I am using the .NET 3.5 SP1 framework and I’ve implemented URL routing in my application. I was getting javascript errors:

Error: ASP.NET Ajax client-side framework failed to load.
Resource interpreted as script but transferred with MIME type text/html.
ReferenceError: Can't find variable: Sys

Which I believe is because my routing is picking up the microsoft axd files and not properly sending down the javascript. I did some research and found that I could use Routes.IgnoreRoute, which should allow me to ignore the axd like below:

Routes.IgnoreRoute('{resource}.axd/{*pathInfo}'); 

But, when I add that line to my Global.asax I get this error:

CS1061: 'System.Web.Routing.RouteCollection' does not contain a definition for 'IgnoreRoute' and no extension method 'IgnoreRoute' accepting a first argument of type 'System.Web.Routing.RouteCollection' could be found (are you missing a using directive or an assembly reference?)

I’ve got the System.Web.Routing namespace imported, any ideas?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. 2026-05-10T22:03:46+00:00Added an answer on May 10, 2026 at 10:03 pm

    You don’t need to reference ASP.NET MVC. You can use the StopRoutingHandler which implements IRouteHandler like so:

    routes.Add(new Route('{resource}.axd/{*pathInfo}', new StopRoutingHandler())); 

    This is part of .NET 3.5 SP1 and doesn’t require MVC. The IgnoreRoutes method is a convenience extension method which is part of ASP.NET MVC.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I am building a asp.net webforms (3.5 sp1) application, using jquery where I can
I'm using the new CompositeScript feature that's available in the ASP.NET 3.5 SP1 for
I'm using Windows Vista x64 with SP1, and I'm developing an ASP.NET app with
I am using .net 3.5 framework sp1 and VS 2008 sp1. I have created
I am using Visual Studio 2008 SP1 with .NET Framework sp1. I am not
I have an application built in C# with the .Net Framework 3.5 SP1 (also
Using ASP.NET MVC 3.0 with Visual Studio 2010 (Pre-SP1 and with SP1) and ASP.NET
I am using the (.NET 3.5 SP1) System.Xml.Linq namespace to populate an html template
I'm using Visual Studio 2008 SP1 on .NET 3.5 SP1 on Vista Any time
I just started using the WPF WebBrowser that is included in Net 3.5 SP1.

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.