Posted on 2007-07-30
Last Modified: 2009-12-16
I'm working with an application(VS2005,IIS6,W2k3,CR8wASP).  I've ran into well documented issues regarding problems with Crystal Report 8 and errors generated when running with IIS6.0. (We have scheduled conversion of CR8 to XI).  A solution offered was to run IIS in IIS5 Isolation mode. Another solution was to create a COM+ component. Since we have other apps on the server which would benefit from IIS6.0 using COM+ w/ASP for the reporting component of this app is preferred. Here's where you'll have to pardon my ..uh..."lack of knowledge".

I've followed the instructions as to how to create the COM+ server app using CRAXDRT.dll . How do I access the methods in my ASP code (see below)?  For example,  I've created this app-StlrsRockCOMPlusApp as a server application (I've also  exported it to a  msi). Now what do I do? There seems to be an unlimited amount of info on COM+ but little or no specifics example/tutorials for the newbie like myself on how to implement it in ASP or otherwise.  Below is a portion of what I currently have.

set report = Server.CreateObject("CrystalRuntime.Application").OpenReport(reportPath & Request.QueryString("filename"), 1)

In sum,  my questions are how do I implement this new COM+ app? If I create on a developer machine would I need the msi file to intall on a server machine? How do I access methods in ASP code? Is there any additonal registrations involved? I basically need some hand-holding on this...

Thanx in advance.....
Question by:stewartchandler
    1 Comment
    LVL 4

    Accepted Solution

    Noticed this is an older question, but if you haven't gotten it already .. this is how you'd create a COM+App
    1) If you've sucessfullly created a COM app (or have a COM app), you first need to register the DLL as a COM app.  
    1.1) Do this by navigating to ControlPanel-->AdminTools-->ComponentServices.  Then expand Component Services-->Computers-->MyComputer-->Com+Applications
    1.2) Right-Click ComponentServices-->New-->Application-->InstallPrebuilt Application-->Find your MSI file
    2) The to reference it in an ASP page you'd do it just like you always would: set report = Server.CreateObject("Whatever it's named in 1.2").  Then yuo'll be able to access all it's methods as you normally would (although you may not get intellesense in all cases).

    Hope that helps

    Write Comment

    Please enter a first name

    Please enter a last name

    We will never share this with anyone.

    Featured Post

    IT, Stop Being Called Into Every Meeting

    Highfive is so simple that setting up every meeting room takes just minutes and every employee will be able to start or join a call from any room with ease. Never be called into a meeting just to get it started again. This is how video conferencing should work!

    In this article, I will show how to use the Ribbon IDs Tool Window to assign the built-in Office icons to a ribbon button.  This tool will help us to find the OfficeImageId that corresponds to our desired built-in Office icon. The tool is part of…
    Entering time in Microsoft Access can be difficult. An input mask often bothers users more than helping them and won't catch all typing errors. This article shows how to create a textbox for 24-hour time input with full validation politely catching …
    This is Part 3 in a 3-part series on Experts Exchange to discuss error handling in VBA code written for Excel. Part 1 of this series discussed basic error handling code using VBA.…
    Access reports are powerful and flexible. Learn how to create a query and then a grouped report using the wizard. Modify the report design after the wizard is done to make it look better. There will be another video to explain how to put the final p…

    761 members asked questions and received personalized solutions in the past 7 days.

    Join the community of 500,000 technology professionals and ask your questions.

    Join & Ask a Question

    Need Help in Real-Time?

    Connect with top rated Experts

    12 Experts available now in Live!

    Get 1:1 Help Now