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

HomeHomeGetting StartedGetting StartedInstalling DNN ...Installing DNN ...development.config with medium trust???development.config with medium trust???
Previous
 
Next
New Post
10/14/2008 6:45 AM
 

In the DNN installation guide, in the section "Configuring web.config for Installation," it says the following:

As with v3.x, before doing anything else rename release.config to web.config (if you
are required to run under Medium Trust then rather than use release.config, rename
development.config).

I'm using DNN 4.9 w/IIS7 ASP.NET 2/3/3.5, but I downloaded the older DNN 3.3.7 to see its development.config versus release.config, and there as well, I did not see any major differences. A comment in the file mentions that it is usually in machine.config. I'm curious why setting trust would be required at all for shared hosting if the hosting provider is already enforcing medium trust. I'm not sure why the web.config would need to specify this as well.

I was able to get DDN 4.9 to work with release.config and didn't need to deal with the trust setting so I was puzzled by these docs. Does anyone know if there's something I'm missing here?

Thanks,
Tom

 
New Post
10/14/2008 8:03 AM
 

The reason is that as a developer, you are most likely running in a Full Trust environment. It's a bit of a shock to have spent countless hours writing a module that works perfectly on your development environment, and then totally refuses to run when you install it on your client's site that is hosted in a Medium Trust environment. 

By providing 2 .config files, one with Medium Trust specified, you have the option as a developer to decide which one to use and to develop and test your code running in whatever security model you wish.  Since most hosters run sites in a Medium Trust ( or Modified Medium trust ) environment, using the proper config file will avoid any surprises during deployment.

 
New Post
10/16/2008 8:00 AM
 

Hi Steve,

Thanks for the info. I think I see why it's confusing as written (in the docs). I think what you're saying is that the target audience for the instructions is a developer, where the developer can use development.config to better test one's code in an environment that would otherwise be too free (full trust). I was reading it as development.config contains something that makes things work under a medium trust environment, and by examining the config file, I didn't see why it would be better to use development.config than release.config in a med trust env. I think the idea is that development.config is better to use in a full trust dev environment to be prepared for a medium trust production env. 

Let me know if I still am missing something here. Thanks for clarifying! Tom

 
Previous
 
Next
HomeHomeGetting StartedGetting StartedInstalling DNN ...Installing DNN ...development.config with medium trust???development.config with medium trust???


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