MojoPortal on RealValueHosting servers

Post here for help with installing or upgrading mojoPortal pre-compiled release packages. When posting in this forum, please provide all relevant details. You may also want to review the installation or upgrading documentation.

If you have questions about using the source code or working with mojoPortal in Visual Studio, please post in the Developer forum.

Post here for help with installation of mojoPortal pre-compiled release packages

When posting in this forum, please try to provide as many relevant details as possible. Particularly the following:

  • What operating system were you running when the bug appeared?
  • What database platform is your site using?
  • What version of mojoPortal are you running?
  • What version of .NET do you use?
  • What steps are necessary to reproduce the issue? Compare expected results vs actual results.

You may also want to review the installation or upgrading documentation.

If you have questions about using the source code or working with mojoPortal in Visual Studio, please post in the Developer forum.

This thread is closed to new posts. You must sign in to post in the forums.
9/2/2007 8:26:09 AM
Gravatar
Total Posts 5

MojoPortal on RealValueHosting servers

I’m trying to install MojoPortal on RealValuHosting’s medium trusted environment. So, I’m getting error massage “Required permissions cannot be acquired”, but this happening just on the beginning with the following information coming from stack trace:

[PolicyException: Required permissions cannot be acquired.]
System.Security.SecurityManager.ResolvePolicy(Evidence evidence, PermissionSet reqdPset, PermissionSet optPset, PermissionSet denyPset, PermissionSet& denied, Boolean checkExecutionPermission) +2709488
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 'Janrain.OpenId, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null' 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.InternalLoad(AssemblyName assemblyRef, Evidence assemblySecurity, StackCrawlMark& stackMark, Boolean forIntrospection) +211
System.Reflection.Assembly.InternalLoad(String assemblyString, Evidence assemblySecurity, StackCrawlMark& stackMark, Boolean forIntrospection) +141
System.Reflection.Assembly.Load(String assemblyString) +25
System.Web.Configuration.CompilationSection.LoadAssemblyHelper(String assemblyName, Boolean starDirective) +32

Please help me to solve this problem.
Sincerely,
Tomasz

9/2/2007 8:31:06 AM
Gravatar
Total Posts 18439

Re: MojoPortal on RealValueHosting servers

Hi Tomasz,

Try set EnableOpenIDAuthentication to false in Web.config and delete Janrain.OpenId.dll from the bin folder.

Hope it helps,

Joe

9/2/2007 8:32:21 AM
Gravatar
Total Posts 18439

Re: MojoPortal on RealValueHosting servers

Also if you haven't already, see this documentation about medium trust.

Joe

9/2/2007 8:45:46 AM
Gravatar
Total Posts 5

Re: MojoPortal on RealValueHosting servers

I’ve change Web.config and deleted Janrain.OpenID assembly according to your advice, but doesn’t help. I’m getting only different massage:

[SecurityException: Request for the permission of type 'System.Security.Permissions.SecurityPermission, 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() +59
System.Web.HttpContext.System.IServiceProvider.GetService(Type service) +54
Brettle.Web.NeatUpload.UploadHttpModule.GetCurrentWorkerRequest() +57
Brettle.Web.NeatUpload.UploadHttpModule.Application_BeginRequest(Object sender, EventArgs e) +72
System.Web.SyncEventExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute() +92
System.Web.HttpApplication.ExecuteStep(IExecutionStep step, Boolean& completedSynchronously) +64

So far in the documentation I can’t find the answer.
Sincerely,
Tomasz 

9/2/2007 8:52:10 AM
Gravatar
Total Posts 18439

Re: MojoPortal on RealValueHosting servers

The link I gave in my previous post, http://www.mojoportal.com/mediumtrust.aspx, talks about NeatUpload.

In this case you don't need to delete the dll but there are places in Web.config where you need to comment out NeatUpload.

Hope t helps,

Joe

You must sign in to post in the forums. This thread is closed to new posts.