472,787 Members | 1,346 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 472,787 software developers and data experts.

installing global httphandler for custom extension

Im trying to add an httphandler for all *.sgf file extensions. I have
developed the handler,
1. installed it into the gac
2. added it to the machine.config:

<httpHandlers>
<add verb="*" path="*.sgf" type="CustomExtensionHandler,
Extenders.CustomExtensionHandler, Version=1.0.0.0, Culture=neutral,
PublicKeyToken=d831d925597c1031" validate="True"/>
</httpHandlers>
3. Added .sgf to map to aspnet_isapi.dll

The assembly seems to get loaded (If I change the type string to be invalid
it will fail upon iisreset - so this seems to work ok).

When I try to request localhost/something.sgf I get a 404 returned from
asp.net (the script mapping in iis is set to not check for the client file).

If I create a new web app and add this filter to the web.config, it seems to
work. I thought adding it to machine.config would allow me to create a
"global" httphandler that I wouldnt have to add to every single web.config,
no? But its not working that way. Is it supposed to?

Thanks!
Nov 19 '05 #1
7 2830
Hi adamtuliper,

Welcome to ASPNET newsgroup.
Regarding on the problem you mentioned, it seems a unexpected behavior and
I'll try performing some tests on my side. What's your environment of the
problem server? IIS5 /WIN2K or IIS6/WIN2003?

Thanks,

Steven Cheng
Microsoft Online Support

Get Secure! www.microsoft.com/security
(This posting is provided "AS IS", with no warranties, and confers no
rights.)
--------------------
| Thread-Topic: installing global httphandler for custom extension
| thread-index: AcW6XOdEOEJAjvdqQNaKxOh5cVTmXA==
| X-WBNR-Posting-Host: 68.163.60.56
| From: "=?Utf-8?B?QWRhbQ==?=" <ad*********@online.nospam>
| Subject: installing global httphandler for custom extension
| Date: Thu, 15 Sep 2005 18:21:02 -0700
| Lines: 26
| Message-ID: <23**********************************@microsoft.co m>
| MIME-Version: 1.0
| Content-Type: text/plain;
| charset="Utf-8"
| Content-Transfer-Encoding: 7bit
| X-Newsreader: Microsoft CDO for Windows 2000
| Content-Class: urn:content-classes:message
| Importance: normal
| Priority: normal
| X-MimeOLE: Produced By Microsoft MimeOLE V6.00.3790.0
| Newsgroups: microsoft.public.dotnet.framework.aspnet
| NNTP-Posting-Host: TK2MSFTNGXA03.phx.gbl 10.40.2.250
| Path: TK2MSFTNGXA01.phx.gbl!TK2MSFTNGXA03.phx.gbl
| Xref: TK2MSFTNGXA01.phx.gbl
microsoft.public.dotnet.framework.aspnet:125014
| X-Tomcat-NG: microsoft.public.dotnet.framework.aspnet
|
| Im trying to add an httphandler for all *.sgf file extensions. I have
| developed the handler,
| 1. installed it into the gac
| 2. added it to the machine.config:
|
| <httpHandlers>
| <add verb="*" path="*.sgf" type="CustomExtensionHandler,
| Extenders.CustomExtensionHandler, Version=1.0.0.0, Culture=neutral,
| PublicKeyToken=d831d925597c1031" validate="True"/>
| </httpHandlers>
| 3. Added .sgf to map to aspnet_isapi.dll
|
| The assembly seems to get loaded (If I change the type string to be
invalid
| it will fail upon iisreset - so this seems to work ok).
|
| When I try to request localhost/something.sgf I get a 404 returned from
| asp.net (the script mapping in iis is set to not check for the client
file).
|
| If I create a new web app and add this filter to the web.config, it seems
to
| work. I thought adding it to machine.config would allow me to create a
| "global" httphandler that I wouldnt have to add to every single
web.config,
| no? But its not working that way. Is it supposed to?
|
| Thanks!
|
|
|

Nov 19 '05 #2
Hi Steven,
Im using windows xp, whidbey, iis5.1, and I've tried the asp.net development
web server as well.
Thanks!
Adam
"Steven Cheng[MSFT]" wrote:
Hi adamtuliper,

Welcome to ASPNET newsgroup.
Regarding on the problem you mentioned, it seems a unexpected behavior and
I'll try performing some tests on my side. What's your environment of the
problem server? IIS5 /WIN2K or IIS6/WIN2003?

Thanks,

Steven Cheng
Microsoft Online Support

Get Secure! www.microsoft.com/security
(This posting is provided "AS IS", with no warranties, and confers no
rights.)
--------------------
| Thread-Topic: installing global httphandler for custom extension
| thread-index: AcW6XOdEOEJAjvdqQNaKxOh5cVTmXA==
| X-WBNR-Posting-Host: 68.163.60.56
| From: "=?Utf-8?B?QWRhbQ==?=" <ad*********@online.nospam>
| Subject: installing global httphandler for custom extension
| Date: Thu, 15 Sep 2005 18:21:02 -0700
| Lines: 26
| Message-ID: <23**********************************@microsoft.co m>
| MIME-Version: 1.0
| Content-Type: text/plain;
| charset="Utf-8"
| Content-Transfer-Encoding: 7bit
| X-Newsreader: Microsoft CDO for Windows 2000
| Content-Class: urn:content-classes:message
| Importance: normal
| Priority: normal
| X-MimeOLE: Produced By Microsoft MimeOLE V6.00.3790.0
| Newsgroups: microsoft.public.dotnet.framework.aspnet
| NNTP-Posting-Host: TK2MSFTNGXA03.phx.gbl 10.40.2.250
| Path: TK2MSFTNGXA01.phx.gbl!TK2MSFTNGXA03.phx.gbl
| Xref: TK2MSFTNGXA01.phx.gbl
microsoft.public.dotnet.framework.aspnet:125014
| X-Tomcat-NG: microsoft.public.dotnet.framework.aspnet
|
| Im trying to add an httphandler for all *.sgf file extensions. I have
| developed the handler,
| 1. installed it into the gac
| 2. added it to the machine.config:
|
| <httpHandlers>
| <add verb="*" path="*.sgf" type="CustomExtensionHandler,
| Extenders.CustomExtensionHandler, Version=1.0.0.0, Culture=neutral,
| PublicKeyToken=d831d925597c1031" validate="True"/>
| </httpHandlers>
| 3. Added .sgf to map to aspnet_isapi.dll
|
| The assembly seems to get loaded (If I change the type string to be
invalid
| it will fail upon iisreset - so this seems to work ok).
|
| When I try to request localhost/something.sgf I get a 404 returned from
| asp.net (the script mapping in iis is set to not check for the client
file).
|
| If I create a new web app and add this filter to the web.config, it seems
to
| work. I thought adding it to machine.config would allow me to create a
| "global" httphandler that I wouldnt have to add to every single
web.config,
| no? But its not working that way. Is it supposed to?
|
| Thanks!
|
|
|

Nov 19 '05 #3
OK. I'll do some tests and let you know my results ASAP.

Thanks,

Steven Cheng
Microsoft Online Support

