<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0"><channel><title><![CDATA[DCOM Aufruf - Stub Received Bad Data]]></title><description><![CDATA[<p>Ich versuche über einen DCOM Aufruf ein entferntes Visio Dokument zu öffnen.<br />
Nach dem Aufruf der &quot;CoCreateInstanceEx()&quot; erhalte ich die Meldung &quot;The stub received bad data.&quot;<br />
Die Rechte habe ich im Komponentendienst entsprechend großzügig gesetzt. Benutzer &quot;Jeder&quot; sollte Zugriff haben. Ebenso für den entsprechenden Benutzer sind alle Rechte erlaubt.<br />
Hat jemand einen Tipp zur Lösung meines Problems?</p>
<p>Ich habe WinXP SP3 installiert und kann auf dem lokalen Rechner auf Visio zugreifen. Die Fehlermeldung bezieht sich ausschliesslich bei Zugriff auf einen anderen Rechner.</p>
<pre><code class="language-cpp">COAUTHIDENTITY id;
id.User = (USHORT*)&quot;Admin&quot;;
id.Password = (USHORT*)&quot;pass&quot;;
id.Flags = SEC_WINNT_AUTH_IDENTITY_UNICODE;
id.UserLength  = wcslen(L&quot;Admin&quot;);
id.PasswordLength = wcslen(L&quot;pass&quot;);

COAUTHINFO authInfo;
authInfo.dwAuthnLevel = RPC_C_AUTHN_LEVEL_CONNECT; //NONE
authInfo.dwAuthnSvc = RPC_C_AUTHN_WINNT;
authInfo.dwAuthzSvc = RPC_C_AUTHZ_NONE;
authInfo.dwCapabilities = EOAC_NONE;
authInfo.dwImpersonationLevel = RPC_C_IMP_LEVEL_IMPERSONATE;
authInfo.pAuthIdentityData = &amp;id;
authInfo.pwszServerPrincName = NULL;

COSERVERINFO serverInfo;
serverInfo.pwszName= L&quot;\\\\192.168.0.1&quot;;
serverInfo.dwReserved1 = 0;
serverInfo.dwReserved2 = 0;
serverInfo.pAuthInfo = &amp;authInfo;

MULTI_QI mq;
mq.pIID = &amp;Visio::IID_IVApplication;
mq.pItf = pxApplication;
mq.hr = S_OK;

stc_hrLast = CoCreateInstanceEx(
  Visio::CLSID_Application,
  NULL,
  CLSCTX_ALL,
  &amp;serverInfo,
  1,
  &amp;mq);
</code></pre>
]]></description><link>https://www.c-plusplus.net/forum/topic/227893/dcom-aufruf-stub-received-bad-data</link><generator>RSS for Node</generator><lastBuildDate>Fri, 10 Apr 2026 22:36:25 GMT</lastBuildDate><atom:link href="https://www.c-plusplus.net/forum/topic/227893.rss" rel="self" type="application/rss+xml"/><pubDate>Fri, 21 Nov 2008 09:25:23 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to DCOM Aufruf - Stub Received Bad Data on Fri, 21 Nov 2008 09:29:03 GMT]]></title><description><![CDATA[<p>Ich versuche über einen DCOM Aufruf ein entferntes Visio Dokument zu öffnen.<br />
Nach dem Aufruf der &quot;CoCreateInstanceEx()&quot; erhalte ich die Meldung &quot;The stub received bad data.&quot;<br />
Die Rechte habe ich im Komponentendienst entsprechend großzügig gesetzt. Benutzer &quot;Jeder&quot; sollte Zugriff haben. Ebenso für den entsprechenden Benutzer sind alle Rechte erlaubt.<br />
Hat jemand einen Tipp zur Lösung meines Problems?</p>
<p>Ich habe WinXP SP3 installiert und kann auf dem lokalen Rechner auf Visio zugreifen. Die Fehlermeldung bezieht sich ausschliesslich bei Zugriff auf einen anderen Rechner.</p>
<pre><code class="language-cpp">COAUTHIDENTITY id;
id.User = (USHORT*)&quot;Admin&quot;;
id.Password = (USHORT*)&quot;pass&quot;;
id.Flags = SEC_WINNT_AUTH_IDENTITY_UNICODE;
id.UserLength  = wcslen(L&quot;Admin&quot;);
id.PasswordLength = wcslen(L&quot;pass&quot;);

