CS file extension not registered with aspnet_isapi.dll
From: Michael Pose (michaelp@_NOSPAM_fastmail.fm)
Date: 08/27/02
- Next message: Vivek Srivastav: "Credit Card Validation"
- Previous message: Paul Clement: "Re: Login Security ASP.NET - Need help on a idea - Thanks"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ] [ attachment ]
From: "Michael Pose" <michaelp@_NOSPAM_fastmail.fm> Date: Tue, 27 Aug 2002 13:27:41 -0400
Hi All,
I just ran into an iteresting problem: Just for fun I typed in the name of a
.cs file
on my development machine and my web server.
And to my surprise, IE immediately showed me the source code !! of the .cs
file.
for other files like web.config, global.asax etc. I got the expected
message:
"This type of file is not being served..."
I looked first into the machine.config file, and there the .cs extension was
correctly
registered with HttpFobiddenHandler.
Then I looked into Internet Service Manager, into the Application Mappings
of my
Default Web Site, and all the extensions (.config, .vb, .asmx, .asax.,
etc. ) were mapped
to .NET's aspnet_isapi.dll EXCEPT the .cs extension!!!
After I added the mapping by hand similar to the .vb mapping, the access of
the .cs files
is now forbidden. As I mentioned, that same happened on 2 independent
machines with
Visual Studio.NET installed.
Is that the default behavior or a bug? Did anyone else have the same
happening on their
machines? Or does it have anything to do with VisualStudio.NET that it
doesn't correctly register
itself with IIS?
You may want to check the application mappings on our web server as well,
just in case.
Thanks for any feedback,
Michael
- Next message: Vivek Srivastav: "Credit Card Validation"
- Previous message: Paul Clement: "Re: Login Security ASP.NET - Need help on a idea - Thanks"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ] [ attachment ]
Relevant Pages
|