Object 'FileIOPermission' could not be created error in ax 2009

Hi,

i have read the website url which have more than 255 characters.So i have changed the url size from 255 to 300.

But after changing this it is throwing me an error that " Object ‘FileIOPermission’ could not be created" .

please refer the FileIOPerm code.

fileIOPerm = new FileIOPermission(CurrencyConverterParameters::find().ExchAutomationSite,‘R’);

fileIOPerm.assert();

Please anyone clarify that how to read the url which have more than 255 characters.

REgards,

Suganthi