Get Secure! www.microsoft.com/security
(This posting is provided "AS IS", with no warranties, and confers no
rights.)
--------------------
| Thread-Topic: installing global httphandler for custom extension
| thread-index: AcW6xEeLWO/La2xISs6YCk91IRMHUQ==
| X-WBNR-Posting-Host: 63.66.47.208
| From: "=?Utf-8?B?QWRhbQ==?=" <ad*********@online.nospam>
| References: <23**********************************@microsoft.co m>
<5X*************@TK2MSFTNGXA01.phx.gbl>
| Subject: RE: installing global httphandler for custom extension
| Date: Fri, 16 Sep 2005 06:41:02 -0700
| Lines: 82
| Message-ID: <B7**********************************@microsoft.co m>
| MIME-Version: 1.0
| Content-Type: text/plain;
| charset="Utf-8"
| Content-Transfer-Encoding: 7bit
| X-Newsreader: Microsoft CDO for Windows 2000
| Content-Class: urn:content-classes:message
| Importance: normal
| Priority: normal
| X-MimeOLE: Produced By Microsoft MimeOLE V6.00.3790.0
| Newsgroups: microsoft.public.dotnet.framework.aspnet
| NNTP-Posting-Host: TK2MSFTNGXA03.phx.gbl 10.40.2.250
| Path: TK2MSFTNGXA01.phx.gbl!TK2MSFTNGXA03.phx.gbl
| Xref: TK2MSFTNGXA01.phx.gbl
microsoft.public.dotnet.framework.aspnet:125122
| X-Tomcat-NG: microsoft.public.dotnet.framework.aspnet
|
| Hi Steven,
| Im using windows xp, whidbey, iis5.1, and I've tried the asp.net
development
| web server as well.
| Thanks!
| Adam
|
|
| "Steven Cheng[MSFT]" wrote:
|
| > Hi adamtuliper,
| >
| > Welcome to ASPNET newsgroup.
| > Regarding on the problem you mentioned, it seems a unexpected behavior
and
| > I'll try performing some tests on my side. What's your environment of
the
| > problem server? IIS5 /WIN2K or IIS6/WIN2003?
| >
| > Thanks,
| >
| > Steven Cheng
| > Microsoft Online Support
| >
| > Get Secure! www.microsoft.com/security
| > (This posting is provided "AS IS", with no warranties, and confers no
| > rights.)
| > --------------------
| > | Thread-Topic: installing global httphandler for custom extension
| > | thread-index: AcW6XOdEOEJAjvdqQNaKxOh5cVTmXA==
| > | X-WBNR-Posting-Host: 68.163.60.56
| > | From: "=?Utf-8?B?QWRhbQ==?=" <ad*********@online.nospam>
| > | Subject: installing global httphandler for custom extension
| > | Date: Thu, 15 Sep 2005 18:21:02 -0700
| > | Lines: 26
| > | Message-ID: <23**********************************@microsoft.co m>
| > | MIME-Version: 1.0
| > | Content-Type: text/plain;
| > | charset="Utf-8"
| > | Content-Transfer-Encoding: 7bit
| > | X-Newsreader: Microsoft CDO for Windows 2000
| > | Content-Class: urn:content-classes:message
| > | Importance: normal
| > | Priority: normal
| > | X-MimeOLE: Produced By Microsoft MimeOLE V6.00.3790.0
| > | Newsgroups: microsoft.public.dotnet.framework.aspnet
| > | NNTP-Posting-Host: TK2MSFTNGXA03.phx.gbl 10.40.2.250
| > | Path: TK2MSFTNGXA01.phx.gbl!TK2MSFTNGXA03.phx.gbl
| > | Xref: TK2MSFTNGXA01.phx.gbl
| > microsoft.public.dotnet.framework.aspnet:125014
| > | X-Tomcat-NG: microsoft.public.dotnet.framework.aspnet
| > |
| > | Im trying to add an httphandler for all *.sgf file extensions. I have
| > | developed the handler,
| > | 1. installed it into the gac
| > | 2. added it to the machine.config:
| > |
| > | <httpHandlers>
| > | <add verb="*" path="*.sgf" type="CustomExtensionHandler,
| > | Extenders.CustomExtensionHandler, Version=1.0.0.0, Culture=neutral,
| > | PublicKeyToken=d831d925597c1031" validate="True"/>
| > | </httpHandlers>
| > | 3. Added .sgf to map to aspnet_isapi.dll
| > |
| > | The assembly seems to get loaded (If I change the type string to be
| > invalid
| > | it will fail upon iisreset - so this seems to work ok).
| > |
| > | When I try to request localhost/something.sgf I get a 404 returned
from
| > | asp.net (the script mapping in iis is set to not check for the client
| > file).
| > |
| > | If I create a new web app and add this filter to the web.config, it
seems
| > to
| > | work. I thought adding it to machine.config would allow me to create
a
| > | "global" httphandler that I wouldnt have to add to every single
| > web.config,
| > | no? But its not working that way. Is it supposed to?
| > |
| > | Thanks!
| > |
| > |
| > |
| >
| >
|

Nov 19 '05 #4
Hi Adam,

I've just perfomed some tests on my local Whidbey beta2 environment. Based
on my test, I think the problem maybe due to the new global configuration
hierarchy for ASP.NET application in Whidbey. In the original ASP.NET 1.X,
the global (machine wide) configuration for ASP.NET application are stored
in machine.config. However, in whidbey, most of the machine wide
configuration for ASP.NET application are stored in a global web.config
which is also in the

%windir%\Microsoft.NET\Framework\v2.0.xxxxx\CONFIG folder.

I've tested through add the custom HttpHandler in that global web.config
and also configure the extentions mapping in IIS's website home directory,
that works well. So I think you can also try using the global web.config
file instead of the machine.config to see whether it works.

Hope helps. Thanks,

Steven Cheng
Microsoft Online Support

