Search code examples
asp.netiisiis-7.5

IIS7.5 Not Compiling Code


I have just upgraded to using IIS7.5 to host websites on localhost. However, the dynamic compiling of ASP.NET is not working for any web site. I have checked the C:\windows\microsoftnet\framework... etc temp directory, and no compiled files are being created. This dynamic compile worked fine in the basic install of IIS5.0 (my previous version), but does not in IIS7.5 (both running ASP.Net2.0). Is there a setting I'm missing?I've worked for hours on this, and can't seem to find any information that is helpful on how to fix this error.

Info

IIS7.5

ASP.NET 2.0

Windows 7 Desktop

All code is .cs in App_Code folder

Page directives look like <%@ Page Language="C#" inherits="namespacename.codename" %>


Solution

  • The answer is found at IIS7.5 Not Compiling Code From App_Code folder.

    Credit goes to @mbmemb.

    IIS7.0 does not support APP_CODE in virtual directories. Subdirectories in the root APP_CODE folder indicating the virtual directory they belong too must be used.