Medium trust. Is it true or?

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.
3/11/2009 2:40:33 PM
Gravatar
Total Posts 2

Medium trust. Is it true or?

Hi All!

Hosted on IIS & MsSQL. Mojo version.: 2-2-9-2
First deploy: full trust = Succes.
Second deploy: medium trust = Failure.
Gone through all steps descibed @ http://www.mojoportal.com/mediumtrust.aspx

Anybody running in medium trust with succes?
Anybody have a solution to my problem? (change trust level is not a choice)

Probing system...
An Error Occurred:Request for the permission of type 'System.Security.Permissions.FileIOPermission, mscorlib, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089' failed.


Source:mscorlib


Stack Trace at System.Security.CodeAccessSecurityEngine.Check(Object demand,
StackCrawlMark& stackMark, Boolean isPermSet) at System.Security.CodeAccessPermission.Demand()
at System.IO.Directory.InternalCreateDirectory(String fullPath, String path, DirectorySecurity dirSecurity)
at System.IO.Directory.CreateDirectory(String path, DirectorySecurity directorySecurity)
at mojoPortal.Web.mojoSetup.TouchTestFile() at mojoPortal.Web.mojoSetup.DataFolderIsWritable()
at mojoPortal.Web.UI.Pages.SetupHome.ProbeSystem() at mojoPortal.Web.UI.Pages.SetupHome.Page_Load(Object sender,
EventArgs e) at System.Web.UI.Control.OnLoad(EventArgs e) at System.Web.UI.Control.LoadRecursive()
at System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint)

3/11/2009 2:47:12 PM
Gravatar
Total Posts 18439

Re: Medium trust. Is it true or?

Hi,

Yes, mojoPortal does work in Medium Trust. If you search this site for "GoDaddy" you will find a bunch of people are using mojoPortal on GoDaddy and they enforce Medium Trust. I test Medium Trust on a regular basis to make sure it works.

I recommend review that page again and make sure you have followed all the steps carefully, don't second guess or skip anything, recycle the app to make sure it takes new settings.

Other than that, its possible that you are not running in Medium Trsut but some custom trust level as some hosts use a modified Medium Trust.

Hope it helps,

Joe

3/11/2009 2:48:47 PM
Gravatar
Total Posts 18439

Re: Medium trust. Is it true or?

Also make sure that second deployment is running ASP.NET 3.5 SP1 not ASP.NET 2.0

Hope it helps,

Joe

3/11/2009 4:46:08 PM
Gravatar
Total Posts 2

Re: Medium trust. Is it true or?

Any chance you(Joe) got access to the files, that defines the trust level?
C:\Windows\Microsoft.NET\Framework\v2.0.50727\CONFIG folder
In particuler <trustLevel name="Medium" policyFile="web_mediumtrust.config"/>

The current value, at my host
Content of
”web_mediumtrust.config” @ C:\Windows\Microsoft.NET\Framework\v2.0.50727\CONFIG>

<IPermission class="FileIOPermission" version="1" Read="$AppDir$" Write="$AppDir$" Append="$AppDir$" PathDiscovery="$AppDir$"/>
Locking worker proc to your root dir (”app dir”).
Standard medium trust.

Mojo looks perfect for my task. It simply has to work.

Br.:/Claus

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