List Info

Thread: Handlers not Documented?




Handlers not Documented?
user name
2006-04-16 23:16:18
Are you sure the classes are internal? That seems unlikely
for things which
are referenced from configuration files.

Since they're not documented, you basically have to say one
of these:

1. "This is what Microsoft uses, but it's not
documented. If they change the
names of these classes between releases of .NET, you may
need to rename the
classes in your Web.config file."

or

2. "These classes aren't documented. You need to pay
me to write the
identical class for you."



On 4/16/06, Shawn Wildermuth <swildermuth_listsadoguy.com> wrote:
>
> Again, not public or documented!
>

--
Brad Wilson
http://www.
agileprogrammer.com/dotnetguy/

"You've been schooled, had aggression in large
amounts
Just be truthful, man, it's everything that counts
There is no hand waiting that must be paid
We will leave our encores all unplayed
At the end of the day" - Spock's Beard
Handlers not Documented?
user name
2006-04-17 00:01:22
The external API for those two classes are via the standard
IHttpHandler
interface, and the implementations are actually internal
(although
because the IHttpHandler interface is public you can cast an
instance to
that and access it outside the System.Web assembly).

I'm not really sure why they aren't documented on MSDN -
I'll forward
them to the person responsible for documentation and see if
they can get
that added.  I suspect they don't show up today because the
class is
marked internal (and the doc process by default ignores
internal types).

In terms of what they do:

System.Web.HttpForbiddenHandler blocks access to any file it
is mapped
to.  We use it to avoid people getting access to things like
project
files, .vb/.cs files, etc.  You can re-use it to likewise
protect your
own content types.

System.Web.StaticFileHandler will send back the content of a
file-type
on disk unmodified.  It is useful for resources where you
want to add
things like forms-authentication or role-management
authorization checks
to.

Hope this helps,

Scott

-----Original Message-----
From: Discussion of building .NET applications targeted for
the Web
[mailtoOTNET-WE
BDISCUSS.DEVELOP.COM] On Behalf Of Brad Wilson
Sent: Sunday, April 16, 2006 4:16 PM
To: DOTNET-WEBDISCUSS.DEVELOP.COM
Subject: Re: [DOTNET-WEB] Handlers not Documented?

Are you sure the classes are internal? That seems unlikely
for things
which
are referenced from configuration files.

Since they're not documented, you basically have to say one
of these:

1. "This is what Microsoft uses, but it's not
documented. If they change
the
names of these classes between releases of .NET, you may
need to rename
the
classes in your Web.config file."

or

2. "These classes aren't documented. You need to pay
me to write the
identical class for you."



On 4/16/06, Shawn Wildermuth <swildermuth_listsadoguy.com> wrote:
>
> Again, not public or documented!
>

--
Brad Wilson
http://www.
agileprogrammer.com/dotnetguy/

"You've been schooled, had aggression in large
amounts
Just be truthful, man, it's everything that counts
There is no hand waiting that must be paid
We will leave our encores all unplayed
At the end of the day" - Spock's Beard

===================================
This list is hosted by DevelopMentorŪ  http://www.develop.com

View archives and manage your subscription(s) at http://discuss.develop.com

While on the subject - Handlers returing 404
user name
2006-04-17 00:42:41
What about allowing *.someextension to be processed when
that file doesnt exist. Iis is set to not check if file
exists, but .net returns 404 file not found.
However.. if I specify in the httphandler section in the
web.config (the global web.config)
someFileThatDoesntExist.SomeExtension then it works... also
this entry seems to require that it is at the top of the
web.config httphandler list:

        <httpHandlers>
            <add
path="SomeFile.SomeExtension"
verb="*"
type="SomeAssembly.SomeHandler,
SomeAssembly.SomeHandler,
Version=1.0.0.0, Culture=neutral,
PublicKeyToken=d831d925597c1031"
validate="False" />



------------------------------------------------------------
---------
Web mail provided by NuNet, Inc. The Premier National
provider.
http://www.nni.com/

===================================
This list is hosted by DevelopMentorŪ  http://www.develop.com

View archives and manage your subscription(s) at http://discuss.develop.com

[1-3]

about | contact  Other archives ( Real Estate discussion Medical topics )