Welcome to MobyThreads.com!
FAQFAQ      ProfileProfile    Private MessagesPrivate Messages   Log inLog in
All support for the MobyThreads Threaded phpBB MOD can now be found on welsolutions at this forum

IIS error with .com in virtual directory name

 
   Web Hosting and Web Master Forums (Home) -> IIS RSS
Next:  Https Redirects with IIS?  
Author Message
davea

External


Since: Aug 04, 2004
Posts: 2



(Msg. 1) Posted: Wed Aug 04, 2004 9:51 am
Post subject: IIS error with .com in virtual directory name
Archived from groups: microsoft>public>inetserver>iis (more info?)

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, but got it to work fine on IIS6, and I had no problems on an Apache server either.

 >> Stay informed about: IIS error with .com in virtual directory name 
Back to top
Login to vote
andrey

External


Since: Apr 12, 2004
Posts: 214



(Msg. 2) Posted: Wed Aug 04, 2004 10:23 am
Post subject: Re: IIS error with .com in virtual directory name [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

Dave A wrote:

 > 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:-
 >
<font color=purple> > 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. <a style='text-decoration: underline;' href="http://localhost/peter.microsoft.com/files/test.txt</font" target="_blank">http://localhost/peter.microsoft.com/files/test.txt</font</a>>
 >
 > 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, but got it to work fine on IIS6, and I had no problems on an Apache server either.
 >
 >
 >
 >

Sorry, this is behavior by design:

<a style='text-decoration: underline;' href="http://support.microsoft.com/default.aspx?scid=kb;en-us;275601" target="_blank">http://support.microsoft.com/default.aspx?scid=kb;en-us;275601</a><!-- ~MESSAGE_AFTER~ -->

 >> Stay informed about: IIS error with .com in virtual directory name 
Back to top
Login to vote
user641

External


Since: Aug 22, 2003
Posts: 1637



(Msg. 3) Posted: Wed Aug 04, 2004 1:14 pm
Post subject: Re: IIS error with .com in virtual directory name [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

"Dave A" <DaveA.RemoveThis@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.
<a style='text-decoration: underline;' href="http://localhost/peter.microsoft.com/files/test.txt" target="_blank">http://localhost/peter.microsoft.com/files/test.txt</a>
 >
 > 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.
<a style='text-decoration: underline;' href="http://support.microsoft.com/?kbid=275601" target="_blank">http://support.microsoft.com/?kbid=275601</a>

--
Tom Kaminski IIS MVP
<a style='text-decoration: underline;' href="http://www.microsoft.com/windowsserver2003/community/centers/iis/" target="_blank">http://www.microsoft.com/windowsserver2003/community/centers/iis/</a>
<a style='text-decoration: underline;' href="http://mvp.support.microsoft.com/" target="_blank">http://mvp.support.microsoft.com/</a>
<a style='text-decoration: underline;' href="http://www.iisfaq.com/" target="_blank">http://www.iisfaq.com/</a>
<a style='text-decoration: underline;' href="http://www.iistoolshed.com/" target="_blank">http://www.iistoolshed.com/</a> - tools, scripts, and utilities for running IIS
<a style='text-decoration: underline;' href="http://www.tryiis.com" target="_blank">http://www.tryiis.com</a><!-- ~MESSAGE_AFTER~ -->
 >> Stay informed about: IIS error with .com in virtual directory name 
Back to top
Login to vote
davea

External


Since: Aug 04, 2004
Posts: 2



(Msg. 4) Posted: Wed Aug 04, 2004 1:14 pm
Post subject: Re: IIS error with .com in virtual directory name [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

OK, thanks for the link. But I still argue its a fault...
In a post I've also just found in the IIS General group, David Wang [Msft] answered a similar question in the post Subject: Re: URL containing .com or .exe 5/28/2004 2:32 PM PST:-
""This is because given a URL of: /www.path.com/file.txt , IIS can either
1. treat it as an access to an executable file named <a style='text-decoration: underline;' href="http://www.path.com" target="_blank">www.path.com</a> with a
pathinfo of /file.txt
2. treat it as an access to a directory named <a style='text-decoration: underline;' href="http://www.path.com" target="_blank">www.path.com</a> and file named
/file.txt

You enabled "Scripts and Executables", which causes IIS to choose
interpretation #1 instead of #2. ""

So, if I select internet service manager execute permissions "None" instead of "Scripts Only" or "Scripts and executables" why doesn't IIS interpret it as #2 above??

And WHY does it work in IIS 6?

Some comment from Microsoft (other than "upgrade to IIS 6" would be nice!

/Dave

"Tom Kaminski [MVP]" wrote:

 > "Dave A" <DaveA DeleteThis @discussions.microsoft.com> wrote in message
 > news:996BED67-DAED-4580-86EB-9A749D6CE434@microsoft.com...
.....
 >
 > There is no workaround. Rename the folder.
<font color=purple> > <a style='text-decoration: underline;' href="http://support.microsoft.com/?kbid=275601</font" target="_blank">http://support.microsoft.com/?kbid=275601</font</a>>
 >
 > --
 > Tom Kaminski IIS MVP
<font color=purple> > <a style='text-decoration: underline;' href="http://www.microsoft.com/windowsserver2003/community/centers/iis/</font" target="_blank">http://www.microsoft.com/windowsserver2003/community/centers/iis/</font</a>>
<font color=purple> > <a style='text-decoration: underline;' href="http://mvp.support.microsoft.com/</font" target="_blank">http://mvp.support.microsoft.com/</font</a>>
<font color=purple> > <a style='text-decoration: underline;' href="http://www.iisfaq.com/</font" target="_blank">http://www.iisfaq.com/</font</a>>
 > <a style='text-decoration: underline;' href="http://www.iistoolshed.com/" target="_blank">http://www.iistoolshed.com/</a> - tools, scripts, and utilities for running IIS
<font color=purple> > <a style='text-decoration: underline;' href="http://www.tryiis.com</font" target="_blank">http://www.tryiis.com</font</a>>
 >
 >
 ><!-- ~MESSAGE_AFTER~ -->
 >> Stay informed about: IIS error with .com in virtual directory name 
Back to top
Login to vote
andrey

External


Since: Apr 12, 2004
Posts: 214



(Msg. 5) Posted: Wed Aug 04, 2004 4:42 pm
Post subject: Re: IIS error with .com in virtual directory name [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

Yup, there's no perfect software product in this World Surprised)

IIS5 exists for how long? 5 years, I believe. I think that Microsoft has
been seeing such a "change it" request millions of times but no
changes yet.

So, either upgrade or apply some workaround solution....

Best regards,
-Andrey

Dave A wrote:

 > OK, thanks for the link. But I still argue its a fault...
 > In a post I've also just found in the IIS General group, David Wang [Msft] answered a similar question in the post Subject: Re: URL containing .com or .exe 5/28/2004 2:32 PM PST:-
 > ""This is because given a URL of: /www.path.com/file.txt , IIS can either
 > 1. treat it as an access to an executable file named <a style='text-decoration: underline;' href="http://www.path.com" target="_blank">www.path.com</a> with a
 > pathinfo of /file.txt
 > 2. treat it as an access to a directory named <a style='text-decoration: underline;' href="http://www.path.com" target="_blank">www.path.com</a> and file named
 > /file.txt
 >
 > You enabled "Scripts and Executables", which causes IIS to choose
 > interpretation #1 instead of #2. ""
 >
 > So, if I select internet service manager execute permissions "None" instead of "Scripts Only" or "Scripts and executables" why doesn't IIS interpret it as #2 above??
 >
 > And WHY does it work in IIS 6?
 >
 > Some comment from Microsoft (other than "upgrade to IIS 6" would be nice!
 >
 > /Dave
 >
 > "Tom Kaminski [MVP]" wrote:
 >
 >
  >>"Dave A" <DaveA RemoveThis @discussions.microsoft.com> wrote in message
  >>news:996BED67-DAED-4580-86EB-9A749D6CE434@microsoft.com...
 >
 > ....
 >
  >>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
  >>
  >>
  >><!-- ~MESSAGE_AFTER~ -->
 >> Stay informed about: IIS error with .com in virtual directory name 
Back to top
Login to vote
kgafvert

External


Since: Aug 23, 2003
Posts: 2972



(Msg. 6) Posted: Wed Aug 04, 2004 7:17 pm
Post subject: Re: IIS error with .com in virtual directory name [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

Hello,

This is by design, please see:

"Virtual Directory Names with Executable Extensions Are Not Used Correctly"
<a style='text-decoration: underline;' href="http://support.microsoft.com/?kbid=275601" target="_blank">http://support.microsoft.com/?kbid=275601</a>

For more information.

--
Regards,
Kristofer Gafvert - IIS MVP
<a style='text-decoration: underline;' href="http://www.ilopia.com" target="_blank">http://www.ilopia.com</a> - When you need help!


"Dave A" <DaveA.RemoveThis@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.
<a style='text-decoration: underline;' href="http://localhost/peter.microsoft.com/files/test.txt" target="_blank">http://localhost/peter.microsoft.com/files/test.txt</a>
 >
 > 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, but got it to work fine on IIS6, and I had no problems on an Apache
server either.
 >
 >
 >
 ><!-- ~MESSAGE_AFTER~ -->
 >> Stay informed about: IIS error with .com in virtual directory name 
Back to top
Login to vote
user1772

External


Since: Jun 10, 2004
Posts: 1807



(Msg. 7) Posted: Thu Aug 05, 2004 5:26 pm
Post subject: Re: IIS error with .com in virtual directory name [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

On Wed, 04 Aug 2004 13:42:28 -0700, Andrey P <andrey DeleteThis @paramonov.pp.ru>
wrote:

 >Yup, there's no perfect software product in this World Surprised)
 >
 >IIS5 exists for how long? 5 years, I believe. I think that Microsoft has
 > been seeing such a "change it" request millions of times but no
 >changes yet.

It can't easily be changed. The operating system has always
recognized a .com as an executable file extension. It's the nature of
the beast.

You shouldn't name a web site folder LPT1 either... Smile

Jeff

 >So, either upgrade or apply some workaround solution....
 >
 >Best regards,
 >-Andrey
 >
 >Dave A wrote:
 >
  >> OK, thanks for the link. But I still argue its a fault...
  >> In a post I've also just found in the IIS General group, David Wang [Msft] answered a similar question in the post Subject: Re: URL containing .com or .exe 5/28/2004 2:32 PM PST:-
  >> ""This is because given a URL of: /www.path.com/file.txt , IIS can either
  >> 1. treat it as an access to an executable file named <a style='text-decoration: underline;' href="http://www.path.com" target="_blank">www.path.com</a> with a
  >> pathinfo of /file.txt
  >> 2. treat it as an access to a directory named <a style='text-decoration: underline;' href="http://www.path.com" target="_blank">www.path.com</a> and file named
  >> /file.txt
  >>
  >> You enabled "Scripts and Executables", which causes IIS to choose
  >> interpretation #1 instead of #2. ""
  >>
  >> So, if I select internet service manager execute permissions "None" instead of "Scripts Only" or "Scripts and executables" why doesn't IIS interpret it as #2 above??
  >>
  >> And WHY does it work in IIS 6?
  >>
  >> Some comment from Microsoft (other than "upgrade to IIS 6" would be nice!
  >>
  >> /Dave
  >>
  >> "Tom Kaminski [MVP]" wrote:
  >>
  >>
   >>>"Dave A" <DaveA DeleteThis @discussions.microsoft.com> wrote in message
   >>>news:996BED67-DAED-4580-86EB-9A749D6CE434@microsoft.com...
  >>
  >> ....
  >>
   >>>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
   >>>
   >>>
   >>><!-- ~MESSAGE_AFTER~ -->
 >> Stay informed about: IIS error with .com in virtual directory name 
Back to top
Login to vote
Display posts from previous:   
Related Topics:
Virtual Directory Error - I'm trying to add a Virtual Directory but I am getting the error "The alias you have given is not unique." How can I clear this and continue with adding my virtual directory? I can find no trace of the alias name I am trying to use. Thanks.

Virtual Directory Path error with OWA - I have some strange IIS behaviour with OWA exchange 2k folders. Each time I set the path to the folder location, stop and start IIS. The public, Exchange and Exadmin virtual folders display an error icon. users are unable to connect to OWA. Any ideas..

Error creating Virtual directory - IIS is on the C drive. On our client location, we created a virtual directory that points to a D drive (D drive is on the same machine with C drive). After creating it, instead of the icon looks like an open folder, it looks like a STOP sign with the wor...

"error" stop sign on virtual directory or second FTP site - I'm trying to set up access to two network drives through my workstation. I can do one without any problems. However if I try to add a virtual directory to a network drive, I get a stop error message. The same thing happens if I try to add a second ftp t...

SSL and using a virtual directory for OWA - I am trying to implement OWA for EX2k. I have given up trying to create my own certs and am going to get one from a vendor. The mail server is on machine2 and the webserver is on machine1. I want the OWA to be reachable by typing..
   Web Hosting and Web Master Forums (Home) -> IIS All times are: Pacific Time (US & Canada) (change)
Page 1 of 1

 
You can post new topics in this forum
You can reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum



[ Contact us | Terms of Service/Privacy Policy ]