Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Access Denied #2748

Closed
bbday opened this issue Nov 16, 2016 · 6 comments
Closed

Access Denied #2748

bbday opened this issue Nov 16, 2016 · 6 comments
Assignees
Milestone

Comments

@bbday
Copy link

bbday commented Nov 16, 2016

I use last app version on wpf i have this problem sometimes 1 for day when i run app on virtual server (i dont' have this issue in my local pc)

E_ACCESSDENIED
at Standard.HRESULT.ThrowIfFailed(String message)
at Standard.HRESULT.ThrowLastError()
at MahApps.Metro.Controls.GlowWindow.GetRelativeMousePosition()
at MahApps.Metro.Controls.GlowWindow.WndProc(IntPtr hwnd, Int32 msg, IntPtr wParam, IntPtr lParam, Boolean& handled)
at System.Windows.Interop.HwndSource.PublicHooksFilterMessage(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)

@punker76
Copy link
Member

@bbday It seems like you don't have the rights at this virtual server to use methods from user32.dll. What is this virtual server? I think this is not related to MahApps.

@bbday
Copy link
Author

bbday commented Nov 17, 2016

It is vultr vps

@punker76
Copy link
Member

@bbday Ok, and as I said before, it's maybe not a bug by MahApps

@bbday
Copy link
Author

bbday commented Nov 23, 2016

I found the Problem: it is with Remote Desktop if i use teamviewer i don't have this problem.

@bbday
Copy link
Author

bbday commented Jan 14, 2017

It is a ramdon problem, sometimes happen sometimes not, alwasy only with remote desktop not with teamviewer. is it possible add something try / catch inside mapapp dll to not trigger exception, cause then app crash, i wanna just ignore error.

@punker76
Copy link
Member

@bbday I will surround it with a MahAppsException

@punker76 punker76 reopened this Jan 14, 2017
@punker76 punker76 self-assigned this Jan 14, 2017
@punker76 punker76 added this to the 1.4.2 milestone Jan 30, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

No branches or pull requests

2 participants