Results 1 to 8 of 8

Thread: VB DLL x Visual Interdev

  1. #1

    Thread Starter
    Junior Member
    Join Date
    May 2001
    Location
    Brazil
    Posts
    17

    VB DLL x Visual Interdev

    I'm trying to execute a VB DLL under Visual Interdev using VB Script. I have a code like this:

    Dim objUsuario
    Set objUsuario = CreateObject("XXX.User")

    I've used the same code under VB and there's no problem. But when I try to use it over Visual Interdev I got the message:

    <Permission denied: 'CreateObject'>

    On VB I have to set the reference to the Object ("Project, References"); should I do the same for VI?

    Why do I receive this message? Should I set some special kind of permission?

    Thanks.

  2. #2
    Banished Cander's Avatar
    Join Date
    Dec 2000
    Location
    Why do you care?
    Posts
    6,913
    Server.Createobject
    Stack Overflow
    See the features of Visual Studio 2010 and C# 4.0: The 10-4 show on Channel9

  3. #3
    Banished Cander's Avatar
    Join Date
    Dec 2000
    Location
    Why do you care?
    Posts
    6,913
    Server.Createobject
    Stack Overflow
    See the features of Visual Studio 2010 and C# 4.0: The 10-4 show on Channel9

  4. #4

    Thread Starter
    Junior Member
    Join Date
    May 2001
    Location
    Brazil
    Posts
    17
    I put <Server> before <CreateObject> but It still doesn't work... Now I get this error message:

    <The call to Server.CreateObject failed while checking permissions. Access is denied to this object>

    Does anybody know what is happening? It worked well under NT, but now that I'm using Windows 2000, it seems something has changed... maybe some IIS configuration... Does anybody have an idea?

  5. #5
    Frenzied Member monte96's Avatar
    Join Date
    Sep 2000
    Location
    Somewhere in AZ
    Posts
    1,379
    Check the permissions on the IIS default user..
    oOOo--oOOo
    __/\/\onte96
    oOOo--oOOo
    Senior Programmer/Analyst
    MCP
    [email protected]
    [email protected]


    Your results may vary.. some restrictions may apply.. pricing and participation may vary.. not available in all states.. professional driver closed course..quantities limited..

  6. #6

    Thread Starter
    Junior Member
    Join Date
    May 2001
    Location
    Brazil
    Posts
    17
    How can I Check the permissions on the IIS default user?

  7. #7
    Frenzied Member monte96's Avatar
    Join Date
    Sep 2000
    Location
    Somewhere in AZ
    Posts
    1,379
    Assuming your running Win2k, you open Active Directory Users & Computers and modify the security of the IUSR account that is used to access IIS services and out of process execution
    oOOo--oOOo
    __/\/\onte96
    oOOo--oOOo
    Senior Programmer/Analyst
    MCP
    [email protected]
    [email protected]


    Your results may vary.. some restrictions may apply.. pricing and participation may vary.. not available in all states.. professional driver closed course..quantities limited..

  8. #8

    Thread Starter
    Junior Member
    Join Date
    May 2001
    Location
    Brazil
    Posts
    17
    It's OK now. Thank you very much for your help. I guess I did something like this on NT last year... but I didn't remember... there is almost one year since I've worked with asp/Interdev... I guess I have a lot of things to study again...

    Thanks.

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