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
coops1979
· 1 |
|
Sunday, February 21, 2010, 2:51:38 PM |
![]() 0
![]() |
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. |
||||
|
![]() 0
![]() |
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. |
||||
|
![]() 0
![]() |
See attached DLL -- drop this into the Gemini\bin folder and see if it fixes your issues. |
||||
|
![]() 0
![]() |
Hi Harvey, |
||||
|
![]() 0
![]() |
Try the attached... |
||||
|
![]() 0
![]() |
Hi Harvey, Server Error in '/gemini/web' Application.
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.
[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
|
||||
|
![]() 0
![]() |
This one should do the trick. Let us know how you get on. |
||||
|
![]() 0
![]() |
WOW, that really worked :). Nice job. [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)] |
||||
|
![]() 0
![]() |
Seems like your hosting provider doesn't have ASP.NET charting installed. |
||||
|
![]() 0
![]() |
Yeah, I think you're right. Is there a way to disable charting in Gemini project? I don't really need that feature. |
||||
|
![]() 0
![]() |
Not really. You can try removing the DLLs from the bin and the web.config file. |
||||
|
![]() 0
![]() |
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.] |
||||
|
![]() 0
![]() |
Please try and add the line in bold to the web.config file: |
||||
|
![]() 0
![]() |
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.]Any idea? |
||||
|
![]() 0
![]() |
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. |
||||
|
![]() 0
![]() |
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. :) |
||||
|
![]() 0
![]() |
Any news on this? |
||||
|
![]() 0
![]() |
Not yet unfortunately, we will reply to this thread when it is ready. |
||||
|
![]() 0
![]() |
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 |
||||
|
![]() 0
![]() |
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. |
||||
|
![]() 0
![]() |
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/ |
||||
|
![]() 0
![]() |
I hope this problem is fixed with 3.7 beta. Im having the same problem. Hosted at GoDaddy as well... |
||||
|
![]() 0
![]() |
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? |
||||
|
![]() 0
![]() |
I'm actually having problems with the System.Web.DataVisualization dll |
||||
|
![]() 0
![]() |
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. |
||||
|
![]() 0
![]() |
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. |
||||
|