473,785 Members | 2,283 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

COM Surrogate Errors

Am running Win XP SP2 with Classic ASP+VB6 dll's alongside ASP.NET+C# dll's.

I keep getting the following error … ‘COM Surrogate encountered a problem
and needs to shut down’. This requires me to do an IISReset and re-start
whatever I was doing, which is extremely frustrating. Google reveals that
this is a pretty common type of error but does not point me to any kind of
solution to it. MS's knowledge base appears pretty silent on this issue.

I have just rebuilt my PC from scratch and installed mostly MS products
(save the Oracle 9.2.04 ODP) so I cannot understand what could be the cause
of this problem. So if anybody has any advice (aside from installing W2K or
W2003) that may be of help I greatly appreciate it?

Neil

Further info
=======
I have saved the conents of both the following ...
C:\DOCUME~1\b99 95730\LOCALS~1\ Temp\WER05bb.di r00\dllhost.exe .mdmp
C:\DOCUME~1\b99 95730\LOCALS~1\ Temp\WER05bb.di r00\appcompat.t xt
.... and can send on.

A restricted width extract from appcompat.txt is as follows ...

<?xml version="1.0" encoding="UTF-16"?>
<DATABASE>
<EXE NAME="SYSTEM INFO" FILTER="GRABMI_ FILTER_SYSTEM"
<MATCHING_FIL E NAME="advapi32. dll" SIZE="616960"
<MATCHING_FIL E NAME="gdi32.dll " SIZE="278016" CHE
<MATCHING_FIL E NAME="kernel32. dll" SIZE="983552"
<MATCHING_FIL E NAME="ntdll.dll " SIZE="708096" CHE
<MATCHING_FIL E NAME="ole32.dll " SIZE="1281536" CH
<MATCHING_FIL E NAME="oleaut32. dll" SIZE="553472"
<MATCHING_FIL E NAME="shell32.d ll" SIZE="8384000"
<MATCHING_FIL E NAME="user32.dl l" SIZE="577024" CH
<MATCHING_FIL E NAME="wininet.d ll" SIZE="656384" C
<MATCHING_FIL E NAME="winsock.d ll" SIZE="2864" CHE
</EXE>
</DATABASE>
Nov 19 '05 #1
2 2322
vb6 com objects are apartment model com objects. this mean all access to the
com object must be from the same thread that created it. asp.net is thread
agile (switches threads during processing), vb6 components are not supported
by default. you can set the aspcompat attribute (if a web page) or create
you own thread for calling the vb6 object.

note: .net web services do not support vb6 com objects, you must create a
controlling thread.

-- bruce (sqlwork.com)

"neilt100" <ne******@discu ssions.microsof t.com> wrote in message
news:54******** *************** ***********@mic rosoft.com...
Am running Win XP SP2 with Classic ASP+VB6 dll's alongside ASP.NET+C#
dll's.

I keep getting the following error . 'COM Surrogate encountered a problem
and needs to shut down'. This requires me to do an IISReset and re-start
whatever I was doing, which is extremely frustrating. Google reveals that
this is a pretty common type of error but does not point me to any kind of
solution to it. MS's knowledge base appears pretty silent on this issue.

I have just rebuilt my PC from scratch and installed mostly MS products
(save the Oracle 9.2.04 ODP) so I cannot understand what could be the
cause
of this problem. So if anybody has any advice (aside from installing W2K
or
W2003) that may be of help I greatly appreciate it?

Neil

Further info
=======
I have saved the conents of both the following ...
C:\DOCUME~1\b99 95730\LOCALS~1\ Temp\WER05bb.di r00\dllhost.exe .mdmp
C:\DOCUME~1\b99 95730\LOCALS~1\ Temp\WER05bb.di r00\appcompat.t xt
... and can send on.

A restricted width extract from appcompat.txt is as follows ...

