473,701 Members | 2,731 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 2315
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
1379
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
8103
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
5272
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
3273
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
2662
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
2619
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
2005
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
1716
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
2752
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
8736
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, well explore What is ONU, What Is Router, ONU & Routers main usage, and What is the difference between ONU and Router. Lets take a closer look ! Part I. Meaning of...
0
9229
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...
0
9083
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
1
8977
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
5904
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
4410
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
0
4662
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
3102
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
3
2035
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

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.