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 4075018
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 20, 20262026-05-20T17:14:41+00:00 2026-05-20T17:14:41+00:00

Running IIS6 . So, ‘.’ do not work in IIS6, but they work fine

  • 0

Running IIS6.
So, ‘.’ do not work in IIS6, but they work fine in the visual studio debugger and IIS7. Here’s the steps to reproduce.

Steps to reproduce:
– Start with a blank MVC 3 project.
– Add A new view called “Index” and accept the defaults.
– Configure RegisterRoutes() as follows:

public static void RegisterRoutes(RouteCollection routes)
{
    routes.IgnoreRoute("{resource}.axd/{*pathInfo}");

    routes.MapRoute(
        "QuerySomething",
        "QueryStuff/Index/{*aString}",
        new { controller = "QueryStuff", action = "Index", aString = UrlParameter.Optional } // Parameter defaults
    );

    routes.MapRoute(
        "Default", // Route name
        "{controller}/{action}/{id}", // URL with parameters
        new { controller = "Home", action = "Index", id = UrlParameter.Optional } // Parameter defaults
    );

}

Now, add a controller that returns Json:

using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.Mvc;

    namespace MvcApplication1.Controllers
    {
        public class QueryStuffController : Controller
        {
            //
            // GET: /QueryStuff/

            public ActionResult Index(string aString)
            {
                return Json("aString:oye",JsonRequestBehavior.AllowGet);
            }

        }
    }
  1. Verify that the page is accessible:

    http://serverName/QueryStuff/Index/someInfo

You should get http 200.

  1. Now try to get there with a ‘.’ in the path

    http://serverName/QueryStuff/Index/someInfo.com

You should get a http 404 error. (Note that this error is NOT reproduceable when running through visual studio debugger. One must deploy the code to IIS.)

UPDATE
I modified Regex to route for email addresses and it made the problem even worse.

    routes.MapRoute(
        "QuerySomething",
        "QueryStuff/Index/{aString}"
        , new { controller = "QuerySomething", action = "Index" },
        new { aString = @"\b[A-Z0-9._%-]+@[A-Z0-9.-]+\.[A-Z]{2,4}\b" }
        ); 

With this its 404 everytime.

  • 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. Editorial Team
    Editorial Team
    2026-05-20T17:14:41+00:00Added an answer on May 20, 2026 at 5:14 pm

    I don’t think this is an MVC error as such, more a limitation of http? We had the same issues so ended up swapping “.” for “!” in URLs then converting them back to “.” in the controllers.

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

Sidebar

Related Questions

We're currently running on IIS6, but hoping to move to IIS 7 soon. We're
We have an ASP.NET 3.5 app running in IIS6 we're migrating to IIS7 &
I'm deploying a MCV 1.0 project on a web server running IIS6. (not by
I have a number of web apps running on several IIS6/Server 2003 boxes. They
I have an existing website running on IIS6 that has only static HTML pages.
I have an ASP.NET application running on multiple IIS6 web servers, with a SQL
I'm running asp.net MVC site on IIS6 - I've edited my routing to look
I am trying to get ASP.Net MVC 4 working on IIS6 and am running
I installed php and mysql on a Windows 2003 server running IIS6. I uncommented
I have a MVC3 site in .Net 4.0 running on IIS6 with extensionless manner

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.