Error coming while deploying MVC3 app on IIS7.5 windows7 : HTTP Error 404.0 - Not Found,Error Code 0x80070002

Posted on 2011-10-18
Last Modified: 2012-05-12

I am trying to deploy my mvc3 application on local IIS7.5 on windows7 but i am getting error i tried to deploy the brande new mvc app but that also getting same error and error is

Error Summary
HTTP Error 404.0 - Not Found

The resource you are looking for has been removed, had its name changed, or is temporarily unavailable.

Detailed Error Information


IIS Web Core





Error Code


Requested URL


Physical Path


Logon Method


Logon User


Most likely causes:•The directory or file specified does not exist on the Web server.
•The URL contains a typographical error.
•A custom filter or module, such as URLScan, restricts access to the file.

Things you can try:•Create the content on the Web server.
•Review the browser URL.
•Create a tracing rule to track failed requests for this HTTP status code and see which module is calling SetStatus. For more information about creating a tracing rule for failed requests, click here.

Links and More Information This error means that the file or directory does not exist on the server. Create the file or directory and try the request again.
View more information »
Question by:farjack1
    LVL 8

    Assisted Solution

    1. Try adding the following to your web config:

        <modules runAllManagedModulesForAllRequests="true" />

    if this does'nt solve your issue, try the below

    The code relays on the auto-start functionality that is available only in IIS 7.5. Try to discover the issue with the help of the Failed Request Tracing feature in IIS, and then modify the global.asax.cs file so that the application will be properly initialized, regardless of how/when it is loaded.

    The class defined in global.asax.cs file (MvcApplication) implements IProcessHostPreloadClient to take advantage of the IIS 7.5 auto-start functionality. Therefore, move all of the code that is in Application_Start to the Preload method. In order to support cases where the auto-start functionality isn't used, call Preload from ApplicationStart. To ensure Preload only gets called once, use a static Boolean field that is checked to determine if the Preload method was previously executed.

    Accepted Solution

    I fixed the problem, Answer is:

    If issue in deployment then run utility
    “C:\Windows\Microsoft.NET\Framework64\v4.0.30319\aspnet_regiis.exe -i”



    Make sure
    applicationHost.Config  make sure overrideModeDefault = ‘Allow’

    <section name="modules" allowDefinition="MachineToApplication" overrideModeDefault="Allow" />

    Make sure app have permission like

    Author Closing Comment

    Expert gave me some idea

    Featured Post

    Course: HTML5 for Beginning Beginners

    Are you looking for an efficient introduction to HTML5? Have you tried other HTML5 courses and found them too complex? Do you need just the basics of HTML5 to use with Wordpress or other content management system? If you said yes to any of these questions, this course is for you.

    Join & Write a Comment

    Summary: Persistence is the capability of an application to store the state of objects and recover it when necessary. This article compares the two common types of serialization in aspects of data access, readability, and runtime cost. A ready-to…
    When it comes to showing a 404 error page to your visitors, you do not want that generic page to show, and you especially do not want your hosting provider’s ad error page to show either. In this article, I will show you how to enable the custom 40…
    The purpose of this video is to demonstrate how to set up the WordPress backend so that each page automatically generates a Mailchimp signup form in the sidebar. This will be demonstrated using a Windows 8 PC. Tools Used are Photoshop, Awesome…
    Need more eyes on your posted question? Go ahead and follow the quick steps in this video to learn how to Request Attention to your question. *Log into your Experts Exchange account *Find the question you want to Request Attention for *Go to the e…

    728 members asked questions and received personalized solutions in the past 7 days.

    Join the community of 500,000 technology professionals and ask your questions.

    Join & Ask a Question

    Need Help in Real-Time?

    Connect with top rated Experts

    20 Experts available now in Live!

    Get 1:1 Help Now