-
April 3rd, 2010, 12:47 AM
#1
ERROR!: Security related error... Please help me!
Let me brief you what I was trying... I work on Visual Studio 2005 / MS-SQL / C#.
The error what I get is:
===================================================
System.Security.SecurityException: Request for the permission of type 'System.Security.Permissions.FileIOPermission, mscorlib, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089' failed.
===================================================
Whats this and how I do solve this error?
Thanx & rgds
Thank you for your support.
Best regards,
Lax
-
April 3rd, 2010, 08:16 AM
#2
Re: ERROR!: Security related error... Please help me!
Where are you trying to write files? Some folders require more access than others.
Have you tried run as administrator?
-
April 4th, 2010, 09:53 PM
#3
Re: ERROR!: Security related error... Please help me!
Thank you for your response.
I was trying to pick up a file from the server folder (using server.mappath) and send as an attachment using asp.net mail.
Thank you for your support.
Best regards,
Lax
-
April 4th, 2010, 10:20 PM
#4
Re: ERROR!: Security related error... Please help me!
Does your site have file i/o permissions for the folder in question?
-
April 5th, 2010, 12:21 AM
#5
Re: ERROR!: Security related error... Please help me!
Yes and I have even given full permission to the folder and the files.
Thank you for your support.
Best regards,
Lax
-
April 5th, 2010, 04:45 PM
#6
Re: ERROR!: Security related error... Please help me!
Try mapping a folder and using it's drive letter
-
April 5th, 2010, 09:14 PM
#7
Re: ERROR!: Security related error... Please help me!
Thank you for your response...
Yes I have mapped to the complete path including the drive letter...
Thank you for your support.
Best regards,
Lax
-
April 8th, 2010, 03:10 AM
#8
Re: ERROR!: Security related error... Please help me!
by the way, you checked out what path\filename you got after server.mappath... to be sure you really got the phisical path and filename you needed?
...at present time, using mainly Net 4.0, Vs 2010
Special thanks to Lothar "the Great" Haensler, Chris Eastwood , dr_Michael, ClearCode, Iouri and
all the other wonderful people who made and make Codeguru a great place.
Come back soon, you Gurus.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|