Take the 2-minute tour ×
Server Fault is a question and answer site for system and network administrators. It's 100% free, no registration required.

Windows Server 2003, IIS6.

We're trying to deploy a non-MVC ASP.NET web application as a subdirectory of an MVC application.

However the ASP.NET application in the subdirectory is failing with the message "Could not load file or assembly 'System.Web.Mvc, Version=, Culture=neutral, PublicKeyToken=31bf3856ad364e35' or one of its dependencies. The system cannot find the file specified." which is bizarre because it's not an MVC application.

share|improve this question

2 Answers 2

Need more information:

  1. Is the child (sub-folder) ASP.NET web application running in its own IIS Application, or in the parent's IIS Application?

  2. Where is System.Web.Mvc.dll deployed?

If #1 is false (i.e. same IIS Application) then the requirement for System.Web.Mvc is being inherited from the parent web.config.

share|improve this answer
1. It's in its own application. We tried setting the folder as an application, and also moving the folder to a separate path and creating a virtual directory. 2. It's installed on the server, so it's in the GAC. –  David May 9 '10 at 15:21
up vote 0 down vote accepted

We wound up not solving this problem, because we ran into a different but related problem. Since the paths in our MVC application do not use file extensions, we had to install a wildcard mapping, which we believed would prevent the subdirectory website from functioning.

So we punted and moved the sub-application to a subdomain and added a redirect for that subdirectory in the parent application's routes.

share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.