asp Default document not working on IIS7

Shirlz picture Shirlz · Oct 4, 2011 · Viewed 29.9k times · Source

I have a classic asp application inside a .NET 4.0 application. I have set the default document to login.asp, but it does not automatically redirect to it. The entire application functions fine though and even displays the login.asp correctly if I browse to it.

The default document section in web.config is as below:

<defaultDocument>
    <files>
        <clear />
        <add value="login.asp" />
        <add value="index.html" />
        <add value="default.aspx" />
        <add value="Default.htm" />
        <add value="Default.asp" />
        <add value="index.htm" />
        <add value="iisstart.htm" />
    </files>
</defaultDocument>

I have looked at other similar questions on this site but were not of much help.

Answer

Shirlz picture Shirlz · Oct 4, 2011

I finally found the issue was because the asp application was assigned to an app pool in classic mode using .NET Framework 4.0.

Once I changed the app pool to use .NET Framework 2.0 (with managed pipeline in classic mode), the default document started to work too!