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