Get Secure! www.microsoft.com/security
(This posting is provided "AS IS", with no warranties, and confers no
rights.)
--------------------
| X-Tomcat-ID: 24090220
| References: <23**********************************@microsoft.co m>
<5X*************@TK2MSFTNGXA01.phx.gbl>
<B7**********************************@microsoft.co m>
| MIME-Version: 1.0
| Content-Type: text/plain
| Content-Transfer-Encoding: 7bit
| From: st*****@online.microsoft.com (Steven Cheng[MSFT])
| Organization: Microsoft
| Date: Mon, 19 Sep 2005 01:34:09 GMT
| Subject: RE: installing global httphandler for custom extension
| X-Tomcat-NG: microsoft.public.dotnet.framework.aspnet
| Message-ID: <OG**************@TK2MSFTNGXA01.phx.gbl>
| Newsgroups: microsoft.public.dotnet.framework.aspnet
| Lines: 111
| Path: TK2MSFTNGXA01.phx.gbl
| Xref: TK2MSFTNGXA01.phx.gbl
microsoft.public.dotnet.framework.aspnet:125404
| NNTP-Posting-Host: tomcatimport2.phx.gbl 10.201.218.182
|
| OK. I'll do some tests and let you know my results ASAP.
|
| Thanks,
|
| Steven Cheng
| Microsoft Online Support
|
| Get Secure! www.microsoft.com/security
| (This posting is provided "AS IS", with no warranties, and confers no
| rights.)
| --------------------
| | Thread-Topic: installing global httphandler for custom extension
| | thread-index: AcW6xEeLWO/La2xISs6YCk91IRMHUQ==
| | X-WBNR-Posting-Host: 63.66.47.208
| | From: "=?Utf-8?B?QWRhbQ==?=" <ad*********@online.nospam>
| | References: <23**********************************@microsoft.co m>
| <5X*************@TK2MSFTNGXA01.phx.gbl>
| | Subject: RE: installing global httphandler for custom extension
| | Date: Fri, 16 Sep 2005 06:41:02 -0700
| | Lines: 82
| | Message-ID: <B7**********************************@microsoft.co m>
| | MIME-Version: 1.0
| | Content-Type: text/plain;
| | charset="Utf-8"
| | Content-Transfer-Encoding: 7bit
| | X-Newsreader: Microsoft CDO for Windows 2000
| | Content-Class: urn:content-classes:message
| | Importance: normal
| | Priority: normal
| | X-MimeOLE: Produced By Microsoft MimeOLE V6.00.3790.0
| | Newsgroups: microsoft.public.dotnet.framework.aspnet
| | NNTP-Posting-Host: TK2MSFTNGXA03.phx.gbl 10.40.2.250
| | Path: TK2MSFTNGXA01.phx.gbl!TK2MSFTNGXA03.phx.gbl
| | Xref: TK2MSFTNGXA01.phx.gbl
| microsoft.public.dotnet.framework.aspnet:125122
| | X-Tomcat-NG: microsoft.public.dotnet.framework.aspnet
| |
| | Hi Steven,
| | Im using windows xp, whidbey, iis5.1, and I've tried the asp.net
| development
| | web server as well.
| | Thanks!
| | Adam
| |
| |
| | "Steven Cheng[MSFT]" wrote:
| |
| | > Hi adamtuliper,
| | >
| | > Welcome to ASPNET newsgroup.
| | > Regarding on the problem you mentioned, it seems a unexpected
behavior
| and
| | > I'll try performing some tests on my side. What's your environment of
| the
| | > problem server? IIS5 /WIN2K or IIS6/WIN2003?
| | >
| | > Thanks,
| | >
| | > Steven Cheng
| | > Microsoft Online Support
| | >
| | > Get Secure! www.microsoft.com/security
| | > (This posting is provided "AS IS", with no warranties, and confers no
| | > rights.)
| | > --------------------
| | > | Thread-Topic: installing global httphandler for custom extension
| | > | thread-index: AcW6XOdEOEJAjvdqQNaKxOh5cVTmXA==
| | > | X-WBNR-Posting-Host: 68.163.60.56
| | > | From: "=?Utf-8?B?QWRhbQ==?=" <ad*********@online.nospam>
| | > | Subject: installing global httphandler for custom extension
| | > | Date: Thu, 15 Sep 2005 18:21:02 -0700
| | > | Lines: 26
| | > | Message-ID: <23**********************************@microsoft.co m>
| | > | MIME-Version: 1.0
| | > | Content-Type: text/plain;
| | > | charset="Utf-8"
| | > | Content-Transfer-Encoding: 7bit
| | > | X-Newsreader: Microsoft CDO for Windows 2000
| | > | Content-Class: urn:content-classes:message
| | > | Importance: normal
| | > | Priority: normal
| | > | X-MimeOLE: Produced By Microsoft MimeOLE V6.00.3790.0
| | > | Newsgroups: microsoft.public.dotnet.framework.aspnet
| | > | NNTP-Posting-Host: TK2MSFTNGXA03.phx.gbl 10.40.2.250
| | > | Path: TK2MSFTNGXA01.phx.gbl!TK2MSFTNGXA03.phx.gbl
| | > | Xref: TK2MSFTNGXA01.phx.gbl
| | > microsoft.public.dotnet.framework.aspnet:125014
| | > | X-Tomcat-NG: microsoft.public.dotnet.framework.aspnet
| | > |
| | > | Im trying to add an httphandler for all *.sgf file extensions. I
have
| | > | developed the handler,
| | > | 1. installed it into the gac
| | > | 2. added it to the machine.config:
| | > |
| | > | <httpHandlers>
| | > | <add verb="*" path="*.sgf" type="CustomExtensionHandler,
| | > | Extenders.CustomExtensionHandler, Version=1.0.0.0, Culture=neutral,
| | > | PublicKeyToken=d831d925597c1031" validate="True"/>
| | > | </httpHandlers>
| | > | 3. Added .sgf to map to aspnet_isapi.dll
| | > |
| | > | The assembly seems to get loaded (If I change the type string to be
| | > invalid
| | > | it will fail upon iisreset - so this seems to work ok).
| | > |
| | > | When I try to request localhost/something.sgf I get a 404 returned
| from
| | > | asp.net (the script mapping in iis is set to not check for the
client
| | > file).
| | > |
| | > | If I create a new web app and add this filter to the web.config, it
| seems
| | > to
| | > | work. I thought adding it to machine.config would allow me to
create
| a
| | > | "global" httphandler that I wouldnt have to add to every single
| | > web.config,
| | > | no? But its not working that way. Is it supposed to?
| | > |
| | > | Thanks!
| | > |
| | > |
| | > |
| | >
| | >
| |
|
|

Nov 19 '05 #5
Hi Adam,

I've received the screenshots you provided. Seems the configuration in
web.config is OK. Really a bit strange. What I haven't got from the screen
is that whether the configuration for the httphandler's config files and
the IIS's ASPNET isapi extension's version match. Have you checked both of
them to ensure they're both v2.0.xxxx?

If all of this is OK, I can't think of any definite issue. If possible, I'd
really suggest you build some other test enviornment to test this.

Thanks,

Steven Cheng
Microsoft Online Support

