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=1.0.0.0, 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.

link|improve this question
feedback

2 Answers

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.

link|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
feedback
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.

link|improve this answer
feedback

Your Answer

 
or
required, but never shown

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