Request for the permission of type “FileIO Permission” failed

Users would face this error though they had defined code level permission to access the file path.

In order to test if the logic is correct, we try the code snippet for the path check in a job and we get the expected result. So there is nothing wrong in our code but may be the approach has to be tuned.

How do we solve this? Check :

  1. What is the approach used for path exists check ? – Is it WinAPI or SystemIO ?
  2. If the logic is using WINAPI, check the framework in Ax classes .
  3. SysOperation framework supports WinAPI but not RunBase.

    Thus if you are using RunBase in your class, try using System.IO approach

Example : System.IO.Directory::Exists


About AnithaEswaran

Hello all, Thanks for visiting my blog. I started this blog to share my learning with Ax members . Since I am from technical background, most of my posts would be from X++. Thanks to my mentor and my colleague Romain who guided and helped me in learning many new concepts in Ax. This instilled confidence in me to handle and troubleshoot complex issues. Feedback wrt to my blog entries are most welcome …
This entry was posted in Ax 2012, File Handling and tagged . Bookmark the permalink.

Leave a Reply

Fill in your details below or click an icon to log in: Logo

You are commenting using your account. Log Out /  Change )

Google+ photo

You are commenting using your Google+ account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )


Connecting to %s