|
|
|||||||||
|
|||||||||
|
|||||||||
| |
||
| |||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
#1
|
|||
|
|||
|
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 |
|
#2
|
||||
|
||||
|
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).
|
|
#3
|
|||
|
|||
|
Quote:
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. |
![]() |
| Viewing: ASP Free Forums > System Administration > Microsoft IIS > Asp network access denied |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|