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...6.0.0 to 6.1.0 EnvironmentPermission Error6.0.0 to 6.1.0 EnvironmentPermission Error
Previous
 
Next
New Post
12/15/2011 6:44 AM
 
Here is info I researched -> Medium level, but with additional restrictions
And as you see :) them a leading host in hole world O.o

As a leading web host, we need to make sure that the resources on our systems are distributed fairly and that no single application has a negative effect on the other applications or on the whole system. It is therefore essential that we define a so-called trust level for the use of ASP.NET applications that restricts certain features of the .NET framework.

For instance, no ASP.NET application may access the registry or carry out file accesses outside a particular user directory. Nor may the execution of so-called “unmanaged code” (i.e. code that is not administrated by the .NET framework and which, for instance, carries out its own storage administration) be permitted.

You will not be able to access an Microsoft Access database via ODBC or OLEDB because these procedures still contain the "unmanaged code" as mentioned before. You will therefore have to use Microsoft’s SQL server and the corresponding classifications in the .NET framework (System.Data.SqlClient) if you want to run ASP.NET applications with a database.

The other restrictions set by the trust level are of little relevance to the majority of ASP.NET applications. They include the non-availability of so-called IsolatedStorage and the barring of the system’s environment variables. For safety and performance reasons, ASP.NET applications cannot be traced or debugged by the server. Any non-present or non-accessible backend services such as MessageQueues, DirectoryServices, Printing or PerformanceCounter cannot be addressed via an ASP.NET application.

Some other restrictions are:
Access to the .NET Framework isolated storage
Use of system printers
Control of security relavant infrastructure like ControlAppDomain, ControlEvidence, RemotingConfiguration, UnmanagedCode and others
Access to the registry
Access to confidential environment variables
Create or open network sockets
Access to the system event log
Access to system performance counters
Use of the .NET Framework Data Provider for OleDb and ODBC
 
New Post
12/15/2011 7:04 AM
 
Configuration Error
Description: An error occurred during the processing of a configuration file required to service this request. Please review the specific error details below and modify your configuration file appropriately.

Parser Error Message: This configuration section cannot be used at this path. This happens when the site administrator has locked access to this section using from an inherited configuration file.

Source Error:

Line 148:
Line 149:
Line 150:
Line 151:
Line 152:
 
New Post
12/15/2011 9:25 AM
 
just received answer from help center

Dear client,
Thank you for contacting us.

Shared Hosting packages runs on a Medium Trust Level.
While on Server packages, runs on a Full Trust Level.
Your package is a shared hosting package, so it already runs on a Medium Trust Level.

Do I really need Full Trust Level?
 
New Post
12/15/2011 10:25 AM
 
All our DNN sites are hosted at Hostbasket (large Belgium hosting provider). I've escalated the question of a custom configuration to them. As soon as I know more, I'll let you know.
 
New Post
12/15/2011 1:13 PM
 

FYI I checked and EnvironmentPermissions has the following definitions in the web_mediumtrust.config :

.net 2.0 version:

<IPermission class="EnvironmentPermission" version="1" Read="TEMP;TMP;USERNAME;OS;COMPUTERNAME"/>

.net 4.0 version:

<IPermission

                                    class="EnvironmentPermission"

                                    version="1"

                                    Read="TEMP;TMP;USERNAME;OS;COMPUTERNAME"

                            />

As you can see the ability to read the computername (which I would assume is the link demand that getMachineName() requires) is a default permission –so it surprises me that people are seeing this issue -please note dotnetnuke.com runs under medium trust and is using the client dependency framework without seeing this issue. I suspect there may be something else at play here but i'm not sure what it is.

 


Buy the new Professional DNN7: Open Source .NET CMS Platform book Amazon US
 
Previous
 
Next
HomeHomeUsing DNN Platf...Using DNN Platf...Upgrading DNN P...Upgrading DNN P...6.0.0 to 6.1.0 EnvironmentPermission Error6.0.0 to 6.1.0 EnvironmentPermission Error


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