If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

 
Go Back  dBforums > Data Access, Manipulation & Batch Languages > ASP > error '80041003'

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 11-24-03, 09:31
liorlank liorlank is offline
Registered User
 
Join Date: Nov 2003
Posts: 22
error '80041003'

I have the code:
<%
strComputer = "."
Set objWMIService = GetObject("winmgmts:\\" & strComputer & "\root\MicrosoftDNS")
Set colItems = objWMIService.ExecQuery _
("Select * from MicrosoftDNS_Zone Where Name = 'pro.co.il'")
For Each objItem in colItems
objItem.ReloadZone()
Next
%>

What is the error '80041003' on the second (+thierd) line of the code???
Reply With Quote
  #2 (permalink)  
Old 11-24-03, 18:04
rnealejr rnealejr is offline
Registered User
 
Join Date: Feb 2002
Posts: 2,232
What are you trying to return from WMI ?
Reply With Quote
  #3 (permalink)  
Old 11-25-03, 03:14
liorlank liorlank is offline
Registered User
 
Join Date: Nov 2003
Posts: 22
response

Quote:
Originally posted by rnealejr
What are you trying to return from WMI ?

I try to get to the DNS and operate Relaod on it!!!!
Reply With Quote
  #4 (permalink)  
Old 11-25-03, 14:08
rnealejr rnealejr is offline
Registered User
 
Join Date: Feb 2002
Posts: 2,232
Just to make sure - did you install the DNS provider for WMI ? This is not installed by default.
Reply With Quote
  #5 (permalink)  
Old 11-26-03, 03:27
liorlank liorlank is offline
Registered User
 
Join Date: Nov 2003
Posts: 22
yes

Quote:
Originally posted by rnealejr
Just to make sure - did you install the DNS provider for WMI ? This is not installed by default.
Yes I did.

Do I need to replace the part of:"\root\MicrosoftDNS"???
In What??
Reply With Quote
  #6 (permalink)  
Old 11-26-03, 17:37
rnealejr rnealejr is offline
Registered User
 
Join Date: Feb 2002
Posts: 2,232
Normally, the class begins with win32_ not "Select * from MicrosoftDNS_Zone". Let me see what I can find.
Reply With Quote
  #7 (permalink)  
Old 05-30-04, 09:17
Fernan82 Fernan82 is offline
Registered User
 
Join Date: Jan 2003
Posts: 6
It's been a while but in case someone else has the same problem, mostlikely iis is running under an account without enough rights. Disable annonymous access on iis and make sure you're logged in to an account with enough privileges.
Reply With Quote
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

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

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On