Forum Moderators: open

Message Too Old, No Replies

.html files being compiled by ASP.NET in IIS 5.0

         

eggerda

5:39 am on Oct 22, 2003 (gmt 0)

10+ Year Member



Hello -

I am encountering a very curious problem - neither my webhost or I can figure it out.

I develop many web pages in ASP.NET. Obviously the standard is to use .aspx file extensions for pages to be compiled by the ASP.NET .dll

Well, I'd like to have my .html and .htm files compiled by this same ASP.NET dll. The configuration I have done on my IIS server is the following :

Open IIS manager, and right click on my default website (the one in question).

Go into tab "home directory", and then click on the button "configuration".

Now I can see all of the file extensions, along with the .dll that they are to be compiled by. I have added 2 entries - one with .htm and one with .html.

I have simply copied the path of the .dll that the .aspx extension uses, along with the "Verbs".

I apply the changes, and then stop and start IIS. My .html pages are NOT being compiled by the ASP.NET .dll

Any idea why? One of my web hosts was able to do this, but I do now know how they got it to work...

Any ideas?

Thanks,

Dan

wardbekker

1:43 pm on Oct 22, 2003 (gmt 0)

10+ Year Member



did you map it to the aspnet_isapi.dll?

eggerda

1:29 am on Oct 23, 2003 (gmt 0)

10+ Year Member



Yes, I sure did....any other ideas? I've heard about a machine.config file I should check out?

Thanks,

Dan

wardbekker

6:51 am on Oct 23, 2003 (gmt 0)

10+ Year Member



did you tried another (not existing) extension like .egghtm?

martyt

6:47 pm on Oct 23, 2003 (gmt 0)

10+ Year Member



Why do you need to go to all this trouble?