Wrox Programmer Forums
|
Classic ASP Basics For beginner programmers starting with "classic" ASP 3, pre-".NET." NOT for ASP.NET 1.0, 1.1, or 2.0
Welcome to the p2p.wrox.com Forums.

You are currently viewing the Classic ASP Basics section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old April 18th, 2005, 04:42 AM
Friend of Wrox
 
Join Date: Jan 2005
Posts: 1,525
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via ICQ to crmpicco Send a message via AIM to crmpicco Send a message via MSN to crmpicco Send a message via Yahoo to crmpicco
Default COM Surrogate

COM Surrogate has encountered a problem and needs to close. We are sorry for the inconvenience.


What does this mean

www.crmpicco.co.uk
www.crmpicco.co.uk.tt
www.milklemonadechocolate.uk.tt
www.griswolds.uk.tt
__________________
_______________________
Ayrshire Minis - a Mini E-Community
http://www.ayrshireminis.com
http://www.crmpicco.co.uk
 
Old April 18th, 2005, 06:45 PM
Friend of Wrox
 
Join Date: Jan 2004
Posts: 1,870
Thanks: 12
Thanked 20 Times in 20 Posts
Send a message via AIM to mat41
Default

I have come accross this, never figured it out why. What I believe is a related error I get once in a blue moon:
'The RPC server is unavailable'

There is one difference. Your error is windows generated, my one is generated in the browser. Interested to hear what feedback you get on this one. I have posted this in the past and recieved no feedback.

Wind is your friend
Matt
 
Old May 10th, 2005, 10:01 AM
Registered User
 
Join Date: May 2005
Posts: 3
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Quote:
quote:Originally posted by crmpicco
 COM Surrogate has encountered a problem and needs to close. We are sorry for the inconvenience.


What does this mean

www.crmpicco.co.uk
www.crmpicco.co.uk.tt
www.milklemonadechocolate.uk.tt
www.griswolds.uk.tt
 
Old May 10th, 2005, 10:17 AM
Registered User
 
Join Date: May 2005
Posts: 3
Thanks: 0
Thanked 0 Times in 0 Posts
Default

I have solved this problem, at least in my environment. Using VC++ 6.0, I used ATL to write a general COM+ server that returns pointers to various other ATL components that manage enumerations & collections.

I think of these other components as 'back-end' severs, which build the enumerations & collections from data stored within SQL-Server. And these components use ATL OLE-DB consumer templates to access SQL-Server.

One of my interfaces has a method that passes a VARIANT array to the server component, where the data is then saved within SQL-Server. It's this method that triggered the 'COM Surrogate has encountered a problem' message. Once I replaced the ATL wiz-generated db.Open(...)with db.OpenWithServiceComponents(...), in OpenDataSource method, the problem went away. Dunno if it's related, but I'm using a VC++ 6.0 MDI client.






 
Old May 10th, 2005, 06:37 PM
Friend of Wrox
 
Join Date: Jan 2004
Posts: 1,870
Thanks: 12
Thanked 20 Times in 20 Posts
Send a message via AIM to mat41
Default

mmmmm - I am still not clear why this error occurs. As I said it comes around less often that a blue moon. So much so its not a problem that needs to be solved, but one I would like to find out why...

Wind is your friend
Matt
 
Old May 11th, 2005, 06:51 AM
Friend of Wrox
 
Join Date: Jan 2005
Posts: 1,525
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via ICQ to crmpicco Send a message via AIM to crmpicco Send a message via MSN to crmpicco Send a message via Yahoo to crmpicco
Default

whats ATL?

www.crmpicco.co.uk
www.crmpicco.co.uk.tt
www.milklemonadechocolate.uk.tt
www.griswolds.uk.tt
www.piccosmini.co.uk.tt
www.morton.uk.tt
 
Old May 11th, 2005, 01:21 PM
Registered User
 
Join Date: May 2005
Posts: 3
Thanks: 0
Thanked 0 Times in 0 Posts
Default

ATL (part of VC++) is Active Template Library and is used to build lite-weight components for use by various clients. Typically these components contain the business logic / data access tiers for an application. ATL is the library of choice for building components with VC++ because it is streamlined not to include user-interface baggage that tends to bloat up a component. Most back-end components don't need a UI and are written to be fault-tolerant, passing back all error situations back to the calling client. I never want a component to crash on me; always return control back to the client.

I usually write my components to be language-neutral, such that both web, VC++, and VB clients can use it's methods. This calls for dual interfaces.

 
Old May 12th, 2005, 09:33 AM
Friend of Wrox
 
Join Date: Jun 2003
Posts: 1,212
Thanks: 0
Thanked 1 Time in 1 Post
Default

Quote:
quote:COM Surrogate has encountered a problem and needs to close. We are sorry for the inconvenience.

What does this mean
For ASP pages the COM surrogate is DLLHOST.EXE. So this basically means that a component which you used on your page (using Server.CreateObject) has crashed so badly that its taken down DLLHOST too. You will find more info in the event log, but the error message is so vague that its very difficult to track down the exact cause.





Similar Threads
Thread Thread Starter Forum Replies Last Post
Surrogate key ssaranam SQL Server 2005 0 January 10th, 2008 03:52 AM
Surrogate ssaranam SQL Server 2005 1 December 14th, 2007 02:32 AM
"Found a low surrogate char without a preceding hi rosalynb VS.NET 2002/2003 6 May 18th, 2004 06:48 PM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.