2009-08-14 7 views
3

Dans mon application MVC, j'ai un sous-dossier nommé "Admin" qui était "Converted to Web Application". Dans IIS, le dossier Admin a également été configuré en tant qu'application Web. Après la publication de l'application complète, une erreur de configuration s'affiche lorsque j'essaie d'ouvrir Default.aspx dans le dossier Admin.Pourquoi une erreur de configuration ASP.NET MVC avec un sous-dossier en tant qu'application Web qui ne peut pas charger le type de site principal

EDIT

J'ai fait le changement proposé et a ajouté:

<location path="." inheritInChildApplications="false"> 
    <system.web>...</system.web> 
</location> 

Je reçois maintenant une nouvelle erreur:

Parser Error: Description: An error occurred during the parsing of a resource required to service this request. Please review the following specific parse error details and modify your source file appropriately.

Parser Error Message: Could not load type 'UI.Administration.Site'.

Source Error:

Line 1: <%@ Master Language="C#" CodeBehind="Site.master.cs" Inherits="UI.Administration.Site" %>

Répondre