Unhandled Exception: System.TypeInitializationException:

Ask a Question related to ASP.NET Security, Design and Development.

  1. #1

    Default Unhandled Exception: System.TypeInitializationException:

    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

    abu Guest

  2. Similar Questions and Discussions

    1. An unhandled exception occurred during compilation using the CodeDomProvider
      Hi, Please see the following error and revert back as early as possible. I am getting this once I request for the asp.net page. Server Error in...
    2. PDDOCSAVE -throwing unhandled exception
      Hi Everybody, When i am using PDDOCSAVE in my application to secure a file using Acrobat 9.0 in VC++ i am getting unhandled exception The code...
    3. An unhandled exception has occured Unknown Server tag
      Hi, I am using ASP.Net 2.0 Beta 2. I have a class which inherits from "System.Web.UI.WebControls.Label" class. I have added that class in a...
    4. Unhandled Exception HELP!!
      I just dished out 900 bucks for Studio MX Everything else installed fine except for Fireworks MX 2004 ( the one I use the MOST ) At about 90% ...
    5. An unhandled exception of type 'System.Threading.ThreadAbortException' occurred in Unknown Module.
      Interesting problem. We have narrowed it down to the exact cause, and would like an explanation of what's going on behind the scenes. Simple bit...
  3. #2

    Default Re: Unhandled Exception: System.TypeInitializationException:

    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
    ([url]http://msdn.microsoft.com/library/en-us/cptools/html/cpgrfPermissionsViewToolPermviewexe.asp[/url]).
    The permission(s) causing the problem should be listed under the "minimal
    permission set" section of the output from this tool.

    HTH,
    Nicole



    "abu" <abuzar.79@gmail.com> wrote in message
    news:1102950125.221774.319600@c13g2000cwb.googlegr oups.com...
    > 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
    >

    Nicole Calinoiu Guest

Posting Permissions

  • You may not post new threads
  • You may post replies
  • You may not post attachments
  • You may not edit your posts

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139