Gemini Community Support Site

This Gemini community support site can be used to find solutions to product issues. You can log in using Open Id, Google Profile and even Facebook. Feel free to ask a question or browse FAQs and documentation. Product tour videos are also available along with how-to videos demonstrating key Gemini capabilities.




New installation - Failed to grant minimum permission requests

web-app

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

coops1979
· 1
coops1979
Replies (26)
helpful
0
not helpful

We have it running here on the 64bit machine with no issue. However, try setting the app pool to run in 32 bit mdoe. Also, try running it in full trust.


Saar Cohen
· 5000
Saar Cohen
helpful
0
not helpful

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.


nemcaninz
· 1
nemcaninz
helpful
0
not helpful

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
· 212
Harvey Kandola
helpful
0
not helpful

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


nemcaninz
· 1
nemcaninz
helpful
0
not helpful

Try the attached...

Thanks for your patience.


Harvey Kandola
· 212
Harvey Kandola
helpful
0
not helpful

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.

        <h2> <i>Required permissions cannot be acquired.</i> </h2></span>

        <font face="Arial, Helvetica, Geneva, SunSans-Regular, sans-serif ">

        <b> Description: </b>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.

        <br><br>

        <b> Exception Details: </b>System.Security.Policy.PolicyException: Required permissions cannot be acquired.<br><br>

        <b>Source Error:</b> <br><br>

        <table width=100% bgcolor="#ffffcc">
           <tr>
              <td>
                  <code>

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.

              </td>
           </tr>
        </table>

        <br>

        <b>Stack Trace:</b> <br><br>

        <table width=100% bgcolor="#ffffcc">

           <tr>
              <td>
                  <code><pre>

[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

              </td>
           </tr>
        </table>

        <br>

        <hr width=100% size=1 color=silver>

        <b>Version Information:</b>&nbsp;Microsoft .NET Framework Version:2.0.50727.3603; ASP.NET Version:2.0.50727.4049

        </font>

nemcaninz
· 1
nemcaninz
helpful
0
not helpful

This one should do the trick. Let us know how you get on.


Mark Wing
· 9108
Mark Wing
helpful
0
not helpful

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


nemcaninz
· 1
nemcaninz
helpful
0
not helpful

Seems like your hosting provider doesn't have ASP.NET charting installed.
See: http://social.msdn.microsoft.com/Forums/en/MSWinWebChart/thread/d976b659-264a-4731-935c-08c02865002f


Mark Wing
· 9108
Mark Wing
helpful
0
not helpful

Yeah, I think you're right. Is there a way to disable charting in Gemini project? I don't really need that feature.


nemcaninz
· 1
nemcaninz
helpful
0
not helpful

Not really. You can try removing the DLLs from the bin and the web.config file.


Mark Wing
· 9108
Mark Wing
helpful
0
not helpful

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


nemcaninz
· 1
nemcaninz
helpful
0
not helpful

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"/>


Mark Wing
· 9108
Mark Wing
helpful
0
not helpful

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.mainaspx.ProcessRequest(HttpContext context) in AppWeb_p3kkcyip.1.cs:0
System.Web.CallHandlerExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute() +181
System.Web.HttpApplication.ExecuteStep(IExecutionStep step, Boolean& completedSynchronously) +75
Any idea?


nemcaninz
· 1
nemcaninz
helpful
0
not helpful

We think we narrowed this down to a 3rd party library that NHibernate uses. We are looking for a fix for this issue. We will keep you updated.

Apologies for the hassle.


Mark Wing
· 9108
Mark Wing
helpful
0
not helpful

Thank you sir. If we make this work we could compile good manual for setting Gemini project on GoDaddy hosting. I believe a lot of people would be interested. :)


nemcaninz
· 1
nemcaninz
helpful
0
not helpful

Any news on this?


nemcaninz
· 1
nemcaninz
helpful
0
not helpful

Not yet unfortunately, we will reply to this thread when it is ready.


Saar Cohen
· 5000
Saar Cohen
helpful
0
not helpful

Hi, I am also trying to get GoDaddy hosting work - on a linux box. Can you please let me know once you make the godaddy manual? :) Ravi


ravi
· 1
ravi
helpful
0
not helpful

We will post an update as soon as we have this ready. It should be for Gemini 3.7, which is due late next month.


Mark Wing
· 9108
Mark Wing
helpful
0
not helpful

FYI - 3.7 BETA is out now and can be run under mdeium trust (one change in the config file to uncomment the reflection optimizer): http://blogs.countersoft.com/index.php/2010/05/gemini-3-7/


Mark Wing
· 9108
Mark Wing
helpful
0
not helpful

I hope this problem is fixed with 3.7 beta. Im having the same problem. Hosted at GoDaddy as well...


lhughey
· 1
lhughey
helpful
0
not helpful

It does not work using 3.7. I'm using the final version of 3.7 on Godaddy and I"m still getting the same problems. Any ideas?


lhughey
· 1
lhughey
helpful
0
not helpful

I'm actually having problems with the System.Web.DataVisualization dll


lhughey
· 1
lhughey
helpful
0
not helpful

You will need to contact GoDaddy and ask them to install http://www.microsoft.com/downloads/details.aspx?FamilyId=130F7986-BF49-4FE5-9CA8-910AE6EA442C&displaylang=en the Microsoft's charting controls on the server.


Mark Wing
· 9108
Mark Wing
helpful
0
not helpful

I am in the same situation - I have asked GoDaddy to install the charting controls but they don't seem willing to do that. Is there any way to get Gemini to run under .Net 4.0 without requiring the application to run in the asp 2.0 (3.5) application pool? If that doesn't work do you have any suggestion for ISPs that have compatible hosting plans for both Gemni and Atlas? I know that you do hosted Gemini but I want to have my company website/email/dotnetnuke all on the same site.


Andrew Clark
· 1
Andrew Clark