Results 1 to 2 of 2

Thread: FxCop - Interpreting Messages

  1. #1

    Thread Starter
    Frenzied Member Mike Hildner's Avatar
    Join Date
    Jul 2002
    Location
    Des Moines, NM
    Posts
    1,690

    FxCop - Interpreting Messages

    Trying FxCop for the first time, and, well, looks like I have some problems. Trying to start at the top and get rid of critical errors.

    My app is a service that reads and writes to sockets and text files. A critical error says "Assemblies specify permission requests". I have added no security specifications.

    Does this mean that I should explicitly request permissions for doing whatever my app needs to do?

    Thanks,
    Mike

  2. #2

    Thread Starter
    Frenzied Member Mike Hildner's Avatar
    Join Date
    Jul 2002
    Location
    Des Moines, NM
    Posts
    1,690
    ok, I added this right below my imports statement:

    VB Code:
    1. <Assembly: SecurityPermissionAttribute(SecurityAction.RequestMinimum)>

    and now FxCop doesn't complain. Of course, I have no idea what I just did. I've been swimming around MSDN on this and am quite lost.

    I think if I could just set socket and IO permissions, that would be good. Anyone know how?

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width