• Industries
  • Products
  • Buy
  • Services & Support
  • Communities
  • Discussion Groups

    .NET

    Reply
    Contributor
    Posts: 11
    Registered: ‎06-21-2007

    Error Decrypting Data (Acad 2011)

    2546 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(String 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(MouseEventArgs 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.WndProc(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
    Please use plain text.
    *Tony Tanzillo

    Re: Error Decrypting Data (Acad 2011)

    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(String 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(MouseEventArgs 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.WndProc(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
    Please use plain text.
    Contributor
    Posts: 11
    Registered: ‎06-21-2007

    Re: Error Decrypting Data (Acad 2011)

    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.
    Please use plain text.
    *Tony Tanzillo

    Re: Error Decrypting Data (Acad 2011)

    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.
    Please use plain text.
    Contributor
    Posts: 11
    Registered: ‎06-21-2007

    Re: Error Decrypting Data (Acad 2011)

    04-07-2010 01:19 PM in reply to: hawesan
    Hi Tony, here is the problem dwg file
    Please use plain text.
    *Tony Tanzillo

    Re: Error Decrypting Data (Acad 2011)

    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
    Please use plain text.
    Contributor
    Posts: 11
    Registered: ‎06-21-2007

    Re: Error Decrypting Data (Acad 2011)

    04-07-2010 02:10 PM in reply to: hawesan
    Hi Tony
    Here is the code that opens the drawing attached
    Please use plain text.
    *Tony Tanzillo

    Re: Error Decrypting Data (Acad 2011)

    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
    Please use plain text.
    Contributor
    Posts: 11
    Registered: ‎06-21-2007

    Re: Error Decrypting Data (Acad 2011)

    04-07-2010 03:04 PM in reply to: hawesan
    Hi Tony

    I still get exactly the same error.
    Please use plain text.
    *Tony Tanzillo

    Re: Error Decrypting Data (Acad 2011)

    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.
    Please use plain text.