Click to See Complete Forum and Search --> : CreateObject failing on permissions
kester_holmes
Mar 5th, 2003, 10:18 AM
I have started this post in the General area but have now narrowed down the problem and probably should have posted it here anyway.
I have a ActiveX dll that I have modified and installed on our remote webserver. It runs fine on my PC. but fails under certain conditions when run on the remote webserver.
I have got it writing to a log file and the error description is:
clsMessageHandler.Update - Error : 70 : Permission denied : SMSListener
I think it was failing when trying to create a particular class within the SMSListener project which starts:
Private Sub Class_Initialize()
Set noIE = CreateObject("InternetExplorer.Application")
End Sub
I have now taken this particular class and compiled it into its own ActiveX dll. This class can now be sucessfully created from an ASP page using Server.CreateObject.
However it will not let me create it from within my main ActiveX dll due to permissions error 70.
I cant think what else to try. I have checked all the permissions i can think of. Please help!!
dzzie
Mar 6th, 2003, 02:14 PM
I cant exactly say but I can give you some ideas where to look
if you have physical access to teh webserver try running regmon when the server is tryign to load up your page, sifting through the logs you may find some registry keys are being denied read permission to teh user the server is running as
another thing might be the server user does not have read permissions on the actual dll you are calling?
i dunno, just shooting out thoughts...I have run into similar things
and they always involved me sitting down at teh web server and just tinkering exploring teh system and its running configuration.
kester_holmes
Mar 7th, 2003, 02:47 AM
OK thanks for the ideas.
I'm pretty sure I have set read & execute permissions on the dll (in all the obvious places anyway!). I thinkj the problem is in Creating the InteretExplorer.Application form within the dll. Although I have done this elsewhere without problems it seems to fail here.
RegMon is a very good idea. Although I have accesss to the web server, its really slow through VNC, but maybe I can use this to find something.
Thanks
kest
daughey
Mar 20th, 2003, 07:00 AM
If could be that the component InternetExplorer.Application is trying to do something it doesn't have permissions for during it's construction and throws the "permission denied" error back at you. (As opposed to not having permission to create the component in the first place).
Since your dll is being hosted by a webserver, it's likely to be IIS and therefore runs with LocalSystem permissions by default. LocalSystem doesn't have permissions to access network or screen.
It's possible the InternetExplorer.Application component wants to access the screen and can't.
Just an idea.
Dave
kester_holmes
Mar 20th, 2003, 09:59 AM
certainly the sort of problem that must be occurring.
Although I do have a very similar dll that uses the internet explorer object successfully.
Thanks for the advice.
I got around it by putting it in a seperate dll and calling from a seperate place in a ASP page! a bit ropey but it will do for now.
Thanks for suggestion
kester_holmes
Aug 13th, 2003, 11:52 AM
well I've finally got around to investigating this problem a ;little more thouroughly! If there's anyone around who is watching and can offer ANY advice I'd really appreciate it.
using regmon i have found a couple of errors liek the following:
32 17:44:50 inetinfo.exe:2232 OpenKey HKCR\CLSID\{0002DF01-0000-0000-C000-000000000046}\InprocServer32 NOTFOUND
33 17:44:50 inetinfo.exe:2232 OpenKey HKCR\CLSID\{0002DF01-0000-0000-C000-000000000046}\InprocServerX86 NOTFOUND
This is the classID of the Internetexplorer.application but I am not sure what the exact problem is - certainly not any permission deniied messages. There are also some similar lines relating to
svchost.exe:508 OpenKey
ANY ideas?!
Thanks
Kest
vbforums.com
Copyright Internet.com Inc., All Rights Reserved.