Question AcriveX Outlook component problem while using with LabVIEW 8.6<div class=avatar><a href="../../../en/profile/?user=Gagandeep_Singh&amp;referrer=http://social.microsoft.com/Forums/en/bookmarks/thread/4c61dcca-d7c2-4916-b9f6-a572a4a19fcd" title="Gagandeep_Singh"><img src="http://i3.social.microsoft.com/Image.avatr?size=Large&amp;user=Gagandeep_Singh&amp;id=00000000-0000-0000-0000-000000000000"></a></div><div class=messageHeader><div class=creation><span class=postedBy><a href="../../../en/profile/?user=Gagandeep_Singh&amp;referrer=http://social.microsoft.com/Forums/en/bookmarks/thread/4c61dcca-d7c2-4916-b9f6-a572a4a19fcd" title="Gagandeep_Singh">Gagandeep_Singh</a></span><span class=affiliation></span><span class=postedOn> - Posted 27 minutes ago</span></div><div class=userRating><img src="http://i1.social.microsoft.com/WebResource.axd?d=aCAxpgxGhetaNjvgrXjoNDWvG-UWNcNHZng94iOP4HAYjJP485Cu4w-U1Nvp84DCuSpoUMSA-_sygW-FmwMvIc9djCaxpKsNsH7nqcP642H6GQOreCHq_eWSNXBI4qcZQDoK1H6_c4uMUg3SbAR76lV34vdbiPRmtwjtGewguMol77bS8an1nmoEi1DS03qv0&amp;t=633707283955918177" class="icon_MedalDisabled"><img src="http://i1.social.microsoft.com/WebResource.axd?d=aCAxpgxGhetaNjvgrXjoNDWvG-UWNcNHZng94iOP4HAYjJP485Cu4w-U1Nvp84DCuSpoUMSA-_sygW-FmwMvIc9djCaxpKsNsH7nqcP642H6GQOreCHq_eWSNXBI4qcZQDoK1H6_c4uMUg3SbAR76lV34vdbiPRmtwjtGewguMol77bS8an1nmoEi1DS03qv0&amp;t=633707283955918177" class="icon_MedalDisabled"><img src="http://i1.social.microsoft.com/WebResource.axd?d=aCAxpgxGhetaNjvgrXjoNDWvG-UWNcNHZng94iOP4HAYjJP485Cu4w-U1Nvp84DCuSpoUMSA-_sygW-FmwMvIc9djCaxpKsNsH7nqcP642H6GQOreCHq_eWSNXBI4qcZQDoK1H6_c4uMUg3SbAR76lV34vdbiPRmtwjtGewguMol77bS8an1nmoEi1DS03qv0&amp;t=633707283955918177" class="icon_MedalDisabled"><img src="http://i1.social.microsoft.com/WebResource.axd?d=aCAxpgxGhetaNjvgrXjoNDWvG-UWNcNHZng94iOP4HAYjJP485Cu4w-U1Nvp84DCuSpoUMSA-_sygW-FmwMvIc9djCaxpKsNsH7nqcP642H6GQOreCHq_eWSNXBI4qcZQDoK1H6_c4uMUg3SbAR76lV34vdbiPRmtwjtGewguMol77bS8an1nmoEi1DS03qv0&amp;t=633707283955918177" class="icon_MedalDisabled"><img src="http://i1.social.microsoft.com/WebResource.axd?d=aCAxpgxGhetaNjvgrXjoNDWvG-UWNcNHZng94iOP4HAYjJP485Cu4w-U1Nvp84DCuSpoUMSA-_sygW-FmwMvIc9djCaxpKsNsH7nqcP642H6GQOreCHq_eWSNXBI4qcZQDoK1H6_c4uMUg3SbAR76lV34vdbiPRmtwjtGewguMol77bS8an1nmoEi1DS03qv0&amp;t=633707283955918177" class="icon_MedalDisabled"></div></div><div class=messageData> <p class=MsoNormal><span style="font-size:10pt;font-family:'Calibri','sans-serif'">Hi,</span></p><p class=MsoNormal><span style="font-size:10pt;font-family:'Calibri','sans-serif'"> </span> <br> <span style="font-size:10pt;font-family:'Calibri','sans-serif'">I am using LabView 8.6 version. I am facing an issue with outlook component that i am using in the code.</span> <br> <span style="font-size:10pt;font-family:'Calibri','sans-serif'">The description for the same is as follows.</span> <br> <span style="font-size:10pt;font-family:'Calibri','sans-serif'"> </span> <br>  I <span style="font-size:10pt;font-family:'Calibri','sans-serif'">use ActiveX component for outlook to send automated mails repeatedly from our LabView application. While running the application for a long time I got the following exception from the outlook component:</span> <br> <span style="font-size:10pt;font-family:'Calibri','sans-serif'"> </span> <br> <span style="font-size:10pt;font-family:'Calibri','sans-serif'">Error:-2147221223 :Exception occurred in Microsoft Office Outlook: Cannot create the e-mail message because a data file to send and receive messages cannot be found. To add a data file, such as a personal folder file, double-click the Mail icon in Windows Control Panel. in EmailCommunicationHandler.vi-&gt;DataAcquisition.vi</span> <br> <span style="font-size:10pt;font-family:'Calibri','sans-serif'"> </span> <br> <span style="font-size:10pt;font-family:'Calibri','sans-serif'">The sending of emails worked fine for first few emails and then I consistently got this error.</span> <br> <span style="font-size:10pt;font-family:'Calibri','sans-serif'">The outlook application was configured properly and we had proper data files and accounts configured for sending and receiving the emails. </span><br> <span style="font-size:10pt;font-family:'Calibri','sans-serif'"> </span> <br> <span style="font-size:10pt;font-family:'Calibri','sans-serif'">Can you kindly let me know what is the root cause of this exception and how to resolve this issue.</span> <br> <span style="font-size:10pt;font-family:'Calibri','sans-serif'"> </span> <br> <span style="font-size:10pt;font-family:'Calibri','sans-serif'">Regards</span> <br> <span style="font-size:10pt;font-family:'Calibri','sans-serif'">Gagandeep Singh</span> </p> </div>© 2009 Microsoft Corporation. All rights reserved.Wed, 18 Mar 2009 15:20:59 Z074b5cea-f06f-47a1-b3ad-4a3515c3c252http://social.microsoft.com/Forums/en-US/interopconversations/thread/074b5cea-f06f-47a1-b3ad-4a3515c3c252#074b5cea-f06f-47a1-b3ad-4a3515c3c252http://social.microsoft.com/Forums/en-US/interopconversations/thread/074b5cea-f06f-47a1-b3ad-4a3515c3c252#074b5cea-f06f-47a1-b3ad-4a3515c3c252Gagandeep_Singhhttp://social.microsoft.com/Profile/en-US/?user=Gagandeep_SinghQuestion AcriveX Outlook component problem while using with LabVIEW 8.6<div class=avatar><a href="../../../en/profile/?user=Gagandeep_Singh&amp;referrer=http://social.microsoft.com/Forums/en/bookmarks/thread/4c61dcca-d7c2-4916-b9f6-a572a4a19fcd" title="Gagandeep_Singh"><img src="http://i3.social.microsoft.com/Image.avatr?size=Large&amp;user=Gagandeep_Singh&amp;id=00000000-0000-0000-0000-000000000000"></a></div><div class=messageHeader><div class=creation><span class=postedBy><a href="../../../en/profile/?user=Gagandeep_Singh&amp;referrer=http://social.microsoft.com/Forums/en/bookmarks/thread/4c61dcca-d7c2-4916-b9f6-a572a4a19fcd" title="Gagandeep_Singh">Gagandeep_Singh</a></span><span class=affiliation></span><span class=postedOn> - Posted 27 minutes ago</span></div><div class=userRating><img src="http://i1.social.microsoft.com/WebResource.axd?d=aCAxpgxGhetaNjvgrXjoNDWvG-UWNcNHZng94iOP4HAYjJP485Cu4w-U1Nvp84DCuSpoUMSA-_sygW-FmwMvIc9djCaxpKsNsH7nqcP642H6GQOreCHq_eWSNXBI4qcZQDoK1H6_c4uMUg3SbAR76lV34vdbiPRmtwjtGewguMol77bS8an1nmoEi1DS03qv0&amp;t=633707283955918177" class="icon_MedalDisabled"><img src="http://i1.social.microsoft.com/WebResource.axd?d=aCAxpgxGhetaNjvgrXjoNDWvG-UWNcNHZng94iOP4HAYjJP485Cu4w-U1Nvp84DCuSpoUMSA-_sygW-FmwMvIc9djCaxpKsNsH7nqcP642H6GQOreCHq_eWSNXBI4qcZQDoK1H6_c4uMUg3SbAR76lV34vdbiPRmtwjtGewguMol77bS8an1nmoEi1DS03qv0&amp;t=633707283955918177" class="icon_MedalDisabled"><img src="http://i1.social.microsoft.com/WebResource.axd?d=aCAxpgxGhetaNjvgrXjoNDWvG-UWNcNHZng94iOP4HAYjJP485Cu4w-U1Nvp84DCuSpoUMSA-_sygW-FmwMvIc9djCaxpKsNsH7nqcP642H6GQOreCHq_eWSNXBI4qcZQDoK1H6_c4uMUg3SbAR76lV34vdbiPRmtwjtGewguMol77bS8an1nmoEi1DS03qv0&amp;t=633707283955918177" class="icon_MedalDisabled"><img src="http://i1.social.microsoft.com/WebResource.axd?d=aCAxpgxGhetaNjvgrXjoNDWvG-UWNcNHZng94iOP4HAYjJP485Cu4w-U1Nvp84DCuSpoUMSA-_sygW-FmwMvIc9djCaxpKsNsH7nqcP642H6GQOreCHq_eWSNXBI4qcZQDoK1H6_c4uMUg3SbAR76lV34vdbiPRmtwjtGewguMol77bS8an1nmoEi1DS03qv0&amp;t=633707283955918177" class="icon_MedalDisabled"><img src="http://i1.social.microsoft.com/WebResource.axd?d=aCAxpgxGhetaNjvgrXjoNDWvG-UWNcNHZng94iOP4HAYjJP485Cu4w-U1Nvp84DCuSpoUMSA-_sygW-FmwMvIc9djCaxpKsNsH7nqcP642H6GQOreCHq_eWSNXBI4qcZQDoK1H6_c4uMUg3SbAR76lV34vdbiPRmtwjtGewguMol77bS8an1nmoEi1DS03qv0&amp;t=633707283955918177" class="icon_MedalDisabled"></div></div><div class=messageData> <p class=MsoNormal><span style="font-size:10pt;font-family:'Calibri','sans-serif'">Hi,</span></p><p class=MsoNormal><span style="font-size:10pt;font-family:'Calibri','sans-serif'"> </span> <br> <span style="font-size:10pt;font-family:'Calibri','sans-serif'">I am using LabView 8.6 version. I am facing an issue with outlook component that i am using in the code.</span> <br> <span style="font-size:10pt;font-family:'Calibri','sans-serif'">The description for the same is as follows.</span> <br> <span style="font-size:10pt;font-family:'Calibri','sans-serif'"> </span> <br>  I <span style="font-size:10pt;font-family:'Calibri','sans-serif'">use ActiveX component for outlook to send automated mails repeatedly from our LabView application. While running the application for a long time I got the following exception from the outlook component:</span> <br> <span style="font-size:10pt;font-family:'Calibri','sans-serif'"> </span> <br> <span style="font-size:10pt;font-family:'Calibri','sans-serif'">Error:-2147221223 :Exception occurred in Microsoft Office Outlook: Cannot create the e-mail message because a data file to send and receive messages cannot be found. To add a data file, such as a personal folder file, double-click the Mail icon in Windows Control Panel. in EmailCommunicationHandler.vi-&gt;DataAcquisition.vi</span> <br> <span style="font-size:10pt;font-family:'Calibri','sans-serif'"> </span> <br> <span style="font-size:10pt;font-family:'Calibri','sans-serif'">The sending of emails worked fine for first few emails and then I consistently got this error.</span> <br> <span style="font-size:10pt;font-family:'Calibri','sans-serif'">The outlook application was configured properly and we had proper data files and accounts configured for sending and receiving the emails. </span><br> <span style="font-size:10pt;font-family:'Calibri','sans-serif'"> </span> <br> <span style="font-size:10pt;font-family:'Calibri','sans-serif'">Can you kindly let me know what is the root cause of this exception and how to resolve this issue.</span> <br> <span style="font-size:10pt;font-family:'Calibri','sans-serif'"> </span> <br> <span style="font-size:10pt;font-family:'Calibri','sans-serif'">Regards</span> <br> <span style="font-size:10pt;font-family:'Calibri','sans-serif'">Gagandeep Singh</span> </p> </div>Tue, 10 Mar 2009 09:33:20 Z2009-03-10T09:33:20Zhttp://social.microsoft.com/Forums/en-US/interopconversations/thread/074b5cea-f06f-47a1-b3ad-4a3515c3c252#e39cb3e1-15fd-44c9-9a2e-756efc95b4d4http://social.microsoft.com/Forums/en-US/interopconversations/thread/074b5cea-f06f-47a1-b3ad-4a3515c3c252#e39cb3e1-15fd-44c9-9a2e-756efc95b4d4Edgar A Olougounahttp://social.microsoft.com/Profile/en-US/?user=Edgar%20A%20OlougounaQuestion AcriveX Outlook component problem while using with LabVIEW 8.6Hi, <p>This forum is for software developers who are using the Open Protocols Specifications documentation. <br>We assist them in developing systems, services, and applications that are interoperable with Microsoft Products. <br>The Open Protocol Specifications can be found at: <a href="http://msdn2.microsoft.com/en-us/library/cc203350.aspx">http://msdn2.microsoft.com/en-us/library/cc203350.aspx</a>. <br>Since your post does not appear to be related to the Open Protocols Specifications documentation set, I suggest the following:</p> <p>FAQ on Outlook solutions<br><a href="http://support.microsoft.com/default.aspx/kb/146636">http://support.microsoft.com/default.aspx/kb/146636</a></p> <p>Blog about COM technology.<br><a href="http://blogs.msdn.com/andreww/archive/2008/11/24/using-managed-controls-as-activex-controls.aspx">http://blogs.msdn.com/andreww/archive/2008/11/24/using-managed-controls-as-activex-controls.aspx</a></p> <p>Discussions in Office Developer General<br><a href="http://www.microsoft.com/office/community/en-us/default.mspx?dg=microsoft.public.office.developer.officedev.other&amp;lang=en&amp;cr=US">http://www.microsoft.com/office/community/en-us/default.mspx?dg=microsoft.public.office.developer.officedev.other&amp;lang=en&amp;cr=US</a></p> <p>You should also search the forums in case someone has already asked a similar question.</p> <p>MSDN forums<br><a href="http://social.msdn.microsoft.com/Forums/en-US/categories/">http://social.msdn.microsoft.com/Forums/en-US/categories/</a></p> <p>TechNet forums<br><a href="http://forums.microsoft.com/TechNet/default.aspx?SiteID=17">http://forums.microsoft.com/TechNet/default.aspx?SiteID=17</a></p> <p>Microsoft Newsgroups<br><a href="http://www.microsoft.com/communities/newsgroups/en-us/default.aspx">http://www.microsoft.com/communities/newsgroups/en-us/default.aspx</a></p> <p>Regards,<br>Edgar<br></p>Tue, 10 Mar 2009 12:50:21 Z2009-03-18T15:20:56Z