<?xml version="1.0" encoding="UTF-16"?>
<DATABASE>
<EXE NAME="SYSTEM INFO" FILTER="GRABMI_ FILTER_SYSTEM"
<MATCHING_FIL E NAME="advapi32. dll" SIZE="616960"
<MATCHING_FIL E NAME="gdi32.dll " SIZE="278016" CHE
<MATCHING_FIL E NAME="kernel32. dll" SIZE="983552"
<MATCHING_FIL E NAME="ntdll.dll " SIZE="708096" CHE
<MATCHING_FIL E NAME="ole32.dll " SIZE="1281536" CH
<MATCHING_FIL E NAME="oleaut32. dll" SIZE="553472"
<MATCHING_FIL E NAME="shell32.d ll" SIZE="8384000"
<MATCHING_FIL E NAME="user32.dl l" SIZE="577024" CH
<MATCHING_FIL E NAME="wininet.d ll" SIZE="656384" C
<MATCHING_FIL E NAME="winsock.d ll" SIZE="2864" CHE
</EXE>
</DATABASE>

Nov 19 '05 #2

[


i was having this problem and formatted my pc 3 times since vista has
been released--on the forth time i was getting kind of mad and thought
about going back to vista-as i never had this problem--but my dad fixed
it for me---go to program that causes the com surrogate error to pop up
-
start--programs--find program--right click-go to
properties on the window that pops up--instead of running it as
compatable for windows xp--look toward lower part of box and run it as
administrator--click ok/apply and boom..problem fixed..if it isnt that
program its a program that deals with video..so go through and do that
with all programs that deal with video..it fixed my probleem
it never did this to me on xp but vista it did and where
vista is trying to be the most secure version ever--it requires a lot
more treaking to work right--any other questions--email me at
lhardwick69 @ frontiernet.net and if i can help i will





QUOTE]-Originally posted by Bruce Barker -
*vb6 com objects are apartment model com objects. this mean all access
to the
com object must be from the same thread that created it. asp.net is
thread
agile (switches threads during processing), vb6 components are not
supported
by default. you can set the aspcompat attribute (if a web page) or
create
you own thread for calling the vb6 object.

note: .net web services do not support vb6 com objects, you must create
a
controlling thread.

-- bruce (sqlwork.com)

"neilt100" <ne******@discu ssions.microsof t.comwrote in message
news:54******** *************** ***********@mic rosoft.com...
Am running Win XP SP2 with Classic ASP+VB6 dll's alongside
ASP.NET+C#
dll's.

I keep getting the following error . 'COM Surrogate encountered a
problem
and needs to shut down'. This requires me to do an IISReset and
re-start
whatever I was doing, which is extremely frustrating. Google reveals
that
this is a pretty common type of error but does not point me to any
kind of
solution to it. MS's knowledge base appears pretty silent on this
issue.
>
I have just rebuilt my PC from scratch and installed mostly MS
products
(save the Oracle 9.2.04 ODP) so I cannot understand what could be
the
cause
of this problem. So if anybody has any advice (aside from installing
W2K
or
W2003) that may be of help I greatly appreciate it?

Neil

Further info
=======
I have saved the conents of both the following ...
C:\DOCUME~1\b99 95730\LOCALS~1\ Temp\WER05bb.di r00\dllhost.exe .mdmp
C:\DOCUME~1\b99 95730\LOCALS~1\ Temp\WER05bb.di r00\appcompat.t xt
... and can send on.

A restricted width extract from appcompat.txt is as follows ...

<?xml version="1.0" encoding="UTF-16"?>
<DATABASE>
<EXE NAME="SYSTEM INFO" FILTER="GRABMI_ FILTER_SYSTEM"
<MATCHING_FIL E NAME="advapi32. dll" SIZE="616960"
<MATCHING_FIL E NAME="gdi32.dll " SIZE="278016" CHE
<MATCHING_FIL E NAME="kernel32. dll" SIZE="983552"
<MATCHING_FIL E NAME="ntdll.dll " SIZE="708096" CHE
<MATCHING_FIL E NAME="ole32.dll " SIZE="1281536" CH
<MATCHING_FIL E NAME="oleaut32. dll" SIZE="553472"
<MATCHING_FIL E NAME="shell32.d ll" SIZE="8384000"
<MATCHING_FIL E NAME="user32.dl l" SIZE="577024" CH
<MATCHING_FIL E NAME="wininet.d ll" SIZE="656384" C
<MATCHING_FIL E NAME="winsock.d ll" SIZE="2864" CHE
</EXE>
</DATABASE>

*


--
lhardwick69
------------------------------------------------------------------------
Posted via http://www.codecomments.com
------------------------------------------------------------------------

Mar 25 '07 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

0
1385
by: Patrick Mezenberg | last post by:
Hi all, It should be possible to let inproc COM-components live in a surrogate process (for instance in the default Dllhost.exe surrogate process, for more info see http://msdn.microsoft.com search for: "DLL Surrogates (COM)"). Somehow this "feature" does not seem to work when running inproc COM-components launched within a python environment using the win32com package (the inproc component then lives in the python.exe process). Does...
4
8107
by: DCM Fan | last post by:
{CREATE TABLEs and INSERTs follow...} Gents, I have a main table that is in ONE-MANY with many other tables. For example, if the main table is named A, there are these realtionships: A-->B A-->C A-->D
3
5279
by: Chris Mullins | last post by:
I've got a big unicode character, and i'm trying to build it into a string. The unicode character is in the range "0x10400", so it's going to require a surrogate pair. I've been through all the logic to iterate over strings that already have these pairs in them, but how do I encode this Unicode Character INTO the string? The string is UTF-8 encoded, but none of the things I've trided using the encoders seems to work right...
2
3277
by: Chris Mullins | last post by:
I've spent a bit of time over the last year trying to implement RFC 3454 (Preparation of Internationalized Strings, aka 'StringPrep'). This RFC is also a dependency for RFC 3491 (Internationalized Domain Names / IDNA) which is something that I also need to support. The problem that I've been struggling with in .NET is that of Unicode Code Points > 0xFFFF. These points are encoded into UTF8 using the Surrogate Pair encoding scheme that...
0
2665
by: neilt100 | last post by:
Am running Win XP SP2 with Classic ASP+VB6 dll's alongside ASP.NET+C# dll's. I keep getting the following error … ‘COM Surrogate encountered a problem and needs to shut down’. This requires me to do an IISReset and re-start whatever I was doing, which is extremely frustrating. Google reveals that this is a pretty common type of error but does not point me to any kind of solution to it. MS's knowledge base appears pretty silent on...
6
2626
by: guy | last post by:
if a string contains surrogate chars (i.e. Unicode characters that consiste of more than 1 char) do functions that use an indexer or a string length into the string e.g. Mid, Len work correctly? guy
3
2009
by: Sakcee | last post by:
Hi In one of the data files that I have , I am seeing these characters \xed\xa0\xa0 . They seem to break the xsl. --------------------------------------------------------------- Extra content at the end of the document XML/XSL Error: </data><data ><![CDATA[ í Pls advice ----------------------------------------------------------------
2
1722
by: JohnnyDeep | last post by:
Hi, I am creating an unique index on surrogate key column. The surrogate key is a generate number always increasing on my dimension table. The only operation on the table is insert (no update and no delete). 1- Can I specify pctfree=0 for the unique index on the surrogate key without getting page splits since I am only inserting an increasing number?
1
2758
by: Alexander Higgins | last post by:
>>Thanks for the response.... Point Taken but this is not the case. Thus, if a person writes a text file on her or his computer and does not use UNICODE to save it, the current code page is used. If this file is given to someone with some other current codepage, the file is not displayed correctly. Simply converting the file to Unicode will make the data display properly. When performing the encoding process the encoding will escape...
0
9646
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
9483
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
10346
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
1
10096
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
9956
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
0
8982
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
1
7504
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
6742
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
5514
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.