I need help urgently

Results 1 to 2 of 2

Thread: I need help urgently

  1. #1
    Paul Ellis Guest

    Default I need help urgently

    What is wrong with this code?<BR><BR>&#060;%<BR>Response.Buffer=True<BR>Re sponse.Expires=0<BR><BR>If (VarType(Application("~WC~WebClassManager")) = 0) Then<BR> Application.Lock<BR> If (VarType(Application("~WC~WebClassManager")) = 0) Then<BR> Set Application("~WC~WebClassManager") = Server.CreateObject("WebClassRuntime.WebClassManag er")<BR> End If<BR> Application.UnLock<BR>End If<BR><BR>Application("~WC~WebClassManager").Proce ssNoStateWebClass "aspBestSellersReport.aspBestSeller", _<BR> Server, _<BR> Application, _<BR> Session, _<BR> Request, _<BR> Response<BR>%&#062;<BR><BR>When I try to run it in Interdev it errors when it tries to access the &#039aspBestSellersReport.aspBestSeller&#039 even thought the DLL is register in MTS on the server running the ASP.<BR><BR>Any suggestions would be gratefully appriciated

  2. #2
    Ian STallings Guest

    Default RE: I need help urgently

    Im going to assume since the object is named webclass<BR>that it was written in VB. But If Im wrong disregard.<BR>storing Apartment threaded objects in the Application<BR>object will cause an error.<BR><BR>You can see the details here:<BR>http://msdn.microsoft.com/workshop/server/components/agility.asp<BR><BR>Storing COM objects in the Application object is usually cosidered a no-can-do.<BR><BR><BR>hope this helps, if not try to give more details about the COM object

Posting Permissions

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