Welcome to HostingForumz.com!
FAQFAQ   SearchSearch      ProfileProfile    Private MessagesPrivate Messages   Log inLog in

IIS 6 and UNC paths

 
   Web Hosting Problem Solving Community! (Home) -> IIS RSS
Related Topics:
iis & perl and unc paths - hello *.*, what must be changed in the of the iis in order to allow cgi perl script access to unc paths? thanx in advance, Andreas

UNC paths with IIS WebDav - When I use a UNC path for a virtual directory within IIS of my I get a file not found error. However when I change the directory on this computer within the of IIS It..

Disable parent paths IIS XP Sp2? - The security report by the Microsoft Baseline Security Analyzer said: IIS Parent paths are enabled in some web sites and/or virtual Tried to correct this according to MBSA "How to correct "In the Default Web Site..

IIS virtual paths and FrontPage - FrontPage forms work when accessing the site normally, but give an error when accessed through the shared secure server's virtual path? Example. This works: This

having probs with ../ and / relative paths - I moved an asp site from iis5 to iis6 now im getting errors saying ../ and / arent allowed. How do I change my relative path to work with iis 6? Such a basic thing, but it seems the more basic, the harder to find thanks jose
Next:  "What server do you want to use?&quo..  
Author Message
Paul Wilson

External


Since: May 02, 2005
Posts: 2



(Msg. 1) Posted: Mon May 02, 2005 2:00 pm
Post subject: IIS 6 and UNC paths
Archived from groups: microsoft>public>inetserver>iis (more info?)

I have a script (compiled exe) that runs on IIS 5 just fine. I turn it over
to IIS 6 and make sure I have all the proper permissions. It seems to run
but I am getting this path statement error " Cannot open file
\\?\C:\Inetpub\website\login.htm, so what is with this \\?\ stuff? this
seems related to UNC paths?? Is there a way to get rid of this? remember
this works just fine on IIS 5.

Thanks for any hints....

Paul

 >> Stay informed about: IIS 6 and UNC paths 
Back to top
Login to vote
someone9

External


Since: Aug 25, 2003
Posts: 2419



(Msg. 2) Posted: Mon May 02, 2005 2:00 pm
Post subject: Re: IIS 6 and UNC paths [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

\\?\ is a security measure introduced in IIS6 and should just work with all
of the Win32 APIs. It basically tells the filesystem to open the filename
"as is" instead of doing any other translations on it (i.e. this defeats
many canonicalization-based security attacks). It cannot be disabled via
configuration, and it is enabled on all filesystem access by IIS6.

Thus, it is a bug in any program that cannot work with \\?\ (usually, those
that incorrectly assume \\ means UNC share). It existed even in Win32 API on
IIS5 .

--
//David
IIS
http://blogs.msdn.com/David.Wang
This posting is provided "AS IS" with no warranties, and confers no rights.
//
"Paul Wilson" <cstcs RemoveThis @hotmail.com> wrote in message
news:%23KRuKG1TFHA.544@TK2MSFTNGP15.phx.gbl...
I have a script (compiled exe) that runs on IIS 5 just fine. I turn it over
to IIS 6 and make sure I have all the proper permissions. It seems to run
but I am getting this path statement error " Cannot open file
\\?\C:\Inetpub\website\login.htm, so what is with this \\?\ stuff? this
seems related to UNC paths?? Is there a way to get rid of this? remember
this works just fine on IIS 5.

Thanks for any hints....

Paul

 >> Stay informed about: IIS 6 and UNC paths 
Back to top
Login to vote
user1580

External


Since: Apr 03, 2004
Posts: 367



(Msg. 3) Posted: Tue May 03, 2005 10:55 am
Post subject: Re: IIS 6 and UNC paths [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

"Paul Wilson" <cstcs.DeleteThis@hotmail.com> wrote in message
news:%23KRuKG1TFHA.544@TK2MSFTNGP15.phx.gbl...
 >I have a script (compiled exe) that runs on IIS 5 just fine. I turn it over
 >to IIS 6 and make sure I have all the proper permissions. It seems to run
 >but I am getting this path statement error " Cannot open file
 >\\?\C:\Inetpub\website\login.htm, so what is with this \\?\ stuff? this
 >seems related to UNC paths?? Is there a way to get rid of this? remember
 >this works just fine on IIS 5.



 > Thanks for any hints....


The EXE should be compiled using Unicode functions that is CreateFileW and
not CreateFileA. If you refer to a VB6 program, it cannot use unicode unless
the programmer knows to create TLBs (typelibraries) to access the unicode
version of the Win32API (or he uses the hidden StrPtr function to access
such api's using pointers which is a difficult practice to do).

If it is a C++ exe file, define the _UNICODE macro in stdafx.h and
recompile.

--
compatible web farm Session replacement for Asp and Asp.Net
<a style='text-decoration: underline;' href="http://www.nieropwebconsult.nl/asp_session_manager.htm" target="_blank">http://www.nieropwebconsult.nl/asp_session_manager.htm</a>

 > Paul
 >
 ><!-- ~MESSAGE_AFTER~ -->
 >> Stay informed about: IIS 6 and UNC paths 
Back to top
Login to vote
Paul Wilson

External


Since: May 02, 2005
Posts: 2



(Msg. 4) Posted: Tue May 03, 2005 4:55 pm
Post subject: Re: IIS 6 and UNC paths [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

Thanks guys for the explanation, it helped me greatly!

Paul
 >> Stay informed about: IIS 6 and UNC paths 
Back to top
Login to vote
Display posts from previous:   
   Web Hosting Problem Solving Community! (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 ]