« Previous Next »

Thread: Debugging/Running VB6 Com Objects with ASP on IIS7

Last post 07-17-2009 7:05 AM by trevski. 4 replies.

Average Rating Rate It (5)

RSS

Page 1 of 1 (5 items)

Sort Posts:

  • 04-12-2007, 7:31 AM

    • Le-Thanh
    • Not Ranked
    • Joined on 04-12-2007, 11:07 AM
    • Posts 2

    Debugging/Running VB6 Com Objects with ASP on IIS7

    I am trying to copy over my ASP web apps from my old laptop to my new laptop which runs Vista (Business) with IIS7.  However I am having a bit of an issue getting the ASP web apps to work under IIS7, even though they work on IIS6 (windows XP).

    The ASP apps I am trying to run use COM objects which were written in VB6; for debugging purposes I on a Windows XP & IIS6 platform I can run the VB6 project from Visual Studio 6  (debug mode) then run the ASP app and follow Visual Studio's debug (this is obviously very useful for developing).

    I have now tried to do the same on the Vista & IIS7 laptop and get an error (I think it was 500); I simply cannot get the ASP app to interact with the VB6 component (running though Visual Studio 6 in debug mode).  (normal ASP stuff that works, including using something like CDO.Message!!!)

    I'm pretty new to Vista and IIS7, so I'm probably missing something rather basic/simple.

     Any help is gratefully appreciated.

  • 04-12-2007, 9:15 AM In reply to

    • tomkmvp
    • Top 10 Contributor
    • Joined on 03-20-2003, 10:27 AM
    • Central NJ
    • Posts 6,208
    • IIS MVPs

    Re: Debugging/Running VB6 Com Objects with ASP on IIS7

    Le-Thanh:
    I am trying to copy over my ASP web apps from my old laptop to my new laptop which runs Vista (Business) with IIS7.
    Did you ask here?
    http://forums.iis.net/1044/ShowForum.aspx
  • 04-15-2007, 1:17 PM In reply to

    • Le-Thanh
    • Not Ranked
    • Joined on 04-12-2007, 11:07 AM
    • Posts 2

    Re: Debugging/Running VB6 Com Objects with ASP on IIS7

    I think that may be a different post - but it's possibly a similar problem.

     I have been looking further into this problem - I think its a permissions issue (with Vista's security policies), but I still haven't got a solutio as yet.  Looking at the event logs, it says reports an issue with DCOM (and changing the Launch and Applications permissions) for the specified application, the problem is though the Application GUID seems to change each time I try (presumably this is due to a new instance of the code running in the debugger each time).

    Would still appreciate some help here - thanks

  • 11-16-2007, 11:32 AM In reply to

    • MagnusF
    • Not Ranked
    • Joined on 11-16-2007, 10:49 AM
    • Posts 8

    Re: Debugging/Running VB6 Com Objects with ASP on IIS7

    Any success on finding a solution?

    I cant create COM objects from classic ASP on IIS7 either and I'm banging my head here.

  • 07-17-2009, 7:05 AM In reply to

    • trevski
    • Not Ranked
    • Joined on 07-01-2009, 2:01 PM
    • Tunbridge Wells
    • Posts 2

    Re: Debugging/Running VB6 Com Objects with ASP on IIS7

    I am really struggling with this , I have got the objects running fine.

    I am running Vista64 with IIS7 and FPSE and VB6 / SP5

    Ticking "IIS intrinsic Properties" on the component in component services was the critical step,

    My component now can access the session and request objects just fine.

        Set oContext = GetObjectContext()
        Set oApplication = oContext("Application")
        Set oSession = oContext("Session")

    However when I connect to the debugger in VB6 the debugger seems to connect fine and steps through the code until the Session line and then I get a "Nothing" error.

    It would seem that we need some kind of "IIS Intrnsic Properties" switch on the debugging system ????

    Any ideas on this one, I'm pretty sure all the permissions and access rights on Component Services are correct.

    Trevor Spink

    Eonic Ltd.
Page 1 of 1 (5 items)
Microsoft Communities