IIS
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
User Name:
Password:
Remember me
Go Back   Dev Shed ForumsSystem AdministrationIIS

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Rate Thread Display Modes
 
Unread Dev Shed Forums Sponsor:
Generate data entry and reporting .NET Web apps in minutes, straight from your database. Read our FREE whitepaper “Build Web 2.0 Applications Without Hand-Coding” Download now!
  #1  
Old November 17th, 2004, 06:17 AM
Henryz Henryz is offline
Registered User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Nov 2004
Posts: 1 Henryz User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
Question ADSI script for IIS 5.0 can not run in IIS 6.0

Hi,

The following code can work in IIS 5.0, but have error message "Invalid procedure call or argument " when running on IIS 6.0. Can somebody help me to figure it out? Thanks.

Set SiteObj = GetObject("IIS://" & Website.Computer & "/w3svc/" & Website.IISID)

' Set the Bindings we want for the Hosts. So clear them out and reset
If Me.HostCount > 0 Then
ReDim NewBindings(Me.HostCount)
For i = 0 To Me.HostCount - 1
BindingString = Website.Hosts(i).IP & ":" & Website.Hosts(i).Port & ":" & Website.Hosts(i).HostName
m_Debug.LogEvent App.EXEName, "Binding = " & BindingString, vbLogEventTypeInformation, 0
NewBindings(i) = BindingString
Next

SiteObj.ServerBindings = NewBindings

SiteObj.SetInfo

If Err.Number <> 0 Then
UpdateSite = UpdateSite & vbCrLf & "Error on Setting up Hosts: " & Err.Description
Err.Clear
End If
End If

Reply With Quote
  #2  
Old November 18th, 2004, 06:52 PM
GaneshAnekar GaneshAnekar is offline
Registered User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Sep 2004
Posts: 21 GaneshAnekar User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 44 m 57 sec
Reputation Power: 0
Smile ADSI script for IIS 5.0 can not run in IIS 6.0

Hello,

IIS 6 entirely re-architectured so old ADSI scripts might not work as in IIS6 metabase is in XML format.

Please take a look at following link:

http://www.microsoft.com/resources/documentation/IIS/6/all/techref/en-us/iisRG_ADM.mspx

Hope this helps.
Ganesh

Reply With Quote
Reply

Viewing: Dev Shed ForumsSystem AdministrationIIS > ADSI script for IIS 5.0 can not run in IIS 6.0


Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  Rate This Thread 
Rate This Thread:


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump


Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 





© 2003-2008 by Developer Shed. All rights reserved. DS Cluster 2 hosted by Hostway