Get Secure! www.microsoft.com/security
(This posting is provided "AS IS", with no warranties, and confers no
rights.)
--------------------
| X-Tomcat-ID: 56612462
| References: <23**********************************@microsoft.co m>
<5X*************@TK2MSFTNGXA01.phx.gbl>
<B7**********************************@microsoft.co m>
<OG**************@TK2MSFTNGXA01.phx.gbl>
| MIME-Version: 1.0
| Content-Type: text/plain
| Content-Transfer-Encoding: 7bit
| From: st*****@online.microsoft.com (Steven Cheng[MSFT])
| Organization: Microsoft
| Date: Wed, 21 Sep 2005 03:10:43 GMT
| Subject: RE: installing global httphandler for custom extension
| X-Tomcat-NG: microsoft.public.dotnet.framework.aspnet
| Message-ID: <To**************@TK2MSFTNGXA01.phx.gbl>
| Newsgroups: microsoft.public.dotnet.framework.aspnet
| Lines: 165
| Path: TK2MSFTNGXA01.phx.gbl
| Xref: TK2MSFTNGXA01.phx.gbl
microsoft.public.dotnet.framework.aspnet:126001
| NNTP-Posting-Host: TOMCATIMPORT1 10.201.218.122
|
| Hi Adam,
|
| I've just perfomed some tests on my local Whidbey beta2 environment.
Based
| on my test, I think the problem maybe due to the new global configuration
| hierarchy for ASP.NET application in Whidbey. In the original ASP.NET
1.X,
| the global (machine wide) configuration for ASP.NET application are
stored
| in machine.config. However, in whidbey, most of the machine wide
| configuration for ASP.NET application are stored in a global web.config
| which is also in the
|
| %windir%\Microsoft.NET\Framework\v2.0.xxxxx\CONFIG folder.
|
| I've tested through add the custom HttpHandler in that global web.config
| and also configure the extentions mapping in IIS's website home
directory,
| that works well. So I think you can also try using the global web.config
| file instead of the machine.config to see whether it works.
|
| Hope helps. Thanks,
|
| Steven Cheng
| Microsoft Online Support
|
| Get Secure! www.microsoft.com/security
| (This posting is provided "AS IS", with no warranties, and confers no
| rights.)
|
|
| --------------------
| | X-Tomcat-ID: 24090220
| | References: <23**********************************@microsoft.co m>
| <5X*************@TK2MSFTNGXA01.phx.gbl>
| <B7**********************************@microsoft.co m>
| | MIME-Version: 1.0
| | Content-Type: text/plain
| | Content-Transfer-Encoding: 7bit
| | From: st*****@online.microsoft.com (Steven Cheng[MSFT])
| | Organization: Microsoft
| | Date: Mon, 19 Sep 2005 01:34:09 GMT
| | Subject: RE: installing global httphandler for custom extension
| | X-Tomcat-NG: microsoft.public.dotnet.framework.aspnet
| | Message-ID: <OG**************@TK2MSFTNGXA01.phx.gbl>
| | Newsgroups: microsoft.public.dotnet.framework.aspnet
| | Lines: 111
| | Path: TK2MSFTNGXA01.phx.gbl
| | Xref: TK2MSFTNGXA01.phx.gbl
| microsoft.public.dotnet.framework.aspnet:125404
| | NNTP-Posting-Host: tomcatimport2.phx.gbl 10.201.218.182
| |
| | OK. I'll do some tests and let you know my results ASAP.
| |
| | Thanks,
| |
| | Steven Cheng
| | Microsoft Online Support
| |
| | Get Secure! www.microsoft.com/security
| | (This posting is provided "AS IS", with no warranties, and confers no
| | rights.)
| | --------------------
| | | Thread-Topic: installing global httphandler for custom extension
| | | thread-index: AcW6xEeLWO/La2xISs6YCk91IRMHUQ==
| | | X-WBNR-Posting-Host: 63.66.47.208
| | | From: "=?Utf-8?B?QWRhbQ==?=" <ad*********@online.nospam>
| | | References: <23**********************************@microsoft.co m>
| | <5X*************@TK2MSFTNGXA01.phx.gbl>
| | | Subject: RE: installing global httphandler for custom extension
| | | Date: Fri, 16 Sep 2005 06:41:02 -0700
| | | Lines: 82
| | | Message-ID: <B7**********************************@microsoft.co m>
| | | MIME-Version: 1.0
| | | Content-Type: text/plain;
| | | charset="Utf-8"
| | | Content-Transfer-Encoding: 7bit
| | | X-Newsreader: Microsoft CDO for Windows 2000
| | | Content-Class: urn:content-classes:message
| | | Importance: normal
| | | Priority: normal
| | | X-MimeOLE: Produced By Microsoft MimeOLE V6.00.3790.0
| | | Newsgroups: microsoft.public.dotnet.framework.aspnet
| | | NNTP-Posting-Host: TK2MSFTNGXA03.phx.gbl 10.40.2.250
| | | Path: TK2MSFTNGXA01.phx.gbl!TK2MSFTNGXA03.phx.gbl
| | | Xref: TK2MSFTNGXA01.phx.gbl
| | microsoft.public.dotnet.framework.aspnet:125122
| | | X-Tomcat-NG: microsoft.public.dotnet.framework.aspnet
| | |
| | | Hi Steven,
| | | Im using windows xp, whidbey, iis5.1, and I've tried the asp.net
| | development
| | | web server as well.
| | | Thanks!
| | | Adam
| | |
| | |
| | | "Steven Cheng[MSFT]" wrote:
| | |
| | | > Hi adamtuliper,
| | | >
| | | > Welcome to ASPNET newsgroup.
| | | > Regarding on the problem you mentioned, it seems a unexpected
| behavior
| | and
| | | > I'll try performing some tests on my side. What's your environment
of
| | the
| | | > problem server? IIS5 /WIN2K or IIS6/WIN2003?
| | | >
| | | > Thanks,
| | | >
| | | > Steven Cheng
| | | > Microsoft Online Support
| | | >
| | | > Get Secure! www.microsoft.com/security
| | | > (This posting is provided "AS IS", with no warranties, and confers
no
| | | > rights.)
| | | > --------------------
| | | > | Thread-Topic: installing global httphandler for custom extension
| | | > | thread-index: AcW6XOdEOEJAjvdqQNaKxOh5cVTmXA==
| | | > | X-WBNR-Posting-Host: 68.163.60.56
| | | > | From: "=?Utf-8?B?QWRhbQ==?=" <ad*********@online.nospam>
| | | > | Subject: installing global httphandler for custom extension
| | | > | Date: Thu, 15 Sep 2005 18:21:02 -0700
| | | > | Lines: 26
| | | > | Message-ID: <23**********************************@microsoft.co m>
| | | > | MIME-Version: 1.0
| | | > | Content-Type: text/plain;
| | | > | charset="Utf-8"
| | | > | Content-Transfer-Encoding: 7bit
| | | > | X-Newsreader: Microsoft CDO for Windows 2000
| | | > | Content-Class: urn:content-classes:message
| | | > | Importance: normal
| | | > | Priority: normal
| | | > | X-MimeOLE: Produced By Microsoft MimeOLE V6.00.3790.0
| | | > | Newsgroups: microsoft.public.dotnet.framework.aspnet
| | | > | NNTP-Posting-Host: TK2MSFTNGXA03.phx.gbl 10.40.2.250
| | | > | Path: TK2MSFTNGXA01.phx.gbl!TK2MSFTNGXA03.phx.gbl
| | | > | Xref: TK2MSFTNGXA01.phx.gbl
| | | > microsoft.public.dotnet.framework.aspnet:125014
| | | > | X-Tomcat-NG: microsoft.public.dotnet.framework.aspnet
| | | > |
| | | > | Im trying to add an httphandler for all *.sgf file extensions. I
| have
| | | > | developed the handler,
| | | > | 1. installed it into the gac
| | | > | 2. added it to the machine.config:
| | | > |
| | | > | <httpHandlers>
| | | > | <add verb="*" path="*.sgf" type="CustomExtensionHandler,
| | | > | Extenders.CustomExtensionHandler, Version=1.0.0.0,
Culture=neutral,
| | | > | PublicKeyToken=d831d925597c1031" validate="True"/>
| | | > | </httpHandlers>
| | | > | 3. Added .sgf to map to aspnet_isapi.dll
| | | > |
| | | > | The assembly seems to get loaded (If I change the type string to
be
| | | > invalid
| | | > | it will fail upon iisreset - so this seems to work ok).
| | | > |
| | | > | When I try to request localhost/something.sgf I get a 404
returned
| | from
| | | > | asp.net (the script mapping in iis is set to not check for the
| client
| | | > file).
| | | > |
| | | > | If I create a new web app and add this filter to the web.config,
it
| | seems
| | | > to
| | | > | work. I thought adding it to machine.config would allow me to
| create
| | a
| | | > | "global" httphandler that I wouldnt have to add to every single
| | | > web.config,
| | | > | no? But its not working that way. Is it supposed to?
| | | > |
| | | > | Thanks!
| | | > |
| | | > |
| | | > |
| | | >
| | | >
| | |
| |
| |
|
|

