Message 1 of 3
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
Hello,
I'm in the process of converting my Vault apps to .net 8 but I've run into this exception and haven't been able to find anything about it.
When trying to login with the dialog box in a console app with:
Autodesk.DataManagement.Client.Framework.Vault.Forms.Library.Login(...)
I keep getting this exception thrown:
Fatal error. System.AccessViolationException: Attempted to read or write protected memory. This is often an indication that other memory is corrupt.
at DynamicClass.__get_handle(System.Drawing.Icon)
at DevExpress.Utils.Helpers.IconGuard.IsDisposedOrInvalid(System.Drawing.Icon)
at DevExpress.XtraEditors.FormIconOptions+FormIconHelper.GetIconHandleSafely(System.Drawing.Icon)
at DevExpress.XtraEditors.FormIconOptions.CheckUpdateIcon()
at DevExpress.XtraEditors.FormIconOptions.get_Icon()
at DevExpress.XtraEditors.FormIconOptions.get_UseIconImage()
at DevExpress.XtraEditors.FormIconOptions.UpdateIcon(Boolean)
at DevExpress.XtraEditors.FormIconOptions.InitializeIcon(Boolean)
at DevExpress.XtraEditors.FormIconOptions..ctor(DevExpress.XtraEditors.IFormIconOptionsOwner, Boolean)
at DevExpress.XtraEditors.FormIconOptions..ctor(DevExpress.XtraEditors.IFormIconOptionsOwner)
at DevExpress.XtraEditors.XtraForm.CreateIconOptions()
at DevExpress.XtraEditors.XtraForm..ctor()
at Autodesk.DataManagement.Client.Framework.Forms.SkinUtils.ThemedXtraForm..ctor()
at Autodesk.DataManagement.Client.Framework.Vault.Forms.Dialogs.LoginDialog..ctor(Autodesk.DataManagement.Client.Framework.Vault.Forms.ViewModels.LoginViewModel)
at Autodesk.DataManagement.Client.Framework.Vault.Forms.Library.Login2(Autodesk.DataManagement.Client.Framework.Vault.Forms.Settings.LoginSettings)
at Autodesk.DataManagement.Client.Framework.Vault.Forms.Library.Login(Autodesk.DataManagement.Client.Framework.Vault.Forms.Settings.LoginSettings)
at ConsoleApp1.Program.GetVaultConnection()
at ConsoleApp1.Program.Main(System.String[])
I've added all the requirements mentioned in this post and I've added the System.Drawing.Common package, and still nothing.
It works just fine in a WPF and WinForms, just not console app.
Is there a way to login to vault with the dialog box with a console app, or do I need to use a different method? I need to use windows Authentication to login to vault, and the dialog box has been the easiest way of doing that.
Solved! Go to Solution.