Hi all, Recently I haven't been able to work in a project anymore. Everytime I open it I get System.Security.Cryptography.CryptographicException: Access denied. I can't open the project settings, I can't commit any changes, and while working on changes it will occasionally pop up. I've submited feedback through the error pop-up but each time it shows as Feedback #42 so I'm not even sure it's uploading it properly Opened this project. Here are things I've tried: - delete Settings.sqlite file - reinstall Mx 8.12.5 and open the project again - delete project and redownload The only thing that seems to help is running it as administrator but that is not a long term fix. It used to work fine before that and even the project off which it is based on in the same modeler version runs/works fine. Both projects contain the same User Certificates and haven't been changed since their addition. Other than that, I can't think of anything else. My colleagues do not have the same issue! Here is the full error System.Security.Cryptography.CryptographicException: Access denied. at System.Security.Cryptography.CryptographicException.ThrowCryptographicException(Int32 hr) at System.Security.Cryptography.X509Certificates.X509Utils._LoadCertFromBlob(Byte[] rawData, IntPtr password, UInt32 dwFlags, Boolean persistKeySet, SafeCertContextHandle& pCertCtx) at System.Security.Cryptography.X509Certificates.X509Utils.LoadCertFromBlob(Byte[] rawData, IntPtr password, UInt32 dwFlags, Boolean persistKeySet, SafeCertContextHandle pCertCtx) at System.Security.Cryptography.X509Certificates.X509Certificate.LoadCertificateFromBlob(Byte[] rawData, Object password, X509KeyStorageFlags keyStorageFlags) at System.Security.Cryptography.X509Certificates.X509Certificate2..ctor(Byte[] rawData, String password) at Mendix.Modeler.Settings.Certificate.GetCertificate() in C:\Users\Autobuild\workspace\AppStudio4.0-Build\modeler\Mendix.Modeler.Core\Settings\Certificates\Certificate.cs:line 48 at Mendix.Modeler.Settings.Certificate.get_Issuer() in C:\Users\Autobuild\workspace\AppStudio4.0-Build\modeler\Mendix.Modeler.Core\Settings\Certificates\Certificate.cs:line 30 at Mendix.Modeler.Utility.Grids.GridColumn`2.Mendix.Modeler.Utility.Grids.IGridColumn.GetValue(Object obj) in C:\Users\Autobuild\workspace\AppStudio4.0-Build\modeler\Mendix.Modeler.Utility.Gui\Grids\GridColumn.cs:line 113 at Mendix.Modeler.Utility.Grids.Grid.RefreshContents() in C:\Users\Autobuild\workspace\AppStudio4.0-Build\modeler\Mendix.Modeler.Utility.Gui\Grids\Grid.cs:line 424 at Mendix.Modeler.Utility.Grids.Grid.DoRebuild() in C:\Users\Autobuild\workspace\AppStudio4.0-Build\modeler\Mendix.Modeler.Utility.Gui\Grids\Grid.cs:line 134 at Mendix.Modeler.Utility.Grids.Grid.WithoutRaisingEventsDo(Action code) in C:\Users\Autobuild\workspace\AppStudio4.0-Build\modeler\Mendix.Modeler.Utility.Gui\Grids\Grid.cs:line 609 at Mendix.Modeler.Utility.Grids.Grid.Rebuild() in C:\Users\Autobuild\workspace\AppStudio4.0-Build\modeler\Mendix.Modeler.Utility.Gui\Grids\Grid.cs:line 99 at Mendix.Modeler.UIFramework.GridSpec`1.CreateInnerControl(UIFrameworkControl propertiesControl) in C:\Users\Autobuild\workspace\AppStudio4.0-Build\modeler\Mendix.Modeler.UIFramework\Specs\GridSpecs\GridSpec.Legacy.cs:line 42 at Mendix.Modeler.UIFramework.PropertySpec`1.CreatePropertyPanel(UIFrameworkControl propertiesControl) in C:\Users\Autobuild\workspace\AppStudio4.0-Build\modeler\Mendix.Modeler.UIFramework\Specs\ControlSpecs\PropertySpec.cs:line 206 at Mendix.Modeler.UIFramework.GroupBase.GetOrCreateControl(UIFrameworkControl propertiesControl, FormElement oldChild, FormElement child) in C:\Users\Autobuild\workspace\AppStudio4.0-Build\modeler\Mendix.Modeler.UIFramework\Specs\GroupBase.Legacy.cs:line 63 at Mendix.Modeler.UIFramework.GroupBase.FillControls(UIFrameworkControl propertiesControl, GroupBase oldGroup, Control containerControl, Int32 width, Int32 x, Int32 startY) in C:\Users\Autobuild\workspace\AppStudio4.0-Build\modeler\Mendix.Modeler.UIFramework\Specs\GroupBase.Legacy.cs:line 31 at Mendix.Modeler.UIFramework.TabControlSpec.UpdateControl(UIFrameworkControl propertiesControl, Control control, FormElement oldElement) in C:\Users\Autobuild\workspace\AppStudio4.0-Build\modeler\Mendix.Modeler.UIFramework\Specs\TabControlSpecs\TabControlSpec.Legacy.cs:line 56 at Mendix.Modeler.UIFramework.GroupBase.SetControlProperties(UIFrameworkControl propertiesControl, Int32 width, Int32 x, Control control, FormElement child, FormElement oldChild, Int32 y, Int32 tabIndex) in C:\Users\Autobuild\workspace\AppStudio4.0-Build\modeler\Mendix.Modeler.UIFramework\Specs\GroupBase.Legacy.cs:line 73 at Mendix.Modeler.UIFramework.GroupBase.FillControls(UIFrameworkControl propertiesControl, GroupBase oldGroup, Control containerControl, Int32 width, Int32 x, Int32 startY) in C:\Users\Autobuild\workspace\AppStudio4.0-Build\modeler\Mendix.Modeler.UIFramework\Specs\GroupBase.Legacy.cs:line 45 at Mendix.Modeler.UIFramework.UIFrameworkControl.RefreshContents() in C:\Users\Autobuild\workspace\AppStudio4.0-Build\modeler\Mendix.Modeler.UIFramework\Controls\UIFrameworkControl.cs:line 113 at Mendix.Modeler.UIFramework.UIFrameworkControl.Init(IUIFrameworkControlSpec formObj) in C:\Users\Autobuild\workspace\AppStudio4.0-Build\modeler\Mendix.Modeler.UIFramework\Controls\UIFrameworkControl.cs:line 67 at Mendix.Modeler.Common.ModalPropertiesEditorControl..ctor(IDocument document, IModalPropertiesSpec spec) in C:\Users\Autobuild\workspace\AppStudio4.0-Build\modeler\Mendix.Modeler.Core\Common\Editors\ModalPropertiesEditorControl.cs:line 22 at Mendix.Modeler.Settings.ProjectSettingsType.CreateEditor(ProjectSettings projectSettings) in C:\Users\Autobuild\workspace\AppStudio4.0-Build\modeler\Mendix.Modeler.Core\Settings\ProjectSettingsType.cs:line 30 at Mendix.Modeler.ModelerGui.EditDocument(IDocument document, Func`1 createEditor, FocusInfo focusInfo) in C:\Users\Autobuild\workspace\AppStudio4.0-Build\modeler\Mendix.Modeler.Core\Core\Gui\ModelerGui.cs:line 288 at Mendix.Modeler.Common.DocumentType`1.Edit(IDocument document, FocusInfo focusInfo, Boolean isNew) in C:\Users\Autobuild\workspace\AppStudio4.0-Build\modeler\Mendix.Modeler.Core\Common\Model\DocumentType.cs:line 18 at Mendix.Modeler.Common.DocumentViewManager.EditDocument(IDocument document, FocusInfo focusInfo, Boolean isNew) in C:\Users\Autobuild\workspace\AppStudio4.0-Build\modeler\Mendix.Modeler.Core\Common\Editors\DocumentViewManager.cs:line 57 at Mendix.Modeler.Projects.ProjectExplorers.DocumentNode.NodeActivated() in C:\Users\Autobuild\workspace\AppStudio4.0-Build\modeler\Mendix.Modeler.Core\Projects\ProjectExplorers\DocumentNode.cs:line 40 at System.Collections.Generic.List`1.ForEach(Action`1 action) at Mendix.Modeler.Controls.Tree.TreeViewModel`1.RaiseActivated() in C:\Users\Autobuild\workspace\AppStudio4.0-Build\modeler\Mendix.Modeler.Controls\Tree\ViewModels\TreeViewModel.cs:line 219 at Mendix.Modeler.Controls.Tree.TreeControl`1.OnActivated(Object sender, TreeGridViewItemEventArgs e) in C:\Users\Autobuild\workspace\AppStudio4.0-Build\modeler\Mendix.Modeler.Controls\Tree\Views\TreeControl.cs:line 137 at Eto.PropertyStore.TriggerEvent[T](Object key, Object sender, T args) at Eto.Forms.TreeGridView.OnActivated(TreeGridViewItemEventArgs e) at Mendix.Modeler.Controls.Tree.TreeControlMouseHandler`1.OnTreeItemMouseDoubleClick(MouseEventArgs e) in C:\Users\Autobuild\workspace\AppStudio4.0-Build\modeler\Mendix.Modeler.Controls\Tree\Views\TreeControlMouseHandler.cs:line 30 at Mendix.Modeler.Controls.Windows.Tree.DefaultTreeColumnHandler.Column.InvokeMouseEvent(Object sender, MouseEventArgs mouseEventArgs, EventHandler`1 mouseEvent) in C:\Users\Autobuild\workspace\AppStudio4.0-Build\modeler\Mendix.Modeler.Controls.Windows\Tree\DefaultTreeColumnHandler.cs:line 187 at Mendix.Modeler.Controls.Windows.Tree.DefaultTreeColumnHandler.Column.<>c__DisplayClass14_0.<BindEventHandlers>b__2(Object s, MouseButtonEventArgs e) in C:\Users\Autobuild\workspace\AppStudio4.0-Build\modeler\Mendix.Modeler.Controls.Windows\Tree\DefaultTreeColumnHandler.cs:line 170 at System.Windows.RoutedEventArgs.InvokeHandler(Delegate handler, Object target) at System.Windows.RoutedEventHandlerInfo.InvokeHandler(Object target, RoutedEventArgs routedEventArgs) at System.Windows.EventRoute.InvokeHandlersImpl(Object source, RoutedEventArgs args, Boolean reRaised) at System.Windows.UIElement.RaiseEventImpl(DependencyObject sender, RoutedEventArgs args) at System.Windows.ContentElement.RaiseTrustedEvent(RoutedEventArgs args) at System.Windows.Input.InputManager.ProcessStagingArea() at System.Windows.Input.InputManager.ProcessInput(InputEventArgs input) at System.Windows.Input.InputProviderSite.ReportInput(InputReport inputReport) at System.Windows.Interop.HwndMouseInputProvider.ReportInput(IntPtr hwnd, InputMode mode, Int32 timestamp, RawMouseActions actions, Int32 x, Int32 y, Int32 wheel) at System.Windows.Interop.HwndMouseInputProvider.FilterMessage(IntPtr hwnd, WindowMessage msg, IntPtr wParam, IntPtr lParam, Boolean& handled) at System.Windows.Interop.HwndSource.InputFilterMessage(IntPtr hwnd, Int32 msg, IntPtr wParam, IntPtr lParam, Boolean& handled) at MS.Win32.HwndWrapper.WndProc(IntPtr hwnd, Int32 msg, IntPtr wParam, IntPtr lParam, Boolean& handled) at MS.Win32.HwndSubclass.DispatcherCallbackOperation(Object o) at System.Windows.Threading.ExceptionWrapper.InternalRealCall(Delegate callback, Object args, Int32 numArgs) at System.Windows.Threading.ExceptionWrapper.TryCatchWhen(Object source, Delegate callback, Object args, Int32 numArgs, Delegate catchHandler)
asked
Jim Schoorl
1 answers
0
A colleague removed the Client and Authority certificates in the project settings and that solved it. Not sure if the issue will come back in the future unfortunately.