Nov 19 '05 #6
Hi Steven,
Im assuming you mean the global web.config in the
C:\WINDOWS\Microsoft.NET\Framework\v2.0.50215\CONF IG folder. They are both
the same version, I've verified.
Can you tell me the steps (in as much detail as you can) that you took to do
this, since something weird is going here then.
Thanks!
--
http://www.secure-coding.com
<cheesy>Saving the world one line of code at a time</cheesy>
"Steven Cheng[MSFT]" wrote:
Hi Adam,

I've received the screenshots you provided. Seems the configuration in
web.config is OK. Really a bit strange. What I haven't got from the screen
is that whether the configuration for the httphandler's config files and
the IIS's ASPNET isapi extension's version match. Have you checked both of
them to ensure they're both v2.0.xxxx?

If all of this is OK, I can't think of any definite issue. If possible, I'd
really suggest you build some other test enviornment to test this.

Thanks,

Steven Cheng
Microsoft Online Support

Get Secure! www.microsoft.com/security
(This posting is provided "AS IS", with no warranties, and confers no
rights.)
--------------------
| X-Tomcat-ID: 56612462
| References: <23**********************************@microsoft.co m>
<5X*************@TK2MSFTNGXA01.phx.gbl>
<B7**********************************@microsoft.co m>
<OG**************@TK2MSFTNGXA01.phx.gbl>
| MIME-Version: 1.0
| Content-Type: text/plain
| Content-Transfer-Encoding: 7bit
| From: st*****@online.microsoft.com (Steven Cheng[MSFT])
| Organization: Microsoft
| Date: Wed, 21 Sep 2005 03:10:43 GMT
| Subject: RE: installing global httphandler for custom extension
| X-Tomcat-NG: microsoft.public.dotnet.framework.aspnet
| Message-ID: <To**************@TK2MSFTNGXA01.phx.gbl>
| Newsgroups: microsoft.public.dotnet.framework.aspnet
| Lines: 165
| Path: TK2MSFTNGXA01.phx.gbl
| Xref: TK2MSFTNGXA01.phx.gbl
microsoft.public.dotnet.framework.aspnet:126001
| NNTP-Posting-Host: TOMCATIMPORT1 10.201.218.122
|
| Hi Adam,
|
| I've just perfomed some tests on my local Whidbey beta2 environment.
Based
| on my test, I think the problem maybe due to the new global configuration
| hierarchy for ASP.NET application in Whidbey. In the original ASP.NET
1.X,
| the global (machine wide) configuration for ASP.NET application are
stored
| in machine.config. However, in whidbey, most of the machine wide
| configuration for ASP.NET application are stored in a global web.config
| which is also in the
|
| %windir%\Microsoft.NET\Framework\v2.0.xxxxx\CONFIG folder.
|
| I've tested through add the custom HttpHandler in that global web.config
| and also configure the extentions mapping in IIS's website home
directory,
| that works well. So I think you can also try using the global web.config
| file instead of the machine.config to see whether it works.
|
| Hope helps. Thanks,
|
| Steven Cheng
| Microsoft Online Support
|
| Get Secure! www.microsoft.com/security
| (This posting is provided "AS IS", with no warranties, and confers no
| rights.)
|
|
| --------------------
| | X-Tomcat-ID: 24090220
| | References: <23**********************************@microsoft.co m>
| <5X*************@TK2MSFTNGXA01.phx.gbl>
| <B7**********************************@microsoft.co m>
| | MIME-Version: 1.0
| | Content-Type: text/plain
| | Content-Transfer-Encoding: 7bit
| | From: st*****@online.microsoft.com (Steven Cheng[MSFT])
| | Organization: Microsoft
| | Date: Mon, 19 Sep 2005 01:34:09 GMT
| | Subject: RE: installing global httphandler for custom extension
| | X-Tomcat-NG: microsoft.public.dotnet.framework.aspnet
| | Message-ID: <OG**************@TK2MSFTNGXA01.phx.gbl>
| | Newsgroups: microsoft.public.dotnet.framework.aspnet
| | Lines: 111
| | Path: TK2MSFTNGXA01.phx.gbl
| | Xref: TK2MSFTNGXA01.phx.gbl
| microsoft.public.dotnet.framework.aspnet:125404
| | NNTP-Posting-Host: tomcatimport2.phx.gbl 10.201.218.182
| |
| | OK. I'll do some tests and let you know my results ASAP.
| |
| | Thanks,
| |
| | Steven Cheng
| | Microsoft Online Support
| |
| | Get Secure! www.microsoft.com/security
| | (This posting is provided "AS IS", with no warranties, and confers no
| | rights.)
| | --------------------
| | | Thread-Topic: installing global httphandler for custom extension
| | | thread-index: AcW6xEeLWO/La2xISs6YCk91IRMHUQ==
| | | X-WBNR-Posting-Host: 63.66.47.208
| | | From: "=?Utf-8?B?QWRhbQ==?=" <ad*********@online.nospam>
| | | References: <23**********************************@microsoft.co m>
| | <5X*************@TK2MSFTNGXA01.phx.gbl>
| | | Subject: RE: installing global httphandler for custom extension
| | | Date: Fri, 16 Sep 2005 06:41:02 -0700
| | | Lines: 82
| | | Message-ID: <B7**********************************@microsoft.co m>
| | | MIME-Version: 1.0
| | | Content-Type: text/plain;
| | | charset="Utf-8"
| | | Content-Transfer-Encoding: 7bit
| | | X-Newsreader: Microsoft CDO for Windows 2000
| | | Content-Class: urn:content-classes:message
| | | Importance: normal
| | | Priority: normal
| | | X-MimeOLE: Produced By Microsoft MimeOLE V6.00.3790.0
| | | Newsgroups: microsoft.public.dotnet.framework.aspnet
| | | NNTP-Posting-Host: TK2MSFTNGXA03.phx.gbl 10.40.2.250
| | | Path: TK2MSFTNGXA01.phx.gbl!TK2MSFTNGXA03.phx.gbl
| | | Xref: TK2MSFTNGXA01.phx.gbl
| | microsoft.public.dotnet.framework.aspnet:125122
| | | X-Tomcat-NG: microsoft.public.dotnet.framework.aspnet
| | |
| | | Hi Steven,
| | | Im using windows xp, whidbey, iis5.1, and I've tried the asp.net
| | development
| | | web server as well.
| | | Thanks!
| | | Adam
| | |
| | |
| | | "Steven Cheng[MSFT]" wrote:
| | |
| | | > Hi adamtuliper,
| | | >
| | | > Welcome to ASPNET newsgroup.
| | | > Regarding on the problem you mentioned, it seems a unexpected
| behavior
| | and
| | | > I'll try performing some tests on my side. What's your environment
of
| | the
| | | > problem server? IIS5 /WIN2K or IIS6/WIN2003?
| | | >
| | | > Thanks,
| | | >
| | | > Steven Cheng
| | | > Microsoft Online Support
| | | >
| | | > Get Secure! www.microsoft.com/security
| | | > (This posting is provided "AS IS", with no warranties, and confers
no
| | | > rights.)
| | | > --------------------
| | | > | Thread-Topic: installing global httphandler for custom extension
| | | > | thread-index: AcW6XOdEOEJAjvdqQNaKxOh5cVTmXA==
| | | > | X-WBNR-Posting-Host: 68.163.60.56
| | | > | From: "=?Utf-8?B?QWRhbQ==?=" <ad*********@online.nospam>
| | | > | Subject: installing global httphandler for custom extension
| | | > | Date: Thu, 15 Sep 2005 18:21:02 -0700
| | | > | Lines: 26
| | | > | Message-ID: <23**********************************@microsoft.co m>
| | | > | MIME-Version: 1.0
| | | > | Content-Type: text/plain;
| | | > | charset="Utf-8"
| | | > | Content-Transfer-Encoding: 7bit
| | | > | X-Newsreader: Microsoft CDO for Windows 2000
| | | > | Content-Class: urn:content-classes:message
| | | > | Importance: normal
| | | > | Priority: normal
| | | > | X-MimeOLE: Produced By Microsoft MimeOLE V6.00.3790.0
| | | > | Newsgroups: microsoft.public.dotnet.framework.aspnet
| | | > | NNTP-Posting-Host: TK2MSFTNGXA03.phx.gbl 10.40.2.250
| | | > | Path: TK2MSFTNGXA01.phx.gbl!TK2MSFTNGXA03.phx.gbl
| | | > | Xref: TK2MSFTNGXA01.phx.gbl
| | | > microsoft.public.dotnet.framework.aspnet:125014
| | | > | X-Tomcat-NG: microsoft.public.dotnet.framework.aspnet
| | | > |
| | | > | Im trying to add an httphandler for all *.sgf file extensions. I
| have
| | | > | developed the handler,
| | | > | 1. installed it into the gac
| | | > | 2. added it to the machine.config:
| | | > |
| | | > | <httpHandlers>
| | | > | <add verb="*" path="*.sgf" type="CustomExtensionHandler,
| | | > | Extenders.CustomExtensionHandler, Version=1.0.0.0,
Culture=neutral,
| | | > | PublicKeyToken=d831d925597c1031" validate="True"/>
| | | > | </httpHandlers>
| | | > | 3. Added .sgf to map to aspnet_isapi.dll
| | | > |
| | | > | The assembly seems to get loaded (If I change the type string to
be
| | | > invalid
| | | > | it will fail upon iisreset - so this seems to work ok).
| | | > |
| | | > | When I try to request localhost/something.sgf I get a 404
returned
| | from
| | | > | asp.net (the script mapping in iis is set to not check for the
| client
| | | > file).
| | | > |
| | | > | If I create a new web app and add this filter to the web.config,
it
| | seems
| | | > to
| | | > | work. I thought adding it to machine.config would allow me to
| create
| | a
| | | > | "global" httphandler that I wouldnt have to add to every single
| | | > web.config,
| | | > | no? But its not working that way. Is it supposed to?
| | | > |
| | | > | Thanks!
| | | > |
| | | > |
| | | > |
| | | >
| | | >
| | |
| |
| |
|
|

