Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsFree MagazinesWhite PapersSubmit Content
Discussion GroupsASP.NETWindows FormsLanguages.NET FrameworkVisual Studio.NET
Articles.NET FrameworkASP.NETToolsWindows Forms
.NET DirectoryOpen Source ProjectsUser GroupsWeb Resources
Related Topics
Visual Basic 6SQL ServerMS AccessOther DB ProductsMS Server ProductsMore Topics ...

.NET Forum / .NET Framework / .NET SDK / August 2004

Tip: Looking for answers? Try searching our database.

httpHandler and custom extensions

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Henrik de Jong - 20 Aug 2004 13:24 GMT
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,
Henrik
Andriy Gnennyy - 23 Aug 2004 07:17 GMT
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.

Signature

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

> I've .net 1.1 installed on a XP-Prof computer.
>
[quoted text clipped - 17 lines]
> grtz,
> Henrik
Henrik de Jong - 23 Aug 2004 08:18 GMT
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

> 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.

Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.