Groups | Blog | Home
all groups > dotnet sdk > august 2004 >

dotnet sdk : httpHandler and custom extensions



Henrik de Jong
8/20/2004 2:24:01 PM
I've .net 1.1 installed on a XP-Prof computer.

My problem is that I can't use own extension ie file.myextensions with
my httpHandler. The web.config contains the following code:

<configuration>
<system.web>
<httpHandlers>
<add verb="*" path="*.aspx"
type="MSDNHandlers.CSHandler,CSHandler" validate="true" />
<add verb="*" path="*.MyExtension"
type="MSDNHandlers.CSHandler,CSHandler" validate="false" />
</httpHandlers>
</system.web>
</configuration>

When I use the following url: http://localhost/asp0107/test.MyExtension
it results in a page not found error.

grtz,
Andriy Gnennyy
8/23/2004 9:17:05 AM
To to enable your custom extension you should add extension mapping into the
IIS Web application settings.
Use Internet Services MMC snap-in and map *.MyExtension to aspnet_isapi.dll.
You could use existing *.aspx mapping as an example.

--
Andriy Gnennyy
pulsar2003@{no-spam}email.ru (Please remove {no-spam} for reply)
X-Unity Test Studio
http://x-unity.miik.com.ua/teststudio.aspx

[quoted text, click to view]

Henrik de Jong
8/23/2004 9:18:34 AM
When I put my question on this newsgroup I was still looking for this
problem. I found: there's one thing more to do next to your suggestion.
If you will use non existable files, ie for specific purpose, you should
unmark the option that IIS only maps existing files.

grtz,
Henrik


[quoted text, click to view]
AddThis Social Bookmark Button