Wiimote Project

Wiimote Projects => Wiimote Interactive Whiteboard => Topic started by: nikilas on January 21, 2008, 07:14:35 PM

Title: .NET Exception
Post by: nikilas on January 21, 2008, 07:14:35 PM
When I try to run WiimoteWhiteboard.exe, I get Exception: System.Security.Permissions.SecurityPermission, then, "Application attempted to perform an operation not allowed by the security policy."...  I don't know what to do.  Any help?
Title: Re: .NET Exception
Post by: atomriot on January 21, 2008, 07:46:03 PM
sounds like UAC (user access control) issue. Is this vista?

did you compile the app? is this from visual studio?

are you running it in debug mode or release mode? if its an express edition i think it runs default in debug mode but I'm not 100%

another thing is to step through it. set breakpoints (using F9 on a specific line) to see how far you can get and then step through with F10 until it tosses. when it throws the exception, go to a few lines before it and put a break point and then step into it with f11 as you go and see what specific line it has a problem with. then let us know
Title: Re: .NET Exception
Post by: insomnia on February 12, 2008, 05:46:41 PM
do you run the program from a network share? Because i had the same problems when i ran the program directly from my server.
Title: Re: .NET Exception
Post by: atomriot on February 12, 2008, 05:51:36 PM
i think the error you get when you run a .net app from a UNC path is something about crossthreading. i could be wrong, but thats a good call. i didnt even think about that.