Microsoft IIS
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
 
 
User Name:
Password:
Remember me
Go Back   ASP Free ForumsSystem AdministrationMicrosoft IIS

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 ASP Free Forums Sponsor:
  #1  
Old September 10th, 2006, 03:48 PM
SimonSez07 SimonSez07 is offline
Registered User
ASP Free Newbie (0 - 499 posts)
 
Join Date: Sep 2006
Posts: 2 SimonSez07 User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 14 m 27 sec
Reputation Power: 0
Asp network access denied

i have a vbscript that i use to add/modify dns zones on my nameserver from my iis 6.0 server accross the network using wmi. (both servers are win2k3)

my script works fine when executed using cscript.exe, but when embedded into an asp page, it hangs on the following line:

Code:
Set objDNS1Service  = GetObject("winmgmts:\\ns1\Root\MicrosoftDNS")


the error message i get is:
Microsoft VBScript runtime error '800a0046'
Permission denied: 'GetObject'

i have ensured that the user credentials under which the asp site is running is set to an administrative user that exists on both servers and the passwords all match.

i have tried replacing the above code with:

Code:
Set objLocator = CreateObject("WbemScripting.SWbemLocator")
strServer = "NS1" 
strNamespace = "root\MicrosoftDNS" 
strUser = "myAdministrativeUser" 
strPassword = "myPassword"
Set obj = objLocator.ConnectServer(strServer, strNameSpace, strUser, strPassword)


the error message i get with this code is:
SWbemLocator error '80070005'
Access is denied.

i have been searching on google for several days and checked every security setting possible but my asp code will just not authenticate across the network.

any help would be reeallly appreciated.

thanks
- simon

Reply With Quote
  #2  
Old September 10th, 2006, 04:19 PM
markoc's Avatar
markoc markoc is offline
Contributing User
ASP Free Regular (2000 - 2499 posts)
 
Join Date: Nov 2003
Location: UK
Posts: 2,166 markoc User rank is Captain (20000 - 30000 Reputation Level)markoc User rank is Captain (20000 - 30000 Reputation Level)markoc User rank is Captain (20000 - 30000 Reputation Level)markoc User rank is Captain (20000 - 30000 Reputation Level)markoc User rank is Captain (20000 - 30000 Reputation Level)markoc User rank is Captain (20000 - 30000 Reputation Level)markoc User rank is Captain (20000 - 30000 Reputation Level)markoc User rank is Captain (20000 - 30000 Reputation Level)markoc User rank is Captain (20000 - 30000 Reputation Level) 
Time spent in forums: 3 Weeks 21 h 31 m 35 sec
Reputation Power: 238
Asp network access denied

check if DCOM is running on ur web server and permissions for it also
__________________
Hope this advise helps.

If so please show your appreciation by adding reputation points (click gauge image on top right of this post and score).

Reply With Quote
  #3  
Old September 11th, 2006, 12:35 PM
SimonSez07 SimonSez07 is offline
Registered User
ASP Free Newbie (0 - 499 posts)
 
Join Date: Sep 2006
Posts: 2 SimonSez07 User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 14 m 27 sec
Reputation Power: 0
Quote:
Originally Posted by markoc
check if DCOM is running on ur web server and permissions for it also


yes, dcom is functioning on both servers. i can verify all this by running my script using cscript.exe from command line.

is there any specific permissions i must set to allow wmi from asp pages? i am begining to think all this has something to do with iis attempting to authenticate network resources using the IWAM_COMPNAME account.

Reply With Quote
Reply

Viewing: ASP Free ForumsSystem AdministrationMicrosoft IIS > Asp network access denied


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 3 hosted by Hostway
Stay green...Green IT