SecurityException Error

SecurityException Error

Forum member · Aug 2, 2007
I am getting the following error: Request for the permission of type 'System.Security.Permissions.FileIOPermission, mscorlib, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089' failed. Here is the code I am trying to run (it is failing on the Dim MyData line below): Protected Sub Page_Load(ByVal sender As Object, ByVal e As System.EventArgs) Handles Me.Load Dim MyDocument As Document = New Document Dim MyPage As Page = New Page MyDocument.Pages.Add(MyPage) Dim MyData As ImportedPageData = New ImportedPageData("C:\f10.pdf", 1, 0, 0, 1) MyPage.Elements.Add(MyData) MyDocument.DrawToWeb() End Sub Any clue on why this is happening? Thanks

Re: SecurityException Error

Support · Aug 2, 2007
Hello, Actually from the error you are getting the problem is likely because the user account that is accessing the application (typically the ASPNET user) does not have permissions to read/write to the destination folder you have specified, ("C:\f10.pdf"). This is a file permissions error and nothing more. Thanks, ceTe Software Support Team