Products

Solutions

Resources

Partners

Community

Blog

About

QA

Ideas Test

New Community Website

Ordinarily, you'd be at the right spot, but we've recently launched a brand new community website... For the community, by the community.

Yay... Take Me to the Community!

Welcome to the DNN Community Forums, your preferred source of online community support for all things related to DNN.
In order to participate you must be a registered DNNizen

HomeHomeUsing DNN Platf...Using DNN Platf...Administration ...Administration ...Medium Trust or notMedium Trust or not
Previous
 
Next
New Post
8/15/2008 5:49 AM
 

Hi

Can DNN run in Medium Trust? The documentation seems to indicate that it can but in reality I am not so sure. Is there any cast iron documentation that gives details of what extra special attributes are required? I have set up a couple of special points for NETWORK_SERVICE account I have found by searching but, for example, uploading a straight DNN module will not upload.

Or will DNN 5.0 definately work 100% on medium trust with no modifications?

Thanks in advance

 
New Post
8/15/2008 8:33 AM
 

yes, dnn runs in medium trust -in fact most of the core and project teams only work and test in medium trust (we use the development.config file renamed to web.config, rather than release.config ). The are a few exceptions to this rule, I believe that the a few of the alternative authentication providers (active directory and openID) require full trust, but their dnn manifest file should ensure that they can't be installed unless running in full trust. We've supported medium trust since 3.0 and will continue to support it - many ISP's only allow medium trust so to do anything else would be unwise.

Please note: many 3rd party modules do not support medium trust, or else make use of webrequest/certain reflection calls etc that mean they require full trust.

Cathal

 


Buy the new Professional DNN7: Open Source .NET CMS Platform book Amazon US
 
New Post
8/15/2008 10:21 AM
 

 Thanks Cathal,

So do you know why I cant upload a module? I get the following error please? I get this with any module which my provider indicates that I might need modified trusts for?

StartJob Creating files
Info Created d:\websites\mysite\wwwroot\bin\DotNetNuke.Modules.FAQs.dll
Info Created d:\websites\mysite\wwwroot\bin\DotNetNuke.Modules.FAQs.SqlDataProvider.dll
Failure ExceptionSystem.Security.SecurityException: Request for the permission of type 'System.Security.Permissions.FileIOPermission, mscorlib, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089' failed. 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 DotNetNuke.Modules.Admin.ResourceInstaller.PaDnnInstallerBase.CreateDataProviderFile(PaFile file, PaFolder Folder) at DotNetNuke.Modules.Admin.ResourceInstaller.PaDnnInstallerBase.CreateFiles(PaFolder Folder) at DotNetNuke.Modules.Admin.ResourceInstaller.PaDnnInstallerBase.Install(PaFolderCollection folders) at DotNetNuke.Modules.Admin.ResourceInstaller.PaInstaller.Install() The action that failed was: Demand The type of the first permission that failed was: System.Security.Permissions.FileIOPermission The Zone of the assembly that failed was: MyComputer

 

 

 
New Post
8/15/2008 11:56 AM
 

In medium trust the code access security definition for fileio is

                                         class="FileIOPermission"
                                    version="1"
                                    Read="$AppDir$"
                                    Write="$AppDir$"
                                    Append="$AppDir$"
                                    PathDiscovery="$AppDir$"
                            />

All this means you can only read/write/append to the current webroot and sub-directories i.e. you cannot create directories or files outside the website itself. Im not 100% sure why you're seeing this as it appears to be a folder within your site - i would guess either that your permissions are wrong (do you have modify permissions for the right user i.e. aspnet/network service)? Is the D: drive a local drive - if it's actually a network drive this would cause this issue as you're trying to create files/folders on a machine that the site doesn't know the policy for.

Cathal


Buy the new Professional DNN7: Open Source .NET CMS Platform book Amazon US
 
New Post
8/15/2008 3:39 PM
 

cathal connolly wrote

...but their dnn manifest file should ensure that they can't be installed unless running in full trust...

 

Can you be more specific on this? I'm very happy to hear that there is such a setting in manifest file.

Many thanks,


Frank Wang
 
Previous
 
Next
HomeHomeUsing DNN Platf...Using DNN Platf...Administration ...Administration ...Medium Trust or notMedium Trust or not


These Forums are dedicated to discussion of DNN Platform and Evoq Solutions.

For the benefit of the community and to protect the integrity of the ecosystem, please observe the following posting guidelines:

  1. No Advertising. This includes promotion of commercial and non-commercial products or services which are not directly related to DNN.
  2. No vendor trolling / poaching. If someone posts about a vendor issue, allow the vendor or other customers to respond. Any post that looks like trolling / poaching will be removed.
  3. Discussion or promotion of DNN Platform product releases under a different brand name are strictly prohibited.
  4. No Flaming or Trolling.
  5. No Profanity, Racism, or Prejudice.
  6. Site Moderators have the final word on approving / removing a thread or post or comment.
  7. English language posting only, please.
What is Liquid Content?
Find Out
What is Liquid Content?
Find Out
What is Liquid Content?
Find Out