Products

Solutions

Resources

Partners

Community

About

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

HomeHomeDNN Open Source...DNN Open Source...Module ForumsModule ForumsEventsEventsUpgrade failed to Events 5.0.1Upgrade failed to Events 5.0.1
Previous
 
Next
New Post
8/19/2009 3:02 PM
 

Ok Roger I've repreduced the exception.


1. Change Trustlevel to Medium
2. Open web_mediumtrust.config (C:\Windows\Microsoft.NET\Framework\v2.0.50727\CONFIG)
- Remove lines
<SecurityClass Name="ReflectionPermission" Description="System.Security.Permissions.ReflectionPermission, mscorlib, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089"/>
AND
<IPermission class="ReflectionPermission" version="1" Flags="RestrictedMemberAccess"/>

Following these steps will produce the exception: Request for the permission of type System.Security.Permissions.ReflectionPermission

Some options:
1. Figure out if and/or why these settings missing in the configuration of 'b b' and Garry
2. See if we can live without Reflection which I doubt. (at least in future versions), but should be considerd.
3. Figure out where exactly the EventList results in a exception.

Later more...

Ralf

some refs:
http://msdn.microsoft.com/en-us/library/tkscy493.aspx > trust Element (ASP.NET Settings Schema)
http://msdn.microsoft.com/en-us/library/bb907622.aspx > Linq and code access security
http://forums.asp.net/t/1211663.aspx > ASP.net forum



 
New Post
8/19/2009 3:36 PM
 

Thanks Ralf,

Thatd does make some sense as my host one and one does have some trust limitations.

http://faq.oneandone.co.uk/scripting/asp_net/5.html

 

Intrestingly though I created a basic web page that has some reflection methods used and it returns eaxctly the same as my dev box over which I can change to the trust to full. So suggestes that at least some reflection calls work, I did read something about protected members and medium trust not working.

Do you know the required methods and I will test in a seperate page??

 

Thanks


Garry

 

 

 
New Post
8/19/2009 4:05 PM
 

Ok think I've solved the problem:
Problems with ReflectionPermission on EventList when binding. For some unknown reason making the EventObject Public solves the problem.

Checked-in the new version of EventList.

Greetings,

Ralf



 
New Post
8/19/2009 4:27 PM
 

Garry Monhan wrote
 

Intrestingly though I created a basic web page that has some reflection methods used and it returns eaxctly the same as my dev box over which I can change to the trust to full. So suggestes that at least some reflection calls work, I did read something about protected members and medium trust not working.

 

It does has something to do with protected members. Changed the private class, which was used for binding, to public did the trick. Somehow it uses reflection when the class is protected..

Ralf



 
New Post
8/19/2009 6:33 PM
 

That was kind of what I was going to test, if only I could get my dev environment to play. I'd seen something about making objects public. I'll try to test, and we'll get this into 5.0.3.

Thanks Ralf!!

Cheers
Roger


DNN MVP
Events - Get the latest version - Upgrade now!!
Feedback 6.4.2 - Now available - Give it a go!
Find us on Codeplex - DNN Events, DNN Feedback
Requirements/Bugs - Please submit them on Codeplex
 
Previous
 
Next
HomeHomeDNN Open Source...DNN Open Source...Module ForumsModule ForumsEventsEventsUpgrade failed to Events 5.0.1Upgrade failed to Events 5.0.1


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