CodeCanvas .Net

Vijay shankar ganesh on everything (well, almost) tech
posts - 61, comments - 287, trackbacks - 227

My Links

News

Blog got added to
.Net Reporter
Successfully created My Blog, I will be cross posting technical blogs to my currrent GWB blog area and other stuff will be there.

The best things in the world are free --- and worth every penny of it.

Article Categories

Archives

Post Categories

Blogs I Read

Leisure

Noteables

Recently Read

Tech Links

Problem with assembly:FileIOPermission

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.

Print | posted on Monday, October 25, 2004 10:59 AM | Filed Under [ DotNet Self References ]

Feedback

Gravatar

# re: Problem with assembly:FileIOPermission

FYI and FWIW, I have the EXACT same issue. I added that line to please FXCop and it broke my application. If I leave the line, FXCop is pleased but the compiler is displeased. If I remove the line, FXCop is displeased but the compiler is pleased. Ug. I am still trying to figure it out; but, I thought that I should mention it to corroborate you findings. If you do find an answer, please feel free to send them along to MKamoski@WebLogicArts.com . Thank you.
3/8/2005 10:28 PM | mkamoski
Post A Comment
Title:
Name:
Email:
Website:
Comment:
Verification:
 
 

Powered by: