Ik heb op mijn XP bak met IIS5.1 code geschreven om een virtual directory te maken
Op mijn WXP bak werkt het perfect! Maar als ik het op de productie server (w2k server) probeer, dan krijg ik de 0x80005006 fout
MSDN geeft dit:
Hier klapt hij er dus uit...Op mijn WindowsXP doet hij het goed!, maar op w2k server doet hij het niet....
Wat zou er dan aan de hand kunnen zijn?
Op mijn WXP bak werkt het perfect! Maar als ik het op de productie server (w2k server) probeer, dan krijg ik de 0x80005006 fout
MSDN geeft dit:
De code die ik gebruik om een virdir toe te voegen isThe property does not exist, or it does not exist at the access location where you are attempting to set it.
For example, you cannot set the AdminServer property at the Web site level (W3SVC/1, W3SVC/1/ROOT) or the virtual directory level (W3SVC/1/ROOT/vdir); you can set it only at the World Wide Web Publishing Service (WWW service) level. You cannot set the AdminEmail property on any Web, File Transfer Protocol (FTP), or Simple Mail Transfer Protocol (SMTP) metabase key; you can set it only on a Network News Transfer Protocol (NNTP) metabase key.
See the Metabase Property Reference for the metabase property that you are trying to set. Use the Access Locations table to verify that you are accessing the property at a valid location. Or, you can open the MetaBase.xml file on your server and search for the property to see what locations it is set on.
C#:
1
2
3
4
5
| oDE = new DirectoryEntry(sIISPath); oDC = oDE.Children; oVirDir = oDC.Add(VirDirName,oDE.SchemaClassName.ToString()); oVirDir.CommitChanges(); oVirDir.Properties["Path"].Value = PhysicalPath; |
Hier klapt hij er dus uit...Op mijn WindowsXP doet hij het goed!, maar op w2k server doet hij het niet....
Wat zou er dan aan de hand kunnen zijn?