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

  • Home
  • SEARCH
  • 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 6171481
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 23, 20262026-05-23T23:13:21+00:00 2026-05-23T23:13:21+00:00

On IIS 7 server with my ASP.NET MVC 3 application, I am encountering the

  • 0

On IIS 7 server with my ASP.NET MVC 3 application, I am encountering the following problem: when I have an action taking rather long time to complete (like 30 seconds), it will get fired for the second time after cca 15-20 seconds from the first request. I can see in Fiddler (HTTP sniffer) that the browser is not the culprit – it only sends the request once. However, in IIS log files, I can see the request twice. However, in IIS logs, both requests have the same timestamp (not in my own log files – there the two requests are separated by those 15-20 seconds).

Originally, the action was processing an uploaded file, storing it in the database etc..However, even after I changed the action to just call Thread.Sleep(30000), it is still called twice.

It is not caused by some malfunctioning JavaScript or missing-image references which seem to be the common reasons for this behavior as I read through similar problems here on StackOverflow. I cannot replicate this on the development ASP.NET server, only on the IIS server and just on one of two I use.

This is the HTML form used to trigger that action

@model TMAppServer.Abstract.DataTransferObject.ProjectOverviewData

@{
    Layout = null;
}

<!DOCTYPE html>

<html>
<head>
    <title>UploadTestForm</title>
</head>
<body>
    <div>
        @using (Html.BeginForm("UploadFileNew", "Manager", new { targetLanguage = "CS" }, FormMethod.Post, new { enctype = "multipart/form-data" }))
        {
            <input id="files" type="file" name="files" /><text><input type="submit" id="uploadFile" value="Upload the document..." /><input type="hidden" name="projectId" id="projectId" value="@(Model.Job.Name)" />
        }
    </div>
</body>
</html>

This is the controller action:

public ActionResult UploadFileNew(string projectId, string targetLanguage, IList<HttpPostedFileBase> files)
{    
    foreach (var file in files)
    {
        if (null == file)
            continue;

        Thread.Sleep(30000);
    }
    return RedirectToAction("GetProjectOverview", new { projectId = projectId });
}

Thank you for any suggestions.

EDIT: Now I found out that this only happens when I access the server via its domain name from the same network (like server.domain.com), it does NOT happen when accessing the server via its IP address or from an outside network.

This is what I get in the IIS logs:

2011-07-21 01:23:31 W3SVC2 WIN-AD50B4LJ2SU 192.168.1.48 POST /manager/upload-file projectId=3366 80 - 192.168.1.1 HTTP/1.1 Mozilla/5.0+(Windows+NT+6.1;+WOW64;+rv:5.0.1)+Gecko/20100101+Firefox/5.0.1 .ASPXAUTH=cookie http://tm.web.com/manager/projects/3366/overview tm.web.com 302 0 0 440 6232309 578
2011-07-21 01:23:31 W3SVC2 WIN-AD50B4LJ2SU 192.168.1.48 GET /manager/projects/3366/overview - 80 - 192.168.1.1 HTTP/1.1 Mozilla/5.0+(Windows+NT+6.1;+WOW64;+rv:5.0.1)+Gecko/20100101+Firefox/5.0.1 .ASPXAUTH=cookie http://tm.web.com/manager/projects/3366/overview tm.web.com 200 0 0 30125 769 93
2011-07-21 01:23:31 W3SVC2 WIN-AD50B4LJ2SU 192.168.1.48 POST /manager/upload-file projectId=3366 80 - 192.168.1.1 HTTP/1.1 Mozilla/5.0+(Windows+NT+6.1;+WOW64;+rv:5.0.1)+Gecko/20100101+Firefox/5.0.1 .ASPXAUTH=cookie http://tm.web.com/manager/projects/3366/overview tm.web.com 302 0 64 0 6232309 39406

And these are my routes in Global.asax.cs

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

    routes.MapRoute(null,
                    "manager/upload-file",
                    new { controller = "Manager", action = "UploadFile" },
                    new { httpMethod = new HttpMethodConstraint("POST") }
    );      

    routes.MapRoute(null,
                    "manager/projects/{projectId}/overview",
                    new { controller = "Manager", action = "GetProjectOverview" },
                    new { httpMethod = new HttpMethodConstraint("GET") }
    );      

    routes.MapRoute(null,
                    "manager/{action}",
                    new { controller = "Manager", action = "Main" },
                    new { httpMethod = new HttpMethodConstraint("GET") }
    );            

    routes.MapRoute("Default", // Route name
                    "{controller}/{action}/{id}", // URL with parameters
                    new { controller = "Manager", action = "ListProjects", id = UrlParameter.Optional } // Parameter defaults
    );
}
  • 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-23T23:13:22+00:00Added an answer on May 23, 2026 at 11:13 pm

    From the logs you posted it looks like your web server is returning HTTP302 which is ‘Moved Temporarily’ or as IIS implements it ‘Object Moved’ status. It sounds like a network configuration problem.

    Does it happen to every action or only that one?

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

Sidebar

Related Questions

i have published asp.net mvc application on iis 6 on the server(windows server 2003)
I have an asp.net mvc application on IIS 6.0 webserver. The problem is: i
I have an ASP.NET MVC 1.0 application running on Windows Server 2003 IIS 6.0.
I have an ASP.NET MVC web application running in IIS as a subweb; let's
I have just installed a ASP.Net Mvc application on a windows server 2008. When
When I switch my ASP.NET MVC project from Cassini web server to IIS Express,
I have an asp.net website (SQL Server, Windows 2003, IIS 6) and I am
Can someone explain how the ASP.NET Web Development Server work? I don't have IIS
I have an ASP.NET MVC application for which I store uploaded content files in
I am trying to have a parallel functionality in my asp.net mvc 2 application.

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.