COAUTHINFO authInfo;
authInfo.dwAuthnLevel = RPC_C_AUTHN_LEVEL_CONNECT; //NONE
authInfo.dwAuthnSvc = RPC_C_AUTHN_WINNT;
authInfo.dwAuthzSvc = RPC_C_AUTHZ_NONE;
authInfo.dwCapabilities = EOAC_NONE;
authInfo.dwImpersonationLevel = RPC_C_IMP_LEVEL_IMPERSONATE;
authInfo.pAuthIdentityData = &amp;id;
authInfo.pwszServerPrincName = NULL;

COSERVERINFO serverInfo;
serverInfo.pwszName= L&quot;\\\\192.168.0.1&quot;;
serverInfo.dwReserved1 = 0;
serverInfo.dwReserved2 = 0;
serverInfo.pAuthInfo = &amp;authInfo;

MULTI_QI mq;
mq.pIID = &amp;Visio::IID_IVApplication;
mq.pItf = pxApplication;
mq.hr = S_OK;

stc_hrLast = CoCreateInstanceEx(
  Visio::CLSID_Application,
  NULL,
  CLSCTX_ALL,
  &amp;serverInfo,
  1,
  &amp;mq);
</code></pre>
]]></description><link>https://www.c-plusplus.net/forum/post/1618153</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1618153</guid><dc:creator><![CDATA[Zickedi]]></dc:creator><pubDate>Fri, 21 Nov 2008 09:29:03 GMT</pubDate></item><item><title><![CDATA[Reply to DCOM Aufruf - Stub Received Bad Data on Fri, 21 Nov 2008 22:44:09 GMT]]></title><description><![CDATA[<p>Hört sich nach einen Marshaling-Problem an, nicht nach einem Rechte-Problem.</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1618621</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1618621</guid><dc:creator><![CDATA[hustbaer]]></dc:creator><pubDate>Fri, 21 Nov 2008 22:44:09 GMT</pubDate></item><item><title><![CDATA[Reply to DCOM Aufruf - Stub Received Bad Data on Sat, 22 Nov 2008 22:46:37 GMT]]></title><description><![CDATA[<p>Ok, und an welcher Schraube muss ich was drehen? <img
      src="https://www.c-plusplus.net/forum/plugins/nodebb-plugin-emoji/emoji/emoji-one/1f609.png?v=ab1pehoraso"
      class="not-responsive emoji emoji-emoji-one emoji--winking_face"
      title=";-)"
      alt="😉"
    /></p>
]]></description><link>https://www.c-plusplus.net/forum/post/1619115</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1619115</guid><dc:creator><![CDATA[Zickedi]]></dc:creator><pubDate>Sat, 22 Nov 2008 22:46:37 GMT</pubDate></item><item><title><![CDATA[Reply to DCOM Aufruf - Stub Received Bad Data on Sun, 23 Nov 2008 02:23:26 GMT]]></title><description><![CDATA[<p>Keine Ahnung, wenn ich mehr dazu wüsste hätte ich es dazugeschrieben. Versuch mal mehr Informationen rauszubekommen - mal Debug Viewer mitlaufen lassen, ... bzw. alles was die halt einfällt.</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1619150</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1619150</guid><dc:creator><![CDATA[hustbaer]]></dc:creator><pubDate>Sun, 23 Nov 2008 02:23:26 GMT</pubDate></item></channel></rss>