Unhandled Exception: System.TypeInitializationException:

A

abu

On Running a managed exe i get the following error :

Unhandled Exception: System.TypeInitializationException: The type
initializer for 'WSRMGUI.Sample.WS
RMGUIHandler' threw an exception. ---> System.IO.FileLoadException:
Failed to grant required minimum
permissions to assembly 'WindowsUIAutomation, Version=6.0.4030.0,
Culture=neutral, PublicKeyToken=e
0e73d5e60c20d3c'.
File name: 'WindowsUIAutomation, Version=6.0.4030.0, Culture=neutral,
PublicKeyToken=e0e73d5e60c20d3
c' ---> System.Security.Policy.PolicyException: Required permissions
can not be acquired.


I am trying to understand the cause of it and it would be great if
anybody could provide some insight about it
Thanks
-abu
 
N

Nicole Calinoiu

Sounds like the WindowsUIAutomation assembly contains an explicit request
for some permission that is not being granted to it under policy. To
determine which permission(s) are being requested by the assembly, you can
use permview.exe
(http://msdn.microsoft.com/library/en-us/cptools/html/cpgrfPermissionsViewToolPermviewexe.asp).
The permission(s) causing the problem should be listed under the "minimal
permission set" section of the output from this tool.

HTH,
Nicole
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,774
Messages
2,569,599
Members
45,165
Latest member
JavierBrak
Top