FileIOPermission failed

hemants

New member
Joined
Feb 26, 2008
Messages
1
Programming Experience
Beginner
I Have made an exe i.e Windows Control Library in vb.net

it is image editor which have embedded image as in Buid action property to Embedded recources.

That exe i m calling in Web page . it is executing Properly but

in Exe I am renaming the requested image with the earlier set embedded image and taking the backup of the embedded image. I do this activity by giving the absolute path of the image.

Now the issue is, when I run the EXE it works properly but when it is called thru a web page its giving an exception saying,

"System.Security.SecurityException: Request for the permission of type 'System.Security.Permissions.FileIOPermission, mscorlib, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089' failed."

Please suggest solution to this problem.

Regards,
Hemant S.
 

Attachments

  • error.GIF
    error.GIF
    25.1 KB · Views: 34
Check what user the website is running as. In IIS, check the Directory Security tab for that website, and it should be under a button somewhere in there.

Make sure that that user has sufficient access to the file/folder by checking the permissions.
 
Back
Top