Nov 19 '05 #7
Hi Adam,

Not sure whether this is a environment specific problem. Here is my test
steps:

1. creating a simple httphandler as below:
==================
namespace SNHandlers
{
public class HelloHandler : System.Web.IHttpHandler
{
public bool IsReusable
{
get { return false; }
}

public void ProcessRequest(System.Web.HttpContext context)
{
context.Response.Write("Hello " + context.User.Identity.Name);
}
}
}

====================

2. Put the strong-named httphandler assembly into GAC.
3. Then, I first try using following configure entry in the global
web.config file(under
%windir %\Microsoft.NET\Framework\v2.0.50215\CONFIG )

<add verb="*" path="Hello.ashx"
type="SNHandlers.HelloHandler, SNHandlers, Version=1.0.0.0,
Culture=neutral, PublicKeyToken=c2ea789a4e09aa5f" />

since "*.ashx" is the buildin exitention that has been mapped to asp.net
isapi extension.

3. Use http://localhost/Hello.ashx to test the handler so as to confirm
that the handler works well.
4. change the configure entry in the #3 step to below:
<add verb="*" path="*.sgf"
type="SNHandlers.HelloHandler, SNHandlers, Version=1.0.0.0,
Culture=neutral, PublicKeyToken=c2ea789a4e09aa5f" />

and add the extension mapping in IIS's default site as below:

extenstion to
"c:\windows\microsoft.net\framework\v2.0.50215\asp net_isapi.dll"

verbs to "All verbs"

"Script engine" checked

"Verify that file exists" unchecked
5. Though I don't think IISreset is necessary, but you can still do it. And
restart a IE and test the

http://localhost/Hello.sgf which works well.
That's all my test steps. I don't think there has anything different from
yours. So I still suspect it to be a environment specific issue.

Thanks,

Steven Cheng
Microsoft Online Support

Get Secure! www.microsoft.com/security
(This posting is provided "AS IS", with no warranties, and confers no
rights.)



