I am working on a web based generic mailer component that I am planning to reuse for all the projects. After completing it, I ran it through FxCop and in the many suggestions given by FxCop one was to mention a default FileIOPermission. I set the following in AssemblyInfo.cs
[assembly:FileIOPermission(SecurityAction.RequestOptional, Unrestricted=true)]
The project compiled without problem, but when I tried to access the page I kept getting the error message:
Parser Error Message: Could not load type 'VJ.RND.GenericMailer.Global'.
Source Error:
Line 1: <%@ Application Codebehind="Global.asax.cs" Inherits="VJ.RND.GenericMailer.Global" %>
This error message was removed after removing the FileIOPermission setting from the AssemblyInfo.cs
I am trying to find the exact cause of the error.