Hi,
You need a filename for the FileIOPermission('','r'), like
FileIOPermission('c:\\temt\\xyz.txt','r');
Best regards
Erik Hansen
>From: "chat_abc_xyz" <[EMAIL PROTECTED]>
>Reply-To: [email protected]
>To: [email protected]
>Subject: [development-axapta] demand() of FileIOPermission
>Date: Tue, 19 Dec 2006 06:21:38 -0000
>
>Hi All,
>
>I have the following code of X++.
>
>FileIOPermission permission;
>permission = new FileIOPermission('','r');
>permission.demand();
>
>
>The code fails at last line. I have to use this code and i can't make
>changes to this code.
>
>Can u please tell me how should I call this code so that it won't fail
>(if by using any pre-requisties) ??
>
>Thank you all in advance.
>
_________________________________________________________________
Find dine dokumenter lettere med MSN Toolbar med Windows-pc-søgning:
http://toolbar.msn.dk
Yahoo! Groups Links
<*> To visit your group on the web, go to:
http://groups.yahoo.com/group/development-axapta/
<*> Your email settings:
Individual Email | Traditional
<*> To change settings online go to:
http://groups.yahoo.com/group/development-axapta/join
(Yahoo! ID required)
<*> To change settings via email:
mailto:[EMAIL PROTECTED]
mailto:[EMAIL PROTECTED]
<*> To unsubscribe from this group, send an email to:
[EMAIL PROTECTED]
<*> Your use of Yahoo! Groups is subject to:
http://docs.yahoo.com/info/terms/