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 ...Security Exception AspNetHostingPermission when upgrading from 4.8 to 4.9 w/ Server2008 and PleskSecurity Exception AspNetHostingPermission when upgrading from 4.8 to 4.9 w/ Server2008 and Plesk
Previous
 
Next
New Post
12/15/2008 10:54 PM
 

Hi all,

 

I'm getting a little desesperate with this update.

I have a Windows Server 2008 Standard with SQL 2008 and Plesk.

It runs a few websites and one of them had the DotNetNuke 4.8. I had the need to update to 4.9 because of the bug when using TextEditor and PartialRendering, and everything fall apart.

I keep getting this error:

 

Server Error in '/' Application.
--------------------------------------------------------------------------------

Security Exception
Description: The application attempted to perform an operation not allowed by the security policy.  To grant this application the required permission please contact your system administrator or change the application's trust level in the configuration file.

Exception Details: System.Security.SecurityException: Request for the permission of type 'System.Web.AspNetHostingPermission, System, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089' failed.

Source Error:

An unhandled exception was generated during the execution of the current web request. Information regarding the origin and location of the exception can be identified using the exception stack trace below. 

Stack Trace:


[SecurityException: Request for the permission of type 'System.Web.AspNetHostingPermission, System, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089' failed.]
   System.RuntimeTypeHandle._GetTypeByName(String name, Boolean throwOnError, Boolean ignoreCase, Boolean reflectionOnly, StackCrawlMark& stackMark, Boolean loadTypeFromPartialName) +0
   System.RuntimeTypeHandle.GetTypeByName(String name, Boolean throwOnError, Boolean ignoreCase, Boolean reflectionOnly, StackCrawlMark& stackMark) +64
   System.RuntimeType.PrivateGetType(String typeName, Boolean throwOnError, Boolean ignoreCase, Boolean reflectionOnly, StackCrawlMark& stackMark) +58
   System.Type.GetType(String typeName, Boolean throwOnError, Boolean ignoreCase) +65
   System.Web.Compilation.BuildManager.GetType(String typeName, Boolean throwOnError, Boolean ignoreCase) +342
   System.Web.Configuration.ConfigUtil.GetType(String typeName, String propertyName, ConfigurationElement configElement, XmlNode node, Boolean checkAptcaBit, Boolean ignoreCase) +52

--------------------------------------------------------------------------------
Version Information: Microsoft .NET Framework Version:2.0.50727.3053; ASP.NET Version:2.0.50727.3053

 

 

I am running the app in Full Trust and did all the changes I was supposed in the web.config.

 

The weirdest thing is that if I overwrite the directory again with the backuped 4.8 version, it works like a charm.

If I place the 4.9 upgrade package again and overwrite the files it falls apart and I only get this enervating error!!

 

Can anyone help me please, I'm been in this for the past 12 hours...

I really appreciate all the help you can give me!

 

Thanks in advance!

João Pereira

 

 
New Post
12/16/2008 11:19 AM
 

Hello again!

I checked the event viewer and found this in there.

 

The only thing I can get from here is that the user who runs the pool and has permissions to the directory website and all files and subfolders is used to run the w3wp.exe process (I believe this is the IIS process, as I use this process to attach and debug web services in development).

 

Can anyone figure out what's wrong here, please?

 

 

Event code: 3008
Event message: A configuration error has occurred.
Event time: 12/16/2008 4:08:39 PM
Event time (UTC): 12/16/2008 4:08:39 PM
Event ID: 943ea7eca8fc4a92b3240d20ef3ee433
Event sequence: 1
Event occurrence: 1
Event detail code: 0
 
Application information:
    Application domain: /LM/W3SVC/26002/ROOT-1-128739173180859900
    Trust level: Full
    Application Virtual Path: /
    Application Path: D:\inetpub\vhosts\abc.com\httpdocs\
    Machine name: SERVER
 
Process information:
    Process ID: 2996
    Process name: w3wp.exe
    Account name: SERVER\IWPD_2(user_v)
 
Exception information:
    Exception type: ConfigurationErrorsException
    Exception message: Request for the permission of type 'System.Web.AspNetHostingPermission, System, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089' failed.
 
Request information:
    Request URL: http://xxx.xxx.xxx.xxx/Default.aspx
    Request path: /Default.aspx
    User host address: xxx.xxx.xxx.xxx
    User: 
    Is authenticated: False
    Authentication Type: 
    Thread account name: SERVER\IWPD_2(user_v)
 
Thread information:
    Thread ID: 5
    Thread account name: SERVER\IWPD_2(user_v)
    Is impersonating: False
    Stack trace:    at System.Web.Configuration.ConfigUtil.GetType(String typeName, String propertyName, ConfigurationElement configElement, XmlNode node, Boolean checkAptcaBit, Boolean ignoreCase)
   at System.Web.Configuration.Common.ModulesEntry..ctor(String name, String typeName, String propertyName, ConfigurationElement configElement)
   at System.Web.HttpApplication.BuildIntegratedModuleCollection(List`1 moduleList)
   at System.Web.HttpApplication.GetModuleCollection(IntPtr appContext)
   at System.Web.HttpApplication.RegisterEventSubscriptionsWithIIS(IntPtr appContext, HttpContext context, MethodInfo[] handlers)
   at System.Web.HttpApplication.InitSpecial(HttpApplicationState state, MethodInfo[] handlers, IntPtr appContext, HttpContext context)
   at System.Web.HttpApplicationFactory.GetSpecialApplicationInstance(IntPtr appContext, HttpContext context)
   at System.Web.HttpApplicationFactory.GetPipelineApplicationInstance(IntPtr appContext, HttpContext context)
   at System.Web.Hosting.PipelineRuntime.InitializeApplication(IntPtr appContext)
 
 
Custom event details:
 

 
New Post
12/18/2008 1:21 PM
 

I'd really appreciate any tip that would lead me in the right way...

I'm really stuck!

 
New Post
12/18/2008 10:23 PM
 

I'm getting something similar when running under a custom application pool, see my post here:

http://www.dotnetnuke.com/Community/Forums/tabid/795/forumid/107/threadid/203931/scope/posts/Default.aspx

I haven't tried one of the 4.8.x versions yet, but will give it a go. I seem to be able to get it to run when network service is the identity for the app pool but not when it is a domain account

 
New Post
12/18/2008 10:48 PM
 

I think your problem might be the same as mine. See my post here:

www.dotnetnuke.com/Community/Forums/tabid/795/forumid/107/threadid/203931/scope/posts/Default.aspx

 
Previous
 
Next
HomeHomeUsing DNN Platf...Using DNN Platf...Administration ...Administration ...Security Exception AspNetHostingPermission when upgrading from 4.8 to 4.9 w/ Server2008 and PleskSecurity Exception AspNetHostingPermission when upgrading from 4.8 to 4.9 w/ Server2008 and Plesk


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