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

IIS 6.0 Adding Virtual Directory Property

 
   Web Hosting Problem Solving Community! (Home) -> IIS RSS
Next:  create web folder on another drive besides root  
Author Message
user763

External


Since: Sep 10, 2003
Posts: 3



(Msg. 1) Posted: Tue Sep 16, 2003 5:57 pm
Post subject: IIS 6.0 Adding Virtual Directory Property
Archived from groups: microsoft>public>inetserver>iis (more info?)

When adding the "Path" key to a new virtual directory key in IIS 6.0, the
SetData method fails on me. The same C++ code will execute flawlessly on
Windows 2000 running IIS 5.0. Has anyone ever had this problem? Here's my
code:


METADATA_RECORD rec;

rec.dwMDIdentifier = MD_VR_PATH;
rec.dwMDAttributes = METADATA_INHERIT;
rec.dwMDUserType = IIS_MD_UT_FILE;
rec.dwMDDataType = STRING_METADATA;
rec.dwMDDataLen = (data.size() +1) * 2;
rec.pbMDData = (BYTE*)data.c_str();
rec.dwMDDataTag = 0;

HRESULT hr = pIMeta->SetData (hMetabase, RelativePath, &rec);

where data is a wstring, pIMeta is my IMSAdminBase object, hMetabase is my
metadata handle, and RelativePath is the name of the virtual directory key
I'm accessing.

Again, I'm testing this code on Windows 2003 running IIS 6.0 and it doesn't
work. It will work on Windows 2000 running IIS 5.0. Any help that can be
provided is greatly appreciated. Thanks!

Bill Rowell
SilkRoad technology
http://www.silkroadtech.com

 >> Stay informed about: IIS 6.0 Adding Virtual Directory Property 
Back to top
Login to vote
someone9

External


Since: Aug 25, 2003
Posts: 2419



(Msg. 2) Posted: Thu Sep 18, 2003 12:57 am
Post subject: Re: IIS 6.0 Adding Virtual Directory Property [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

IIS6 does far more input validation as well as logical validation than
IIS5 -- check the HRESULT for the actual failure reason. So, it is very
likely that some ABO setup code will not work on IIS6, and the only solution
there is to rewrite the code properly. We are not going to loosen the IIS6
validations.

--
//David
IIS
This posting is provided "AS IS" with no warranties, and confers no rights.
//
"Bill Rowell" <Bill.Rowell.RemoveThis@silkroadtech.com> wrote in message
news:Oi$D%23QIfDHA.2352@TK2MSFTNGP09.phx.gbl...
When adding the "Path" key to a new virtual directory key in IIS 6.0, the
SetData method fails on me. The same C++ code will execute flawlessly on
Windows 2000 running IIS 5.0. Has anyone ever had this problem? Here's my
code:


METADATA_RECORD rec;

rec.dwMDIdentifier = MD_VR_PATH;
rec.dwMDAttributes = METADATA_INHERIT;
rec.dwMDUserType = IIS_MD_UT_FILE;
rec.dwMDDataType = STRING_METADATA;
rec.dwMDDataLen = (data.size() +1) * 2;
rec.pbMDData = (BYTE*)data.c_str();
rec.dwMDDataTag = 0;

HRESULT hr = pIMeta->SetData (hMetabase, RelativePath, &rec);

where data is a wstring, pIMeta is my IMSAdminBase object, hMetabase is my
metadata handle, and RelativePath is the name of the virtual directory key
I'm accessing.

Again, I'm testing this code on Windows 2003 running IIS 6.0 and it doesn't
work. It will work on Windows 2000 running IIS 5.0. Any help that can be
provided is greatly appreciated. Thanks!

Bill Rowell
SilkRoad technology
http://www.silkroadtech.com

 >> Stay informed about: IIS 6.0 Adding Virtual Directory Property 
Back to top
Login to vote
Display posts from previous:   
Related Topics:
Re-adding SMTP virtual to IIS after Lockdown ? - After running IIS Lockdown ages ago, it removed my SMTP virtual directory option from the IIS System Manager. No big deal, I am using Exchange on the box and it hasn't caused any problems. Now, I am using Mail Storage Guard to stop Exchange from sending...

virtual directory - I'm trying to add a virtual directory to my Default Web Server on my Windows 2000 box (running IIS 5.0). I can do this successfully, but I want to set the value of AccessFlags. Can someone give me an example of how to do this usin ABO and C++? I've..

Virtual Directory Issue - Dear Gurus! (WinXP Pro, VS.NET 2002(VB)) I am currently having a problem with virtual directories. When I create directories under my VS.Net application they dint appear in IIS Manager!! but if you try to create another with the same name it says that...

webshare <-> virtual directory - Hy, Creating a virual directory alias with "/", like xxxx/xxx isn't possible, right? But when i make a webshare on my Folder, i can called the alias xxxx/xxx, but it don't creates a virtual directory...? What's the difference between a webs...

IIS 4.0 issue with Virtual Directory - Hello all, I am trying to connect to a virtual directory I set up, using a mapped network drive letter or a \\<server>\<vol>, but neither of them connect. I am using Novell 5.0 as the path to connect to. I get an Event ID 101 error in t...
   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 ]