Click here to Skip to main content
15,896,730 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
C#
I have Created a Sql CLR Project to Read the files.
When I execute the stored procedure with a file path as input parameter its showing error 
Request for the permission of type 'System.Security.Permissions.FileIOPermission, mscorlib, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089' failed.

What is the reason behind this error and how to solve it.
Posted

1 solution

According to this
"Permissions.FileIOPermission"
i guess you have to give your executing user permission to write on the location.

Just set your TRUST Level to FULL.
 
Share this answer
 
v2

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900