When enabling code profiling in .net 2.0, one common warning is CA2209 : Microsoft.Usage : No valid permission requests were found for assembly "yourassemblyname". You shoudl always specify the minimum security premissions using SecurityAction.RequestMinimum.
One simple way to prevent this warning in VB.NET is to add the following directive before the class definition:
Import System.Security
<Assembly : Security.Permissions.FileIOPermission(Security.Permissions.SecurityAction.RequestMinimum, Unrestricted:=True)>
Public ClassYourClassName
... your code here
End Class