Results 1 to 6 of 6

Thread: CreateObject failing on permissions

  1. #1

    Thread Starter
    Addicted Member
    Join Date
    Apr 2001
    Location
    oxford, UK
    Posts
    149

    CreateObject failing on permissions

    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!!

  2. #2
    Addicted Member
    Join Date
    Feb 2003
    Posts
    237
    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.
    Free Code, papers, tools, and more

    http://sandsprite.com

  3. #3

    Thread Starter
    Addicted Member
    Join Date
    Apr 2001
    Location
    oxford, UK
    Posts
    149
    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

  4. #4
    Junior Member
    Join Date
    Feb 2003
    Location
    UK
    Posts
    23
    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

  5. #5

    Thread Starter
    Addicted Member
    Join Date
    Apr 2001
    Location
    oxford, UK
    Posts
    149
    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

  6. #6

    Thread Starter
    Addicted Member
    Join Date
    Apr 2001
    Location
    oxford, UK
    Posts
    149
    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

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width