Ole Error 80030050
when using IMapDocument.Open method ? Visual Studio Languages , .NET Framework > Visual C# Question 0 Sign in to vote Hi everyone, I am using (Arcobject SDK .NET, arcgis) I got the errror: already exists. (Exception from HRESULT: 0x80030050 (STG_E_FILEALREADYEXISTS)) when using the method IMapDocument.Open() as below codes: if (File.Exists (strDirectory + "\\temp.mxd")) File.Delete(strDirectory + "\\temp.mxd"); System.IO.FileStream oFileStream = new System.IO.FileStream(strDirectory + "\\temp.mxd", FileMode.Create); oFileStream.Write(MyImage, 0, MyImage.Length); IMapDocument mapDoc = new MapDocumentClass(); mapDoc.Open(strDirectory + "\\temp.mxd"); // Throw exception Do you know why and how to fix this error ? Thanks and regards, Tai Edited by Taibc Friday, December 27, 2013 8:50 AM Friday, December 27, 2013 8:49 AM Reply | Quote Answers 0 Sign in to vote The FileMode.Create will automatically delete the old file so simply remove the two lines below. If you still get the error it indicates either the file is open and is being used, or you don't have permission to write/delete the file. if (File.Exists (strDirectory + "\\temp.mxd")) File.Delete(strDirectory + "\\temp.mxd"); jdweng Marked as answer by Eason_HMicrosoft contingent staff Monday, January 06, 2014 9:14 AM Friday, December 27, 2013 11:10 AM Reply | Quote Microsoft is conducting an online survey to understand your opinion of the Msdn Web site. If you choose to participate, the online survey will be presented to you when you leave the Msdn Web site.Would you like to participate? Privacy statement Dev Centers Windows Office More... Related Sites Visual Studio Visual Studio Integrate VSIP Program Microsoft .NET Microsoft Azure Connect Forums Blog Facebook LinkedIn Stack Overflow Twitter Visual Studio Events YouTube Developer Resources Code samples Documentation Downloads Products & extensions for Visual Studio REST APIs Testing tools for web developers Videos and tutorials Virtual Labs United States (English) © 2016 Microsoft Terms of Use Trademarks Privacy Statement Site Feedback
a form that was working. Now if I copy a good copy to the directory and add it to the project I can run the form, no problem. Then I compile to an executable I get the above message when it calls that https://social.msdn.microsoft.com/Forums/vstudio/en-US/b378d9f6-1b91-464c-81d1-e787465006be/error-already-exists-exception-from-hresult-0x80030050-stgefilealreadyexists-when-using?forum=csharpgeneral form. After which the form is trash I cannot even edit it. The form's Ole object is simply a picture, but I had a similar problem with a sound file. I need help :-o Thu, 01 Jul 1999 03:00:00 GMT http://computer-programming-forum.com/2-vfp/8fa809566a7b8861.htm Page 1 of 1 [ 1 post ] Relevant Pages 1. OLE error code 0x80030003: Unknown OLE status code. 2. IE 6 OLE Codes , and if folder exist 3. Error 1426 Ole error code 0x80020006: unknown name 4. How to tell if an object already exists 5. A member object with this name already exists 6. Does myform already exist? 7. A member object with this name already exists 8. Index Already Exists, Overwrite it? 9. A member object with this name already exists 10. Add one record to the table if one already exist warn 11. error 1440 ole exception error OLE object may be corrupt 12. OLE Error code when using TreeView Controls Powered by phpBB Forum Software
and it was working fine for a while, but now one particular e-mail message has caused an OLE messaging error, with an error code of 80030050. Unfortunately, this error code isn't documented on http://www.verycomputer.com/5_7b6ab8bd4bb3dbba_1.htm the MSDN CD. Anyone have any idea what this code means? Thanks, Russ Chinoy http://zhidao.baidu.com/index?word=ole+error+80030050&ri=2&from=qb&ssid=&uid=bd_1424757522_525&pu=sz%40224_240%2Cos%40&step=3&bd_page_type=1&init=middle Top Undocumented OLE Messaging Error Code by Dman » Sat, 17 May 1997 04:00:00 Don't know enough about what you're doing, but here's a small clue. WINERROR.H // // MessageId: STG_E_FILEALREADYEXISTS // // MessageText: // // %1 already exists. // #define STG_E_FILEALREADYEXISTS _HRESULT_TYPEDEF_(0x80030050L) > I've developed an app ole error which uses OLE Messaging to interface with Windows > Messaging, and it was working fine for a while, but now one particular > e-mail message has caused an OLE messaging error, with an error code of > 80030050. Unfortunately, this error code isn't documented on the MSDN > CD. Anyone have any idea what this code means? > Thanks, > Russ Chinoy Top 1. Undocumented midl error ole error 80030050 message! (MIDL2457) When porting an application to IA64, I got the following error: midl : error MIDL2457 : oleaut32.dll in build system doesn't support cross platform tlb generation I have Microsoft Platform SDK, November 2001 Edition. I didn't have that error with previous versions of the SDK. I tried on the command line, with the following: D:\>midl
21:37 速达SAAS 提示“OLE error 80030050”是什么原因呀 ? 这个问题,真不好判断,但以这个报错来说,OLE错误一般就是程序运行出错,我可以传给你一个最新版本的S... 2010-03-11 22:45 FOXMAIL收取邮件的时候提示OLE error 80030050的原因是什么? 故障原因:因为收到了一些编码异常的邮件造成, 解决方法:使用web访问邮件页面,将不能收取下来的邮件... 2012-11-20 19:23 foxmail 怎么查以前的邮件 Foxmail7.0以前版本的邮件可按照以下方法恢复:按照以下步骤恢复的邮件,均在“所有邮件”文件夹... 2015-11-21 09:15 下一页 上一页 回顶部↑ 相关搜索 ole 80030050 ole error 错误0x80030050 0x80030050 ole error 800a03ec 网页 百科 文库 图片 空间 更多>> 登录 百度 > 知道 > 搜索结果 版式:极速版 | 炫彩版 10-22 19:03