Re: IIS error with .com in virtual directory name

Tech-Archive recommends: Fix windows errors by optimizing your registry

From: Tom Kaminski [MVP] ((A_at_T))
Date: 08/04/04


Date: Wed, 4 Aug 2004 10:14:52 -0400


"Dave A" <DaveA@discussions.microsoft.com> wrote in message
news:996BED67-DAED-4580-86EB-9A749D6CE434@microsoft.com...
> Hi,
> I have a client application that loads a file under
(webroot)/domainname/file.txt. This works fine when I create the virtual
directory & call it e.g. microsoft.co.uk, but as soon as I use .com (e.g.
microsoft.com/file.txt), IIS rejects the client request with a 403.1 error -
execute access forbidden. IIS seems to think that the virtual directory name
is the end file & therefore thinks I'm trying to run executable code:-(
>
> I've tried changing the permissions to allow executable on the virtual
directory & files in it but no luck.
> A colleague of mine has managed to make it work only once as follows:-
>
> Create a Virtual Directory peter.microsoft.com with read only access (no
browsing, no executing allowed) and mapped it to a local folder, create a
subdirectory and put a file in.
http://localhost/peter.microsoft.com/files/test.txt
>
> Of course it didn't work.
> Do the following:
> - In Internet Services Manager right click on the virtual directory,
select browse, you're not allowed to .....
> - close the browser window
> - In Internet Services Manager double click on the virtual directory,
double click on the sub-folder, right click on the file and select browse,
the file is shown
> - now you can see the file but if you try from other clients or refresh
the browser you get the 403.1 error again.
>
> This is no solution, but may be a direction to look at: Does anyone know
of a way of configuring IIS or registry tweak, or MS patch etc to stop IIS
from assuming that .com in the virtual directory name (not the file since
its a .txt!) is an executable??
>
> I am running IIS 5 win2K server SP4. My colleague reproduced this on IIS 5

There is no workaround. Rename the folder.
http://support.microsoft.com/?kbid=275601

-- 
Tom Kaminski IIS MVP
http://www.microsoft.com/windowsserver2003/community/centers/iis/
http://mvp.support.microsoft.com/
http://www.iisfaq.com/
http://www.iistoolshed.com/ - tools, scripts, and utilities for running IIS
http://www.tryiis.com


Relevant Pages

  • Re: Run application as Administrator?
    ... > We have a strange situation where we have a number of ASP scripts that ... > execute an external program, provided by our client. ... Tom Kaminski IIS MVP ...
    (microsoft.public.inetserver.iis)
  • Re: How to serve a certain file format in IIS6/2003
    ... If it's going to be execute on the client side, then it's depend on the MIME ... For IIS, it just base on ...
    (microsoft.public.inetserver.iis.security)
  • Re: IIS error with .com in virtual directory name
    ... "Virtual Directory Names with Executable Extensions Are Not Used Correctly" ... Kristofer Gafvert - IIS MVP ... execute access forbidden. ... > - In Internet Services Manager double click on the virtual directory, ...
    (microsoft.public.inetserver.iis)
  • Re: Security settings for cmd access IIS XP Pro SP2
    ... Are you trying to get access to cmd.exe on the client side? ... and nothing to do with IIS (IIS can only work with ... Are there any new security settings for controlling access to the cmd ... I have been able to execute a .EXE program from HTML using ...
    (microsoft.public.inetserver.iis)
  • Re: Cantt download "exe" file because of IIS version
    ... I have Execute Permissions on the virtual directory set to "Script Only". ... "Internet Explorer cannot download x.exe from website. ... or should IIS send the contents of program.exe to the browser as a ...
    (microsoft.public.inetserver.iis)