.NET
Reply
Topic Options
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic to the Top
- Bookmark
- Subscribe
- Printer Friendly Page
Error Decrypting Data (Acad 2011)
Options
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Highlight
- Email to a Friend
- Report Inappropriate Content
2511 Views, 24 Replies
04-06-2010 05:12 PM
I get the following error in vb .net macro :
System.Runtime.InteropServices.COMException was unhandled by user code
ErrorCode=-2145386153
HelpLink="C:\Program Files\Autodesk\ACADM 2011\HELP\OLE_ERR.CHM#-2145386153"
Message="Error Decrypting Data"
Source="AutoCAD"
StackTrace:
at Autodesk.AutoCAD.Interop.AcadDocumentsClass.Open(S tring Name, Object ReadOnly, Object Password) at dwgdb1.addDrawings(String& typestr) in C:\Users\harrison.pe\Documents\Visual Studio 2008\Projects\GEA_DrawingDB\dwgdb1.vb:line 346 at dwgdb1.CommandButton4_Click(Object eventSender, EventArgs eventArgs) in C:\Users\harrison.pe\Documents\Visual Studio 2008\Projects\GEA_DrawingDB\dwgdb1.vb:line 557 at System.Windows.Forms.Control.OnClick(EventArgs e) at System.Windows.Forms.Button.OnMouseUp(MouseEventAr gs mevent) at System.Windows.Forms.Control.WmMouseUp(Message& m, MouseButtons button, Int32 clicks) at System.Windows.Forms.Control.WndProc(Message& m) at System.Windows.Forms.ButtonBase.WndProc(Message& m) at System.Windows.Forms.Button.WndProc(Message& m) at System.Windows.Forms.Control.ControlNativeWindow.W ndProc(Message& m) at System.Windows.Forms.NativeWindow.Callback(IntPtr hWnd, Int32 msg, IntPtr wparam, IntPtr lparam)
InnerException:
Works fine in Acad 2010 ! see attached image from visual studio debug
System = Windows 7 (64bit) Autocad Mechanical 2011
System.Runtime.InteropServices.COMException was unhandled by user code
ErrorCode=-2145386153
HelpLink="C:\Program Files\Autodesk\ACADM 2011\HELP\OLE_ERR.CHM#-2145386153"
Message="Error Decrypting Data"
Source="AutoCAD"
StackTrace:
at Autodesk.AutoCAD.Interop.AcadDocumentsClass.Open(S
InnerException:
Works fine in Acad 2010 ! see attached image from visual studio debug
System = Windows 7 (64bit) Autocad Mechanical 2011
*Tony Tanzillo
Re: Error Decrypting Data (Acad 2011)
Options
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Highlight
- Email to a Friend
- Report Inappropriate Content
04-06-2010 05:43 PM in reply to:
hawesan
Is the drawing encrypted or digitally signed?
--
http://www.caddzone.com
AcadXTabs: MDI Document Tabs for AutoCAD
Supporting AutoCAD 2000 through 2011
http://www.acadxtabs.com
Email: string.Format("{0}@{1}.com", "tonyt", "caddzone");
wrote in message news:6368203@discussion.autodesk.com...
I get the following error in vb .net macro :
System.Runtime.InteropServices.COMException was unhandled by user code
ErrorCode=-2145386153
HelpLink="C:\Program Files\Autodesk\ACADM 2011\HELP\OLE_ERR.CHM#-2145386153"
Message="Error Decrypting Data"
Source="AutoCAD"
StackTrace:
at Autodesk.AutoCAD.Interop.AcadDocumentsClass.Open(S tring Name, Object
ReadOnly, Object Password) at dwgdb1.addDrawings(String& typestr) in
C:\Users\harrison.pe\Documents\Visual Studio
2008\Projects\GEA_DrawingDB\dwgdb1.vb:line 346 at
dwgdb1.CommandButton4_Click(Object eventSender, EventArgs eventArgs) in
C:\Users\harrison.pe\Documents\Visual Studio
2008\Projects\GEA_DrawingDB\dwgdb1.vb:line 557 at
System.Windows.Forms.Control.OnClick(EventArgs e) at
System.Windows.Forms.Button.OnMouseUp(MouseEventAr gs mevent) at
System.Windows.Forms.Control.WmMouseUp(Message& m, MouseButtons button, Int32
clicks) at System.Windows.Forms.Control.WndProc(Message& m) at
System.Windows.Forms.ButtonBase.WndProc(Message& m) at
System.Windows.Forms.Button.WndProc(Message& m) at
System.Windows.Forms.Control.ControlNativeWindow.W ndProc(Message& m) at
System.Windows.Forms.NativeWindow.Callback(IntPtr hWnd, Int32 msg, IntPtr
wparam, IntPtr lparam)
InnerException:
Works fine in Acad 2010 ! see attached image from visual studio debug
System = Windows 7 (64bit) Autocad Mechanical 2011
--
http://www.caddzone.com
AcadXTabs: MDI Document Tabs for AutoCAD
Supporting AutoCAD 2000 through 2011
http://www.acadxtabs.com
Email: string.Format("{0}@{1}.com", "tonyt", "caddzone");
I get the following error in vb .net macro :
System.Runtime.InteropServices.COMException was unhandled by user code
ErrorCode=-2145386153
HelpLink="C:\Program Files\Autodesk\ACADM 2011\HELP\OLE_ERR.CHM#-2145386153"
Message="Error Decrypting Data"
Source="AutoCAD"
StackTrace:
at Autodesk.AutoCAD.Interop.AcadDocumentsClass.Open(S
ReadOnly, Object Password) at dwgdb1.addDrawings(String& typestr) in
C:\Users\harrison.pe\Documents\Visual Studio
2008\Projects\GEA_DrawingDB\dwgdb1.vb:line 346 at
dwgdb1.CommandButton4_Click(Object eventSender, EventArgs eventArgs) in
C:\Users\harrison.pe\Documents\Visual Studio
2008\Projects\GEA_DrawingDB\dwgdb1.vb:line 557 at
System.Windows.Forms.Control.OnClick(EventArgs e) at
System.Windows.Forms.Button.OnMouseUp(MouseEventAr
System.Windows.Forms.Control.WmMouseUp(Message& m, MouseButtons button, Int32
clicks) at System.Windows.Forms.Control.WndProc(Message& m) at
System.Windows.Forms.ButtonBase.WndProc(Message& m) at
System.Windows.Forms.Button.WndProc(Message& m) at
System.Windows.Forms.Control.ControlNativeWindow.W
System.Windows.Forms.NativeWindow.Callback(IntPtr hWnd, Int32 msg, IntPtr
wparam, IntPtr lparam)
InnerException:
Works fine in Acad 2010 ! see attached image from visual studio debug
System = Windows 7 (64bit) Autocad Mechanical 2011
Re: Error Decrypting Data (Acad 2011)
Options
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Highlight
- Email to a Friend
- Report Inappropriate Content
04-06-2010 05:56 PM in reply to:
hawesan
Tony - Thanks for your reply.
The drawing doesnt appear to be digitaly signed, the digital signature dialog box doesnt open up and I have it set to display in the options, but the drawing has been created in microstation and I get the following message in the command line :
Non Autodesk DWG. This DWG file was saved by a software application that was
not developed or licensed by Autodesk. Autodesk cannot guarantee the
application compatibility or integrity of this file.
The drawing doesnt appear to be digitaly signed, the digital signature dialog box doesnt open up and I have it set to display in the options, but the drawing has been created in microstation and I get the following message in the command line :
Non Autodesk DWG. This DWG file was saved by a software application that was
not developed or licensed by Autodesk. Autodesk cannot guarantee the
application compatibility or integrity of this file.
*Tony Tanzillo
Re: Error Decrypting Data (Acad 2011)
Options
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Highlight
- Email to a Friend
- Report Inappropriate Content
04-07-2010 06:12 AM in reply to:
hawesan
Well, it could be that Mr. Bass has decided to do something
to AutoCAD 2011 that could become a problem for Autodesk.
Can you post the file or email it to me?
--
http://www.caddzone.com
AcadXTabs: MDI Document Tabs for AutoCAD
Supporting AutoCAD 2000 through 2011
http://www.acadxtabs.com
Email: string.Format("{0}@{1}.com", "tonyt", "caddzone");
wrote in message news:6368195@discussion.autodesk.com...
Tony - Thanks for your reply.
The drawing doesnt appear to be digitaly signed, the digital signature dialog
box doesnt open up and I have it set to display in the options, but the drawing
has been created in microstation and I get the following message in the command
line :
Non Autodesk DWG. This DWG file was saved by a software application that was
not developed or licensed by Autodesk. Autodesk cannot guarantee the
application compatibility or integrity of this file.
to AutoCAD 2011 that could become a problem for Autodesk.
Can you post the file or email it to me?
--
http://www.caddzone.com
AcadXTabs: MDI Document Tabs for AutoCAD
Supporting AutoCAD 2000 through 2011
http://www.acadxtabs.com
Email: string.Format("{0}@{1}.com", "tonyt", "caddzone");
Tony - Thanks for your reply.
The drawing doesnt appear to be digitaly signed, the digital signature dialog
box doesnt open up and I have it set to display in the options, but the drawing
has been created in microstation and I get the following message in the command
line :
Non Autodesk DWG. This DWG file was saved by a software application that was
not developed or licensed by Autodesk. Autodesk cannot guarantee the
application compatibility or integrity of this file.
Re: Error Decrypting Data (Acad 2011)
Options
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Highlight
- Email to a Friend
- Report Inappropriate Content
04-07-2010 01:19 PM in reply to:
hawesan
Hi Tony, here is the problem dwg file
*Tony Tanzillo
Re: Error Decrypting Data (Acad 2011)
Options
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Highlight
- Email to a Friend
- Report Inappropriate Content
04-07-2010 02:00 PM in reply to:
hawesan
This could be an API change.
Can you post the code that opens the document?
--
http://www.caddzone.com
AcadXTabs: MDI Document Tabs for AutoCAD
Supporting AutoCAD 2000 through 2011
http://www.acadxtabs.com
Email: string.Format("{0}@{1}.com", "tonyt", "caddzone");
wrote in message news:6368978@discussion.autodesk.com...
Hi Tony, here is the problem dwg file
Can you post the code that opens the document?
--
http://www.caddzone.com
AcadXTabs: MDI Document Tabs for AutoCAD
Supporting AutoCAD 2000 through 2011
http://www.acadxtabs.com
Email: string.Format("{0}@{1}.com", "tonyt", "caddzone");
Hi Tony, here is the problem dwg file
Re: Error Decrypting Data (Acad 2011)
Options
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Highlight
- Email to a Friend
- Report Inappropriate Content
04-07-2010 02:10 PM in reply to:
hawesan
Hi Tony
Here is the code that opens the drawing attached
Here is the code that opens the drawing attached
*Tony Tanzillo
Re: Error Decrypting Data (Acad 2011)
Options
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Highlight
- Email to a Friend
- Report Inappropriate Content
04-07-2010 02:46 PM in reply to:
hawesan
Try changing the call to open to this:
acadApp.Documents.Open( filename, True, Type.Missing )
--
http://www.caddzone.com
AcadXTabs: MDI Document Tabs for AutoCAD
Supporting AutoCAD 2000 through 2011
http://www.acadxtabs.com
Email: string.Format("{0}@{1}.com", "tonyt", "caddzone");
wrote in message news:6369089@discussion.autodesk.com...
Hi Tony
Here is the code that opens the drawing attached
acadApp.Documents.Open( filename, True, Type.Missing )
--
http://www.caddzone.com
AcadXTabs: MDI Document Tabs for AutoCAD
Supporting AutoCAD 2000 through 2011
http://www.acadxtabs.com
Email: string.Format("{0}@{1}.com", "tonyt", "caddzone");
Hi Tony
Here is the code that opens the drawing attached
Re: Error Decrypting Data (Acad 2011)
Options
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Highlight
- Email to a Friend
- Report Inappropriate Content
04-07-2010 03:04 PM in reply to:
hawesan
Hi Tony
I still get exactly the same error.
I still get exactly the same error.
*Tony Tanzillo
Re: Error Decrypting Data (Acad 2011)
Options
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Highlight
- Email to a Friend
- Report Inappropriate Content
04-07-2010 08:58 PM in reply to:
hawesan
Do you get the same error with other files, or just
this one?
--
http://www.caddzone.com
AcadXTabs: MDI Document Tabs for AutoCAD
Supporting AutoCAD 2000 through 2011
http://www.acadxtabs.com
Email: string.Format("{0}@{1}.com", "tonyt", "caddzone");
wrote in message news:6369133@discussion.autodesk.com...
Hi Tony
I still get exactly the same error.
this one?
--
http://www.caddzone.com
AcadXTabs: MDI Document Tabs for AutoCAD
Supporting AutoCAD 2000 through 2011
http://www.acadxtabs.com
Email: string.Format("{0}@{1}.com", "tonyt", "caddzone");
Hi Tony
I still get exactly the same error.


