Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsFree MagazinesWhite PapersSubmit Content
Discussion GroupsASP.NETWindows FormsLanguages.NET FrameworkVisual Studio.NET
Articles.NET FrameworkASP.NETToolsWindows Forms
.NET DirectoryOpen Source ProjectsUser GroupsWeb Resources
Related Topics
Visual Basic 6SQL ServerMS AccessOther DB ProductsMS Server ProductsMore Topics ...

.NET Forum / .NET Framework / New Users / May 2005

Tip: Looking for answers? Try searching our database.

demand assembly security

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
sazonov dmitry - 11 May 2005 21:17 GMT
I started to use FxCop and it is a pain: code security.

FxCop told me to add minimum security and my code is not
working anymore.

now it crashing on
  string machine = System.Environment.MachineName;

I tried to add

[assembly: EnvironmentPermission
(SecurityAction.RequestMinimum, Unrestricted=true)]

but it did not help. What should I do?

thanks
Nicole Calinoiu - 12 May 2005 12:47 GMT
A few questions:

1.  Is the RequestMinimum for Environment permission the only assembly-level
permission attribute in your assembly?  If not, could you please post the
complete list?

2.  Is this a library assembly that is being called from another
application?  If so, could it be that this application (or any intermediary
library) lacks unrestricted EnvironmentPermission, either due to CAS policy
or assembly-level permission attributes?

3.  Do any methods on the call stack apply a PermitOnly or Deny for any
permissions?

>I started to use FxCop and it is a pain: code security.
>
[quoted text clipped - 12 lines]
>
> thanks

Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.