Installing v2.1.5 under Medium trust

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.
11/16/2006 7:49:06 AM
Gravatar
Total Posts 40

Installing v2.1.5 under Medium trust

Hi, I seem to be having some difficulty installing version 2.1.5 under medium trust. I've set the relevant portion of the web.config file to force medium trust on my local install, commented out all the neatupload entries but get a security error (The application attempted to perform an operation not allowed by the security policy. etc)

Does anyone have any idea how I can resolve this? I imagine I'm doing something stupid but can't seem to track down what...!

Thanks in advance,
Matt

11/16/2006 8:13:55 AM
Gravatar
Total Posts 18439

Re: Installing v2.1.5 under Medium trust

Hi Matt,

I was just able to replicate this. It seems to be coming form MagicAjax. Are you working with the source code? If so have a look in the MagicAjax project in MagicAjaxContext.cs see this section around line#217

#if !NET_2_0 || !MEDIUM_TRUST
            try
            {
                _configuration = (MagicAjaxConfiguration)ConfigurationSettings.GetConfig("magicAjax");
            }
            catch (System.Security.SecurityException)
            { }
#endif

I added this try catch and that fixed it for me.
I'll update the release downloads shortly.

Thanks,

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