Medium Trust and Multiple Websites

This forum is only for questions or discussions about working with the mojoPortal source code in Visual Studio, obtaining the source code from the repository, developing custom features, etc. If your question is not along these lines this is not the right forum. Please try to post your question in the appropriate forum.

Please do not post questions about design, CSS, or skinning here. Use the Help With Skins Forum for those questions.

This forum is for discussing mojoPortal development

This forum is only for questions or discussions about working with the mojoPortal source code in Visual Studio, obtaining the source code from the repository, developing custom features, etc. If your question is not along these lines this is not the right forum. Please try to post your question in the appropriate forum.

You can monitor commits to the repository from this page. We also recommend developers to subscribe to email notifications in the developer forum as occasionally important things are announced.

Before posting questions here you might want to review the developer documentation.

Do not post questions about design, CSS, or skinning here. Use the Help With Skins Forum for those questions.
This thread is closed to new posts. You must sign in to post in the forums.
10/6/2009 9:06:25 PM
Gravatar
Total Posts 19

Medium Trust and Multiple Websites

I have 2 questions.

1. What the difference between adding

<trust level="Medium" originUrl=".*" />
and
<add key="RunningInMediumTrust" value="true"/>

Seems that they would do the same thing.

2. In the documentation, it says "Because mojoPortal is capable of supporting multiple web sites using a single installation (though not under Medium trust)...".  I have my site configured for medium trust, and I was able to create a second site within one installation.  Should I be able to create multiple sites with medium trust, or am I overlooking something?

Thanks!
Tom

 

10/7/2009 7:00:19 AM
Gravatar
Total Posts 18439

Re: Medium Trust and Multiple Websites

Hi,

The first setting is for actually forcing medium trust when testing. You would never use that setting on production.

The second setting is to let mojoPortal know it is running in medium trust so it can handle things differently where needed.

I've just updated that document. The thing that doesn't work in Medium Trust is the VirtualPathProvider that reads the theme.skin file from the skin folder. Since we really don't use the theme.skin for style its not a huge problem. The only settings we use from that file are for our CornerRounder controls which can be either enabled or disabled using the theme.skin file. The control doesn't actually round corners it just adds some extra divs that are used for corner rounding by css. But in some skins where corners are not rounded this can be false to eliminate those few extra divs. The extra divws don't really hurt anything though. In medium trust it just means you can't set it per skin, its global setting and it comes from App_Themes/Default/theme.skin instead of from the skin folder. All the other skin files come from the skin folder and don't need use of a VirtualPathProvider.

Hope it helps,

Joe

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