Accessing VJ++ COM DLL From ASP Page gives error

Ask a Question related to ASP Components, Design and Development.

  1. #1

    Default Accessing VJ++ COM DLL From ASP Page gives error

    Hi Friends,
    I had written a VJ++ COM DLL which uses some jar files.I tried to
    access the DLL from a VB Standard Exe
    and it worked fine.But,when i did the same with a ASP Page it gave an error
    No Class Def Found.The Jar Files
    which the COM DLL needs where in the proper classpath when the DLL was
    built.Also ,VB Standard Exe was also
    executed from the Same machine.The ASP Page is also in the IIS Server on the
    same machine.But,i do not understand
    why it works with VB and not with ASP the same way.Is there any specific way
    to refer to jar files or class files which
    a VJ++ COM DLL may require while working with ASP and IIS.If anyone knows a
    solution or has has faced a similar
    problem in the past,please let me know.Any help regarding this will be
    sincerly appreciated.


    Surya Guest

  2. Similar Questions and Discussions

    1. Error accessing ColdFusionMx 6.1 Administration Page.
      Hi! I am installing ColdFusion MX 6.1 on my laptop that has Windows XP Prof. I was able to install it, but after the installation completes and...
    2. Template error code 3 + Error Accessing files..
      Hi, I am really out of any idea after searching Macromedia website and still cant find the solution. I faced the error code 3 when trying to update...
    3. Error Accessing SQL Server Reporting Svcs Management Page!
      Probably shouldn't have done so in this order, but I ran DCPromo on a SQL Reporting Services server. The /reportserver management page used to work...
    4. Accessing Values of local variables in previous page when using custom error page
      Hello, I have created a nice funky 500 - 100 error page which gives a nicer error; happily loops through and supplies querysting information, all...
    5. Error accessing page
      I've got an ASP .Net project which I built on a development machine, but when I copy the files to another computer I get the following error: ...
  3. #2

    Default Accessing VJ++ COM DLL From ASP Page gives error

    > i do not understand why it works with VB
    > and not with ASP the same way.
    ASP/VBScript can only use late-binding and the IDispatch
    interface. In your VB EXE are you using early binding?
    Create a text file on your desktop called test.vbs and
    enter into it;

    set objMyObject = CreateObject("ProgID")
    msgbox objMyObject is nothing
    set objMyObject = nothing

    Save the file and double-click it. If all is well you
    will get a message box saying "False". Or do you get an
    error message?
    Adrian Forbes - MVP Guest

  4. #3

    Default Re: Accessing VJ++ COM DLL From ASP Page gives error

    Hi Adrian,
    Thanks for your immediate response.It works fine as a vbscript
    file,meaning i get a false..But,does not work in a ASP Page.What is that i
    have
    to do so that it works in ASP.

    "Adrian Forbes - MVP" <adrian@xxxnoemailxxx.com> wrote in message
    news:0a6801c3663c$cdddc540$a501280a@phx.gbl...
    > > i do not understand why it works with VB
    > > and not with ASP the same way.
    >
    > ASP/VBScript can only use late-binding and the IDispatch
    > interface. In your VB EXE are you using early binding?
    > Create a text file on your desktop called test.vbs and
    > enter into it;
    >
    > set objMyObject = CreateObject("ProgID")
    > msgbox objMyObject is nothing
    > set objMyObject = nothing
    >
    > Save the file and double-click it. If all is well you
    > will get a message box saying "False". Or do you get an
    > error message?

    Surya Guest

  5. #4

    Default Re: Accessing VJ++ COM DLL From ASP Page gives error

    Is your site using anon access? Try logging in locally as
    your anonymous IIS account and running the VBS test script
    and see if it still works.

    To log in as the anon user right-click your Default Web in
    the IIS config util and select properties then the
    Directory Security tab. In the Anonymous access box (top
    one) click the Edit button.

    This will give you the Authentication Methods box, click
    Edit in the top one (anonymous access).

    The anon user account dialogue has two fields. The top
    one is the account IIS uses for anon access but it has a
    random password. The account should be IUS_<machine
    name>. Change the password for this user via the normal
    admin tools, then uncheck "Allow IIS to control password"
    and enter the password you changed the account to.

    Now log off and log in using your IUSR account and the
    password and try your script. When your testing is done,
    go back to the anon account properties and reselect "Allow
    IIS to control password"
    >-----Original Message-----
    >Hi Adrian,
    > Thanks for your immediate response.It works fine as a
    vbscript
    >file,meaning i get a false..But,does not work in a ASP
    Page.What is that i
    >have
    >to do so that it works in ASP.
    >
    >"Adrian Forbes - MVP" <adrian@xxxnoemailxxx.com> wrote in
    message
    >news:0a6801c3663c$cdddc540$a501280a@phx.gbl...
    >> > i do not understand why it works with VB
    >> > and not with ASP the same way.
    >>
    >> ASP/VBScript can only use late-binding and the IDispatch
    >> interface. In your VB EXE are you using early binding?
    >> Create a text file on your desktop called test.vbs and
    >> enter into it;
    >>
    >> set objMyObject = CreateObject("ProgID")
    >> msgbox objMyObject is nothing
    >> set objMyObject = nothing
    >>
    >> Save the file and double-click it. If all is well you
    >> will get a message box saying "False". Or do you get an
    >> error message?
    >
    >
    >.
    >
    Adrian Forbes - MVP Guest

Posting Permissions

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

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139