--------------------
| Thread-Topic: installing global httphandler for custom extension
| thread-index: AcXCzg2KyUgjEiV9TR6gBgH6v/tlPw==
| X-WBNR-Posting-Host: 63.66.47.208
| From: "=?Utf-8?B?QWRhbQ==?=" <ad*********@online.nospam>
| References: <23**********************************@microsoft.co m>
<5X*************@TK2MSFTNGXA01.phx.gbl>
<B7**********************************@microsoft.co m>
<OG**************@TK2MSFTNGXA01.phx.gbl>
<To**************@TK2MSFTNGXA01.phx.gbl>
<C8**************@TK2MSFTNGXA01.phx.gbl>
| Subject: RE: installing global httphandler for custom extension
| Date: Mon, 26 Sep 2005 12:11:09 -0700
| Lines: 251
| Message-ID: <28**********************************@microsoft.co m>
| MIME-Version: 1.0
| Content-Type: text/plain;
| charset="Utf-8"
| Content-Transfer-Encoding: 7bit
| X-Newsreader: Microsoft CDO for Windows 2000
| Content-Class: urn:content-classes:message
| Importance: normal
| Priority: normal
| X-MimeOLE: Produced By Microsoft MimeOLE V6.00.3790.0
| Newsgroups: microsoft.public.dotnet.framework.aspnet
| NNTP-Posting-Host: TK2MSFTNGXA03.phx.gbl 10.40.2.250
| Path: TK2MSFTNGXA01.phx.gbl!TK2MSFTNGXA03.phx.gbl
| Xref: TK2MSFTNGXA01.phx.gbl
microsoft.public.dotnet.framework.aspnet:127171
| X-Tomcat-NG: microsoft.public.dotnet.framework.aspnet
|
| Hi Steven,
| Im assuming you mean the global web.config in the
| C:\WINDOWS\Microsoft.NET\Framework\v2.0.50215\CONF IG folder. They are
both
| the same version, I've verified.
| Can you tell me the steps (in as much detail as you can) that you took to
do
| this, since something weird is going here then.
| Thanks!
|
|
| --
| http://www.secure-coding.com
| <cheesy>Saving the world one line of code at a time</cheesy>
|
|
| "Steven Cheng[MSFT]" wrote:
|
| > Hi Adam,
| >
| > I've received the screenshots you provided. Seems the configuration in
| > web.config is OK. Really a bit strange. What I haven't got from the
screen
| > is that whether the configuration for the httphandler's config files
and
| > the IIS's ASPNET isapi extension's version match. Have you checked both
of
| > them to ensure they're both v2.0.xxxx?
| >
| > If all of this is OK, I can't think of any definite issue. If possible,
I'd
| > really suggest you build some other test enviornment to test this.
| >
| > Thanks,
| >
| > Steven Cheng
| > Microsoft Online Support
| >
| > Get Secure! www.microsoft.com/security
| > (This posting is provided "AS IS", with no warranties, and confers no
| > rights.)
| > --------------------
| > | X-Tomcat-ID: 56612462
| > | References: <23**********************************@microsoft.co m>
| > <5X*************@TK2MSFTNGXA01.phx.gbl>
| > <B7**********************************@microsoft.co m>
| > <OG**************@TK2MSFTNGXA01.phx.gbl>
| > | MIME-Version: 1.0
| > | Content-Type: text/plain
| > | Content-Transfer-Encoding: 7bit
| > | From: st*****@online.microsoft.com (Steven Cheng[MSFT])
| > | Organization: Microsoft
| > | Date: Wed, 21 Sep 2005 03:10:43 GMT
| > | Subject: RE: installing global httphandler for custom extension
| > | X-Tomcat-NG: microsoft.public.dotnet.framework.aspnet
| > | Message-ID: <To**************@TK2MSFTNGXA01.phx.gbl>
| > | Newsgroups: microsoft.public.dotnet.framework.aspnet
| > | Lines: 165
| > | Path: TK2MSFTNGXA01.phx.gbl
| > | Xref: TK2MSFTNGXA01.phx.gbl
| > microsoft.public.dotnet.framework.aspnet:126001
| > | NNTP-Posting-Host: TOMCATIMPORT1 10.201.218.122
| > |
| > | Hi Adam,
| > |
| > | I've just perfomed some tests on my local Whidbey beta2 environment.
| > Based
| > | on my test, I think the problem maybe due to the new global
configuration
| > | hierarchy for ASP.NET application in Whidbey. In the original ASP.NET
| > 1.X,
| > | the global (machine wide) configuration for ASP.NET application are
| > stored
| > | in machine.config. However, in whidbey, most of the machine wide
| > | configuration for ASP.NET application are stored in a global
web.config
| > | which is also in the
| > |
| > | %windir%\Microsoft.NET\Framework\v2.0.xxxxx\CONFIG folder.
| > |
| > | I've tested through add the custom HttpHandler in that global
web.config
| > | and also configure the extentions mapping in IIS's website home
| > directory,
| > | that works well. So I think you can also try using the global
web.config
| > | file instead of the machine.config to see whether it works.
| > |
| > | Hope helps. Thanks,
| > |
| > | Steven Cheng
| > | Microsoft Online Support
| > |
| > | Get Secure! www.microsoft.com/security
| > | (This posting is provided "AS IS", with no warranties, and confers no
| > | rights.)
| > |
| > |
| > | --------------------
| > | | X-Tomcat-ID: 24090220
| > | | References: <23**********************************@microsoft.co m>
| > | <5X*************@TK2MSFTNGXA01.phx.gbl>
| > | <B7**********************************@microsoft.co m>
| > | | MIME-Version: 1.0
| > | | Content-Type: text/plain
| > | | Content-Transfer-Encoding: 7bit
| > | | From: st*****@online.microsoft.com (Steven Cheng[MSFT])
| > | | Organization: Microsoft
| > | | Date: Mon, 19 Sep 2005 01:34:09 GMT
| > | | Subject: RE: installing global httphandler for custom extension
| > | | X-Tomcat-NG: microsoft.public.dotnet.framework.aspnet
| > | | Message-ID: <OG**************@TK2MSFTNGXA01.phx.gbl>
| > | | Newsgroups: microsoft.public.dotnet.framework.aspnet
| > | | Lines: 111
| > | | Path: TK2MSFTNGXA01.phx.gbl
| > | | Xref: TK2MSFTNGXA01.phx.gbl
| > | microsoft.public.dotnet.framework.aspnet:125404
| > | | NNTP-Posting-Host: tomcatimport2.phx.gbl 10.201.218.182
| > | |
| > | | OK. I'll do some tests and let you know my results ASAP.
| > | |
| > | | Thanks,
| > | |
| > | | Steven Cheng
| > | | Microsoft Online Support
| > | |
| > | | Get Secure! www.microsoft.com/security
| > | | (This posting is provided "AS IS", with no warranties, and confers
no
| > | | rights.)
| > | | --------------------
| > | | | Thread-Topic: installing global httphandler for custom extension
| > | | | thread-index: AcW6xEeLWO/La2xISs6YCk91IRMHUQ==
| > | | | X-WBNR-Posting-Host: 63.66.47.208
| > | | | From: "=?Utf-8?B?QWRhbQ==?=" <ad*********@online.nospam>
| > | | | References: <23**********************************@microsoft.co m>
| > | | <5X*************@TK2MSFTNGXA01.phx.gbl>
| > | | | Subject: RE: installing global httphandler for custom extension
| > | | | Date: Fri, 16 Sep 2005 06:41:02 -0700
| > | | | Lines: 82
| > | | | Message-ID: <B7**********************************@microsoft.co m>
| > | | | MIME-Version: 1.0
| > | | | Content-Type: text/plain;
| > | | | charset="Utf-8"
| > | | | Content-Transfer-Encoding: 7bit
| > | | | X-Newsreader: Microsoft CDO for Windows 2000
| > | | | Content-Class: urn:content-classes:message
| > | | | Importance: normal
| > | | | Priority: normal
| > | | | X-MimeOLE: Produced By Microsoft MimeOLE V6.00.3790.0
| > | | | Newsgroups: microsoft.public.dotnet.framework.aspnet
| > | | | NNTP-Posting-Host: TK2MSFTNGXA03.phx.gbl 10.40.2.250
| > | | | Path: TK2MSFTNGXA01.phx.gbl!TK2MSFTNGXA03.phx.gbl
| > | | | Xref: TK2MSFTNGXA01.phx.gbl
| > | | microsoft.public.dotnet.framework.aspnet:125122
| > | | | X-Tomcat-NG: microsoft.public.dotnet.framework.aspnet
| > | | |
| > | | | Hi Steven,
| > | | | Im using windows xp, whidbey, iis5.1, and I've tried the asp.net
| > | | development
| > | | | web server as well.
| > | | | Thanks!
| > | | | Adam
| > | | |
| > | | |
| > | | | "Steven Cheng[MSFT]" wrote:
| > | | |
| > | | | > Hi adamtuliper,
| > | | | >
| > | | | > Welcome to ASPNET newsgroup.
| > | | | > Regarding on the problem you mentioned, it seems a unexpected
| > | behavior
| > | | and
| > | | | > I'll try performing some tests on my side. What's your
environment
| > of
| > | | the
| > | | | > problem server? IIS5 /WIN2K or IIS6/WIN2003?
| > | | | >
| > | | | > Thanks,
| > | | | >
| > | | | > Steven Cheng
| > | | | > Microsoft Online Support
| > | | | >
| > | | | > Get Secure! www.microsoft.com/security
| > | | | > (This posting is provided "AS IS", with no warranties, and
confers
| > no
| > | | | > rights.)
| > | | | > --------------------
| > | | | > | Thread-Topic: installing global httphandler for custom
extension
| > | | | > | thread-index: AcW6XOdEOEJAjvdqQNaKxOh5cVTmXA==
| > | | | > | X-WBNR-Posting-Host: 68.163.60.56
| > | | | > | From: "=?Utf-8?B?QWRhbQ==?=" <ad*********@online.nospam>
| > | | | > | Subject: installing global httphandler for custom extension
| > | | | > | Date: Thu, 15 Sep 2005 18:21:02 -0700
| > | | | > | Lines: 26
| > | | | > | Message-ID:
<23**********************************@microsoft.co m>
| > | | | > | MIME-Version: 1.0
| > | | | > | Content-Type: text/plain;
| > | | | > | charset="Utf-8"
| > | | | > | Content-Transfer-Encoding: 7bit
| > | | | > | X-Newsreader: Microsoft CDO for Windows 2000
| > | | | > | Content-Class: urn:content-classes:message
| > | | | > | Importance: normal
| > | | | > | Priority: normal
| > | | | > | X-MimeOLE: Produced By Microsoft MimeOLE V6.00.3790.0
| > | | | > | Newsgroups: microsoft.public.dotnet.framework.aspnet
| > | | | > | NNTP-Posting-Host: TK2MSFTNGXA03.phx.gbl 10.40.2.250
| > | | | > | Path: TK2MSFTNGXA01.phx.gbl!TK2MSFTNGXA03.phx.gbl
| > | | | > | Xref: TK2MSFTNGXA01.phx.gbl
| > | | | > microsoft.public.dotnet.framework.aspnet:125014
| > | | | > | X-Tomcat-NG: microsoft.public.dotnet.framework.aspnet
| > | | | > |
| > | | | > | Im trying to add an httphandler for all *.sgf file
extensions. I
| > | have
| > | | | > | developed the handler,
| > | | | > | 1. installed it into the gac
| > | | | > | 2. added it to the machine.config:
| > | | | > |
| > | | | > | <httpHandlers>
| > | | | > | <add verb="*" path="*.sgf"
type="CustomExtensionHandler,
| > | | | > | Extenders.CustomExtensionHandler, Version=1.0.0.0,
| > Culture=neutral,
| > | | | > | PublicKeyToken=d831d925597c1031" validate="True"/>
| > | | | > | </httpHandlers>
| > | | | > | 3. Added .sgf to map to aspnet_isapi.dll
| > | | | > |
| > | | | > | The assembly seems to get loaded (If I change the type string
to
| > be
| > | | | > invalid
| > | | | > | it will fail upon iisreset - so this seems to work ok).
| > | | | > |
| > | | | > | When I try to request localhost/something.sgf I get a 404
| > returned
| > | | from
| > | | | > | asp.net (the script mapping in iis is set to not check for
the
| > | client
| > | | | > file).
| > | | | > |
| > | | | > | If I create a new web app and add this filter to the
web.config,
| > it
| > | | seems
| > | | | > to
| > | | | > | work. I thought adding it to machine.config would allow me to
| > | create
| > | | a
| > | | | > | "global" httphandler that I wouldnt have to add to every
single
| > | | | > web.config,
| > | | | > | no? But its not working that way. Is it supposed to?
| > | | | > |
| > | | | > | Thanks!
| > | | | > |
| > | | | > |
| > | | | > |
| > | | | >
| > | | | >
| > | | |
| > | |
| > | |
| > |
| > |
| >
| >
|

Nov 19 '05 #8

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

14
by: qwerty | last post by:
Hi, I am using a third party win 2003 iis 6.0 to serve my website. The web site has a httphandler which does some custom jobs. When I try to invoke the httphandler from some url call, it won't...
4
by: Paul | last post by:
Hi! I want my web application to be able to handle files with the extension ..mspx (my own extension). The new extension should be handled exatly the way aspx files are handled, but with some...
7
by: Ankit Aneja | last post by:
I put the code for url rewrite in my Application_BeginRequest on global.ascx some .aspx pages are in root ,some in folder named admin and some in folder named user aspx pages which are in user...
2
by: Ken Yee | last post by:
First a little background: I've written an httphandler to handle wildcard extensions (i.e., I want to handle all URLs that come in rather than just URLs w/ a specific file extension so I can give...
8
by: bryan | last post by:
I've got a custom HttpHandler to process all requests for a given extension. It gets invoked OK, but if I try to do a Server.Transfer I get an HttpException. A Response.Redirect works, but I really...
3
by: Michael Schwarz | last post by:
Hi, I have a own HttpHandler running and configured like this in my web.config: <add verb="*" path="subfolder/*.ashx" type="Class,Assembly"/> Now, when turning cookieless Sessions on my...
8
by: Bill | last post by:
Anyone have any success in using global.asax to protect images in a folder from being linked to by external websites? I'd tried to use global.asa in the past, with no success. Any help would be...
3
by: Joe Reiss | last post by:
Hi All, Using vs 2005, c#, ms sql 2005 asp.net web site. Using httphandler to generate dynamic image from sql server database. Going according to instructions from msn: I'm using is...
5
by: Author | last post by:
I followed the example at http://support.microsoft.com/kb/308001/EN-US/ and created my own HttpHandler. Here is the code: using System.Web; namespace MyNameSpace { public class...
0
by: Rina0 | last post by:
Cybersecurity engineering is a specialized field that focuses on the design, development, and implementation of systems, processes, and technologies that protect against cyber threats and...
0
linyimin
by: linyimin | last post by:
Spring Startup Analyzer generates an interactive Spring application startup report that lets you understand what contributes to the application startup time and helps to optimize it. Support for...
0
by: kcodez | last post by:
As a H5 game development enthusiast, I recently wrote a very interesting little game - Toy Claw ((http://claw.kjeek.com/))。Here I will summarize and share the development experience here, and hope it...
0
by: Taofi | last post by:
I try to insert a new record but the error message says the number of query names and destination fields are not the same This are my field names ID, Budgeted, Actual, Status and Differences ...
14
DJRhino1175
by: DJRhino1175 | last post by:
When I run this code I get an error, its Run-time error# 424 Object required...This is my first attempt at doing something like this. I test the entire code and it worked until I added this - If...
5
by: DJRhino | last post by:
Private Sub CboDrawingID_BeforeUpdate(Cancel As Integer) If = 310029923 Or 310030138 Or 310030152 Or 310030346 Or 310030348 Or _ 310030356 Or 310030359 Or 310030362 Or...
0
by: lllomh | last post by:
How does React native implement an English player?
0
by: Mushico | last post by:
How to calculate date of retirement from date of birth
2
by: DJRhino | last post by:
Was curious if anyone else was having this same issue or not.... I was just Up/Down graded to windows 11 and now my access combo boxes are not acting right. With win 10 I could start typing...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.