Medium Trust or Full 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/14/2017 10:57:12 AM
Gravatar
Total Posts 4

Medium Trust or Full Trust ?

Hi,

i've a simple question.

Mojoportal 2.6.0.0 is running in medium or full trust ?

I searched in the documentation but it is not clearly specified. The only references I have found are for older versions.

Thank you

Fabrizio

11/14/2017 11:43:20 AM
Gravatar
Total Posts 2239

Re: Medium Trust or Full Trust ?

Hi Fabrizio,

mojoPortal requires Full Trust hosting. 

Thanks,
Joe

11/14/2017 1:14:37 PM
Gravatar
Total Posts 4

Re: Medium Trust or Full Trust ?

Hi Joe,

thank you for replay!

Is Medium Trust planned?

A lot of European Hosting Provider works on Medium Trust

Thank You

Fabrizio

11/14/2017 4:53:33 PM
Gravatar
Total Posts 2239

Re: Medium Trust or Full Trust ?

Hi,

mojoPortal supported Medium Trust for many years. You should be able to run mojoPortal 2.4.1.0 on Medium Trust Hosting.

We no longer support or code for Medium Trust because Microsoft has stated that they no longer support Code Access Security (CAS) as a security boundary. Many hosts are changing their hosting configurations to allow for Full Trust while being more secure than the previous CAS model.

Further, the ASP.NET team has stated the following:

  • We are automatically resolving all Medium Trust-related bugs reported to us as "won't fix".
  • We have provided guidance to hosters that they should migrate away from Medium Trust and use proper OS-level isolation instead (http://support.microsoft.com/kb/2698981).
  • We are removing Medium Trust support from the frameworks we develop (MVC, WebAPI, SignalR, and so on). Going forward, applications built on these frameworks will require Full Trust.

If you need full trust hosting, check out our plans.

Thank you,
Joe 

11/15/2017 1:28:53 AM
Gravatar
Total Posts 4

Re: Medium Trust or Full Trust ?

Thanks !

11/15/2017 8:12:22 AM
Gravatar
Total Posts 4

Re: Medium Trust or Full Trust ?

I've download 2.4.1 version for sqlite and made all configuration indicated on readme.txt and on we site documentation but setup returns this error:

Server Error in '/' Application.


Security Exception

Description: The application attempted to perform an operation not allowed by the security policy.  To grant this application the required permission please contact your system administrator or change the application's trust level in the configuration file.

Exception Details: System.Security.SecurityException: That assembly does not allow partially trusted callers.

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:
 


[SecurityException: That assembly does not allow partially trusted callers.]
   mojoPortal.Data.DBBannedIP.IsBanned(String ipAddress) +0
   mojoPortal.Web.BannedIPBlockingHttpModule.BeginRequest(Object sender, EventArgs e) +309
   System.Web.SyncEventExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute() +141
   System.Web.HttpApplication.ExecuteStep(IExecutionStep step, Boolean& completedSynchronously) +69

 


Version Information: Microsoft .NET Framework Version:4.0.30319; ASP.NET Version:4.7.2106.0

1/2/2018 4:22:16 PM
Gravatar
Total Posts 2239

Re: Medium Trust or Full Trust ?

Hi Fabrizio,

I wish I could help you here. Can you use MSSQL on your host? I'm not sure SQLite will work on medium trust.

Thanks,
Joe

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