|
|
New installation - Failed to grant minimum permission requests
Last post 06-14-2010, 9:31 AM by MarkWing. 25 replies.
-
02-21-2010, 2:51 PM |
|
-
coops1979
-
-
-
Joined on 02-21-2010
-
-
Posts 1
-
-
|
New installation - Failed to grant minimum permission requests
Hi,
I've installed gemini on a 2008 server 64bit machine and can't get past this error
: Could not load file or assembly 'AntiXssLibrary, Version=3.1.3524.16873, Culture=neutral, PublicKeyToken=d127efab8a9c114f' or one of its dependencies. Failed to grant minimum permission requests. (Exception from HRESULT: 0x80131417)
Not sure if it's a 64bit issue or a directory permissions issue but I've set the app pool user to have full access to the directory,
Any pointers would be great,
Thanks
|
|
-
-
02-25-2010, 2:01 AM |
|
-
nemcaninz
-
-
-
Joined on 02-25-2010
-
-
Posts 9
-
-
|
Re: New installation - Failed to grant minimum permission requests
I have exactly the same problem. Hosted on GoDaddy. I'm not sure what to do. I'm not sure I can change App Pool to 32bit and change trust level.
|
|
-
02-25-2010, 10:26 AM |
|
-
HarveyKandola
-
-
-
Joined on 01-04-2006
-
UK
-
Posts 646
-
-
|
Re: New installation - Failed to grant minimum permission requests
See attached DLL -- drop this into the Gemini\bin folder and see if it fixes your issues. Ensure you backup the current Antixss DLL before replacing with the attached! Let us know how you get on...
Harvey Kandola CounterSoft™
|
|
-
02-25-2010, 12:14 PM |
|
-
nemcaninz
-
-
-
Joined on 02-25-2010
-
-
Posts 9
-
-
|
Re: New installation - Failed to grant minimum permission requests
Hi Harvey,
Thank you for a prompt response. Unfortunately DLL file you attached didn't helped. I'm still getting same error message. Do you have any other idea?
Regards
|
|
-
02-25-2010, 1:13 PM |
|
-
HarveyKandola
-
-
-
Joined on 01-04-2006
-
UK
-
Posts 646
-
-
|
Re: New installation - Failed to grant minimum permission requests
Try the attached... Thanks for your patience.
Harvey Kandola CounterSoft™
|
|
-
02-25-2010, 1:28 PM |
|
-
nemcaninz
-
-
-
Joined on 02-25-2010
-
-
Posts 9
-
-
|
Re: New installation - Failed to grant minimum permission requests
Hi Harvey,
Thank you for your efort.
I'm still getting same error, this is exact error message, I hope it's going to help:
Server Error in '/gemini/web' 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) +7602611
System.Security.SecurityManager.ResolvePolicy(Evidence evidence, PermissionSet reqdPset, PermissionSet optPset, PermissionSet denyPset, PermissionSet& denied, Int32& securitySpecialFlags, Boolean checkExecutionPermission) +57
[FileLoadException: Could not load file or assembly 'AntiXssLibrary, Version=3.1.3524.16873, Culture=neutral, PublicKeyToken=d127efab8a9c114f' or one of its dependencies. Failed to grant minimum permission requests. (Exception from HRESULT: 0x80131417)]
System.Reflection.Assembly._nLoad(AssemblyName fileName, String codeBase, Evidence assemblySecurity, Assembly locationHint, StackCrawlMark& stackMark, Boolean throwOnFileNotFound, Boolean forIntrospection) +0
System.Reflection.Assembly.nLoad(AssemblyName fileName, String codeBase, Evidence assemblySecurity, Assembly locationHint, StackCrawlMark& stackMark, Boolean throwOnFileNotFound, Boolean forIntrospection) +43
System.Reflection.Assembly.InternalLoad(AssemblyName assemblyRef, Evidence assemblySecurity, StackCrawlMark& stackMark, Boolean forIntrospection) +127
System.Reflection.Assembly.InternalLoad(String assemblyString, Evidence assemblySecurity, StackCrawlMark& stackMark, Boolean forIntrospection) +142
System.Reflection.Assembly.Load(String assemblyString) +28
System.Web.Configuration.CompilationSection.LoadAssemblyHelper(String assemblyName, Boolean starDirective) +46
[ConfigurationErrorsException: Could not load file or assembly 'AntiXssLibrary, Version=3.1.3524.16873, Culture=neutral, PublicKeyToken=d127efab8a9c114f' or one of its dependencies. Failed to grant minimum permission requests. (Exception from HRESULT: 0x80131417)]
System.Web.Configuration.CompilationSection.LoadAssemblyHelper(String assemblyName, Boolean starDirective) +613
System.Web.Configuration.CompilationSection.LoadAllAssembliesFromAppDomainBinDirectory() +203
System.Web.Configuration.CompilationSection.LoadAssembly(AssemblyInfo ai) +105
System.Web.Compilation.BuildManager.GetReferencedAssemblies(CompilationSection compConfig) +178
System.Web.Compilation.BuildProvidersCompiler..ctor(VirtualPath configPath, Boolean supportLocalization, String outputAssemblyName) +54
System.Web.Compilation.ApplicationBuildProvider.GetGlobalAsaxBuildResult(Boolean isPrecompiledApp) +232
System.Web.Compilation.BuildManager.CompileGlobalAsax() +52
System.Web.Compilation.BuildManager.EnsureTopLevelFilesCompiled() +337
[HttpException (0x80004005): Could not load file or assembly 'AntiXssLibrary, Version=3.1.3524.16873, Culture=neutral, PublicKeyToken=d127efab8a9c114f' or one of its dependencies. Failed to grant minimum permission requests. (Exception from HRESULT: 0x80131417)]
System.Web.Compilation.BuildManager.ReportTopLevelCompilationException() +58
System.Web.Compilation.BuildManager.EnsureTopLevelFilesCompiled() +512
System.Web.Hosting.HostingEnvironment.Initialize(ApplicationManager appManager, IApplicationHost appHost, IConfigMapPathFactory configMapPathFactory, HostingEnvironmentParameters hostingParameters) +729
[HttpException (0x80004005): Could not load file or assembly 'AntiXssLibrary, Version=3.1.3524.16873, Culture=neutral, PublicKeyToken=d127efab8a9c114f' or one of its dependencies. Failed to grant minimum permission requests. (Exception from HRESULT: 0x80131417)]
System.Web.HttpRuntime.FirstRequestInit(HttpContext context) +8895375
System.Web.HttpRuntime.EnsureFirstRequestInit(HttpContext context) +85
System.Web.HttpRuntime.ProcessRequestNotificationPrivate(IIS7WorkerRequest wr, HttpContext context) +333
|
Version Information: Microsoft .NET Framework Version:2.0.50727.3603; ASP.NET Version:2.0.50727.4049
|
|
-
02-25-2010, 2:16 PM |
|
-
02-25-2010, 2:32 PM |
|
-
nemcaninz
-
-
-
Joined on 02-25-2010
-
-
Posts 9
-
-
|
Re: New installation - Failed to grant minimum permission requests
WOW, that really worked :). Nice job. The problem is that now I have same error just for different library: [FileLoadException: Could not load file or assembly 'System.Web.DataVisualization, 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.Assembly._nLoad(AssemblyName fileName, String codeBase, Evidence assemblySecurity, Assembly locationHint, StackCrawlMark& stackMark, Boolean throwOnFileNotFound, Boolean forIntrospection) +0 System.Reflection.Assembly.nLoad(AssemblyName fileName, String codeBase, Evidence assemblySecurity, Assembly locationHint, StackCrawlMark& stackMark, Boolean throwOnFileNotFound, Boolean forIntrospection) +43 System.Reflection.Assembly.InternalLoad(AssemblyName assemblyRef, Evidence assemblySecurity, StackCrawlMark& stackMark, Boolean forIntrospection) +127 System.Reflection.Assembly.InternalLoad(String assemblyString, Evidence assemblySecurity, StackCrawlMark& stackMark, Boolean forIntrospection) +142 System.Reflection.Assembly.Load(String assemblyString) +28 System.Web.Configuration.CompilationSection.LoadAssemblyHelper(String assemblyName, Boolean starDirective) +46
|
|
-
-
02-25-2010, 2:49 PM |
|
-
nemcaninz
-
-
-
Joined on 02-25-2010
-
-
Posts 9
-
-
|
Re: New installation - Failed to grant minimum permission requests
Yeah, I think you're right. Is there a way to disable charting in Gemini project? I don't really need that feature.
|
|
-
-
02-25-2010, 4:53 PM |
|
-
nemcaninz
-
-
-
Joined on 02-25-2010
-
-
Posts 9
-
-
|
Re: New installation - Failed to grant minimum permission requests
I think I managed to disable charting feature but now I have a problem with Gemini library. [SecurityException: Request for the permission of type 'System.Security.Permissions.ReflectionPermission, mscorlib, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089' failed.] System.Security.CodeAccessSecurityEngine.Check(Object demand, StackCrawlMark& stackMark, Boolean isPermSet) +0 System.Security.CodeAccessPermission.Demand() +58 System.Reflection.Emit.DynamicMethod.PerformSecurityCheck(Type owner, StackCrawlMark& stackMark, Boolean skipVisibility) +160 System.Reflection.Emit.DynamicMethod..ctor(String name, Type returnType, Type[] parameterTypes, Type owner, Boolean skipVisibility) +40 NHibernate.Bytecode.Lightweight.ReflectionOptimizer.CreateDynamicMethod(Type returnType, Type[] argumentTypes) +108 NHibernate.Bytecode.Lightweight.ReflectionOptimizer.GenerateGetPropertyValuesMethod(IGetter[] getters) +93 NHibernate.Bytecode.Lightweight.ReflectionOptimizer..ctor(Type mappedType, IGetter[] getters, ISetter[] setters) +67 NHibernate.Bytecode.Lightweight.BytecodeProviderImpl.GetReflectionOptimizer(Type mappedClass, IGetter[] getters, ISetter[] setters) +33 NHibernate.Tuple.Component.PocoComponentTuplizer..ctor(Component component) +146 NHibernate.Tuple.Component.ComponentEntityModeToTuplizerMapping..ctor(Component component) +282 NHibernate.Tuple.Component.ComponentMetamodel..ctor(Component component) +296 NHibernate.Mapping.Component.BuildType() +28 NHibernate.Mapping.Component.get_Type() +16 NHibernate.Mapping.SimpleValue.IsValid(IMapping mapping) +26 NHibernate.Mapping.RootClass.Validate(IMapping mapping) +41 NHibernate.Cfg.Configuration.ValidateEntities() +140 NHibernate.Cfg.Configuration.Validate() +13 NHibernate.Cfg.Configuration.BuildSessionFactory() +31 CounterSoft.Gemini.DataProvider.x73a34067f4cd229a..cctor() +159
|
|
-
02-25-2010, 4:58 PM |
|
-
MarkWing
-
-
-
Joined on 01-08-2006
-
-
Posts 2,833
-
-
|
Re: New installation - Failed to grant minimum permission requests
Please try and add the line in bold to the web.config file: <hibernate-configuration xmlns="urn:nhibernate-configuration-2.2"> <reflection-optimizer use="false"/>
|
|
-
02-25-2010, 5:11 PM |
|
-
nemcaninz
-
-
-
Joined on 02-25-2010
-
-
Posts 9
-
-
|
Re: New installation - Failed to grant minimum permission requests
Great :). That really helped. Every time you post a response I'm one step closer to make this thing work :). Now I have this exception: [SecurityException: That assembly does not allow partially trusted callers.] CounterSoft.Gemini.Presenter.Base.BasePage.OnPreRender(EventArgs e) +0 System.Web.UI.Control.PreRenderRecursiveInternal() +80 System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +6785 System.Web.UI.Page.ProcessRequest(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +242 System.Web.UI.Page.ProcessRequest() +80 System.Web.UI.Page.ProcessRequestWithNoAssert(HttpContext context) +21 System.Web.UI.Page.ProcessRequest(HttpContext context) +49 ASP.main_aspx.ProcessRequest(HttpContext context) in App_Web_p3kkcyip.1.cs:0 System.Web.CallHandlerExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute() +181 System.Web.HttpApplication.ExecuteStep(IExecutionStep step, Boolean& completedSynchronously) +75
Any idea?
|
|
Page 1 of 2 (26 items)
1
|
|