![]() |
![]() | ![]() | ![]() | ![]() | ![]() | ![]() | ![]() |
| Welcome to Windows Vista Forums. Our forum is dedicated to helping you find solutions with any problems, errors or issues you are experiencing with Windows Vista. The Vista forum also covers news and updates and has an extensive Windows Vista tutorial section that covers a wide range of tips and tricks. |
| |||||||
| |
| | #1 (permalink) |
| | Request for the permission of type 'System.Security.Permissions.Fi I've been trying to run XAML browser applications on the C drive using visual studio 2005, but I receive the error System.Security.SecurityException: Request for the permission of type 'System.Security.Permissions.FileIOPermission, mscorlib, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089' failed. I have tried setting the trust level to full in the application configuration file, and adding; [assembly:FileIOPermission(SecurityAction.RequestMinimum, Unrestricted = true)] [assembly: PermissionSetAttribute(SecurityAction.RequestMinimum, Name = "FullTrust")] to the AssemblyInfo.cs file. I have also set intranet trust to full under the .Net configuration tool. Can anyone help me fix this error? Thanks. |
My System Specs![]() |
| | #2 (permalink) |
| | RE: Request for the permission of type 'System.Security.Permissions.Fi I have found the problem. In a resource dictionary file I was using, some of the XAML referenced images using the full path name as shown below. <ImageBrush Stretch="None" Viewport="0,0,128,128" ImageSource="C:\VS Projects\FCI Logo 3\FCILogo_files\image0.png" TileMode="Tile" ViewportUnits="Absolute"> <ImageBrush.Transform> <MatrixTransform Matrix="1.33364,0,0,1.33667,-91.198,537.827"/> </ImageBrush.Transform> </ImageBrush> When I changed the path to ImageSource="image0.png" it worked. I don't quite understand why the error should have occurred anyway since the file was on the local drive, not on a network. Also, does one have to change the image references manually each time or can one get expression blend to do it automatically? "DVMPX" wrote: > I've been trying to run XAML browser applications on the C drive using visual > studio 2005, but I receive the error > System.Security.SecurityException: Request for the permission of type > 'System.Security.Permissions.FileIOPermission, mscorlib, Version=2.0.0.0, > Culture=neutral, PublicKeyToken=b77a5c561934e089' failed. > I have tried setting the trust level to full in the application > configuration file, and adding; > > [assembly:FileIOPermission(SecurityAction.RequestMinimum, Unrestricted = > true)] > > [assembly: PermissionSetAttribute(SecurityAction.RequestMinimum, Name = > "FullTrust")] > > to the AssemblyInfo.cs file. I have also set intranet trust to full under > the .Net configuration tool. > > Can anyone help me fix this error? > Thanks. |
My System Specs![]() |
| Thread Tools | |
| |
Similar Threads | ||||
| Thread | Forum | |||
| Request for the permission of type 'System.Net.SocketPermission fa | PowerShell | |||
| cant turn off - permission request | Vista file management | |||
| Services request permission | Vista account administration | |||
| Permission Request | Vista General | |||