COM Surrogate Errors

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • neilt100

    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>


  • Bruce Barker

    #2
    Re: COM Surrogate Errors

    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" <neilt100@discu ssions.microsof t.com> wrote in message
    news:5478DFC8-80B8-43E9-A0C7-77F6886F92D4@mi crosoft.com...[color=blue]
    > 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>
    >
    >[/color]


    Comment

    • lhardwick69

      #3
      Re: COM Surrogate Errors


      [






      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" <neilt100@discu ssions.microsof t.comwrote in message
      news:5478DFC8-80B8-43E9-A0C7-77F6886F92D4@mi crosoft.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
      ------------------------------------------------------------------------

      Comment

      Working...