CS file extension not registered with aspnet_isapi.dll

From: Michael Pose (michaelp@_NOSPAM_fastmail.fm)
Date: 08/27/02


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



Relevant Pages

  • Re: VPN and Mapping Drives
    ... drive mappings try to ping the remote machines to see if machines are ... I hope these machines are in your private network over which ping will not ... > the mappings letter for letter identical. ...
    (microsoft.public.windowsxp.work_remotely)
  • Re: UID/GID mapping system
    ... I can mount this filesystem on my machine. ... locations that have different uid mappings - either at different ... I've had desktop machines that had to be simultaneously connected to ... send the line "unsubscribe linux-kernel" in ...
    (Linux-Kernel)
  • mappings
    ... the drive mappings for WIn98 machines are stored in ... where it is on XP machines. ...
    (microsoft.public.windowsxp.network_web)
  • Re: Deleteing a home network
    ... If they are not mappings then just turning off the other ... machines should remove them from network places. ... > How do I delete the mappings so I can start over with a clean computer? ... >> I'm not positive but I'm pretty sure all the information in My Network ...
    (microsoft.public.windowsxp.help_and_support)
  • Re: Line of code hanging up on one machine???
    ... the .xls extension as you suggested. ... Both machines have WinXP and both have Excel ...
    (microsoft.public.excel.programming)