MonoX support board

Start the conversation, ask questions and share tips and solutions with fellow developers.

Non-registered users can only browse through our support boards. Please register now if you want to post your questions. It takes a second and it is completely free. Alternatively, you can log in without registration using your credentials at major sites such as Google, Microsoft Live, OpenId, Facebook, LinkedIn or Yahoo.

WINDOWS SERVER 2012, IIS 8  (Mono Support )

Viewed 16801 time(s), 4 post(s) 5/12/2013 5:21:29 PMby www.scbn.biz
www-scbn-biz

www.scbn.biz

5/12/2013 5:21:29 PM
HELP ME!

____________________________________________________________________________________

Server Error in '/' Application.

Required permissions cannot be acquired.



Description: An unhandled exception occurred during
the execution of the current web request. Please review the stack trace
for more information about the error and where it originated in the
code.





Exception Details: System.Security.Policy.PolicyException: Required permissions cannot be acquired.



Source Error:








An unhandled exception was generated during the execution of the current
web request. Information regarding the origin and location of the
exception can be identified using the exception stack trace below.








Stack Trace:






[PolicyException: Required permissions cannot be acquired.]
System.Security.SecurityManager.ResolvePolicy(Evidence evidence, PermissionSet reqdPset, PermissionSet optPset, PermissionSet denyPset, PermissionSet& denied, Boolean checkExecutionPermission) +5213290
System.Security.SecurityManager.ResolveCasPolicy(Evidence evidence, PermissionSet reqdPset, PermissionSet optPset, PermissionSet denyPset, PermissionSet& denied, Int32& securitySpecialFlags, Boolean checkExecutionPermission) +99

[FileLoadException: Could not load file or assembly 'Microsoft.IdentityModel, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35' or one of its dependencies. Failed to grant minimum permission requests. (Exception from HRESULT: 0x80131417)]
System.Reflection.RuntimeAssembly._nLoad(AssemblyName fileName, String codeBase, Evidence assemblySecurity, RuntimeAssembly locationHint, StackCrawlMark& stackMark, IntPtr pPrivHostBinder, Boolean throwOnFileNotFound, Boolean forIntrospection, Boolean suppressSecurityChecks) +0
System.Reflection.RuntimeAssembly.InternalLoadAssemblyName(AssemblyName assemblyRef, Evidence assemblySecurity, RuntimeAssembly reqAssembly, StackCrawlMark& stackMark, IntPtr pPrivHostBinder, Boolean throwOnFileNotFound, Boolean forIntrospection, Boolean suppressSecurityChecks) +210
System.Reflection.RuntimeAssembly.InternalLoad(String assemblyString, Evidence assemblySecurity, StackCrawlMark& stackMark, IntPtr pPrivHostBinder, Boolean forIntrospection) +242
System.Reflection.RuntimeAssembly.InternalLoad(String assemblyString, Evidence assemblySecurity, StackCrawlMark& stackMark, Boolean forIntrospection) +17
System.Reflection.Assembly.Load(String assemblyString) +35
System.Web.Configuration.CompilationSection.LoadAssemblyHelper(String assemblyName, Boolean starDirective) +130

[ConfigurationErrorsException: Could not load file or assembly 'Microsoft.IdentityModel, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35' or one of its dependencies. Failed to grant minimum permission requests. (Exception from HRESULT: 0x80131417)]
System.Web.Configuration.CompilationSection.LoadAssemblyHelper(String assemblyName, Boolean starDirective) +1241
System.Web.Configuration.CompilationSection.LoadAllAssembliesFromAppDomainBinDirectory() +395
System.Web.Configuration.AssemblyInfo.get_AssemblyInternal() +117
System.Web.Compilation.BuildManager.GetReferencedAssemblies(CompilationSection compConfig) +327
System.Web.Compilation.BuildManager.CallPreStartInitMethods(String preStartInitListPath) +200
System.Web.Compilation.BuildManager.ExecutePreAppStart() +119
System.Web.Hosting.HostingEnvironment.Initialize(ApplicationManager appManager, IApplicationHost appHost, IConfigMapPathFactory configMapPathFactory, HostingEnvironmentParameters hostingParameters, PolicyLevel policyLevel, Exception appDomainCreationException) +1071

[HttpException (0x80004005): Could not load file or assembly 'Microsoft.IdentityModel, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35' or one of its dependencies. Failed to grant minimum permission requests. (Exception from HRESULT: 0x80131417)]
System.Web.HttpRuntime.FirstRequestInit(HttpContext context) +678
System.Web.HttpRuntime.EnsureFirstRequestInit(HttpContext context) +159
System.Web.HttpRuntime.ProcessRequestNotificationPrivate(IIS7WorkerRequest wr, HttpContext context) +794
This content has not been rated yet. 
35 Reputation 3 Total posts
khorvat

khorvat

5/12/2013 6:55:46 PM
This is probably related to blocked zip file. Please take a look at previous topic on this forum which will explain how to fix this issue.
This content has not been rated yet. 
15993 Reputation 2214 Total posts
khorvat

khorvat

5/13/2013 9:30:58 AM
Just an update to my answer, here is the link with more information. You can also find more information on this topic here

Can you please reassure that you downloaded latest build, that you unblocked the zip file prior extraction (please remove all files before you try to extract the unblocked zip), setup MonoX and check if your application pool is running under the account e.g. Network Service.
 
I see that you mentioned that you have Full Trust on app pool but I'm not sure if your account has adequate permissions, also this exception tends to be misleading and in most cases ends up as a blocking zip issue.


Let me know if that is the case.

Regards
This content has not been rated yet. 
15993 Reputation 2214 Total posts
www-scbn-biz

www.scbn.biz

5/14/2013 2:16:27 PM
T H A N K S ;)
This content has not been rated yet. 
35 Reputation 3 Total posts