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...Upgrading DNN P...Upgrading DNN P...Upgrade issue with trust levelUpgrade issue with trust level
Previous
 
Next
New Post
6/27/2012 7:06 PM
 

the trust level is defined in web.config. By default its set as

<trust level="Medium" originUrl=".*" />

you can change it to Full, but you will need to recycle/restart the application pool if you do that.

However by default DotNetNuke works in medium trust so this is not typically required, unless you use the actrive directory provider (which requires full). In addition the type of permisssion failure is usually different e.g. an SMTPPermission or ReflectionPermission. An AspNetHostingPermission typically only occurs if your site is running in Low permissions (as it does not support asp.net) or in the case of the blocked files I mentioned before. I can only suggest you try again or try unblocking individual dll files one at a time in the BIN folder (please make sure you recycle the app pool afterwards also)


Buy the new Professional DNN7: Open Source .NET CMS Platform book Amazon US
 
New Post
6/27/2012 7:20 PM
 

Hi there - As I have mentioned in my post I have set the trustLevel in the web.config to Full. I actually did a machine re-start so went one step better than restarting the AppPool......

Sorry to sound like a know it all becasue I am new to DNN, but since the old version of the intranet which does not even use the upgrade files has the same error I think its nothing to do with this unblock issue, would you agree with my logic?

Continuing on from my initial post, does anybody know about this machine level .config file I have talked about and how I chnage the trust?   any other ideas??

 
New Post
6/28/2012 9:30 AM
 

you can find the machine.config files within C:\Windows\Microsoft.NET\ -you navigate to the relevant folder for your framework version and compiled e.g. 64bit . net 4.0 would be Framework64\v4.0.30319

As to your issue, if the local machine is fine then the most common other related error of this nature is caused when the files physically exist on another machine (e.g. you have your website pointed to a UNC folder) - this is because .net does not know of trust the other machine - typically trust is added via the .net UI tools or via the CASPOL utility - http://support.microsoft.com/?id=910449 covers a few of these


Buy the new Professional DNN7: Open Source .NET CMS Platform book Amazon US
 
New Post
6/28/2012 7:08 PM
 
Hi cathal - I havefound the machine.config file is. In this 2008 server environment which has .net framework 3.5 I believe its in:

C:\Windows\Microsoft.NET\Framework64\v2.0.50727\CONFIG\machine.config

but I can not see this trust setting anywhere......I notice there are all sorts of config files here. Does anybody know where I should look for this? Please note - when this 2008 VM was set up I installed DNN 6.2 as a fresh instal which is working fine. this is where the .NET 3.5 came from.

Hopefully some one can assist with telling me where I define the machine level trust level. the site level (with in the web.config and the IIS level ) is being ignored.

Thank you in advance...
 
New Post
6/29/2012 3:10 AM
 
The Application Pool > advanced settings had to be changed to "Load User Profile" to true. I found the solution here:

http://dbvt.com/blog/post/AspNetHostingPermission-Security-Exception-Fix-with-Ajax-in-IIS7.aspx

 
Previous
 
Next
HomeHomeUsing DNN Platf...Using DNN Platf...Upgrading DNN P...Upgrading DNN P...Upgrade issue with trust levelUpgrade issue with trust level


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