For more information on this feature :) see 
http://www.microsoft.com/downloads/details.aspx?FamilyID=5e050494-1613-4b3a-9363-d69d60c56877&DisplayLang=en

Michael

From: Axapta-Knowledge-Village@yahoogroups.com [mailto:[EMAIL PROTECTED] On 
Behalf Of Subrahmanyam,Mamidi
Sent: 27. november 2007 17:40
To: Axapta-Knowledge-Village@yahoogroups.com
Subject: Re: [Axapta-Knowledge-Village] Re: File permissions


ok. where is the report running ( Menuitem for that report - runon property ). 
is that on client or on server or calledfrom?

hint#1: if it is set to server, Can you change the return type from void to 
client static void...see if that helps...

I am thinking that the code is set to run on server and the file you are 
entering is 'Viewed' as on server in stead of your local path...


if hint#1 does not help, pls try to change the report runon to 'calledfrom' or 
client. then it should work..






paulinavk <[EMAIL PROTECTED]<mailto:belforte%40paradise.net.nz>> wrote:
It is a void method called from within the fetch method of a report
based on the tutorial_RunbaseReportStd. The file name is entered
via a dialog with the dialog field type as filenameopen. The file I
am trying to overwrite has full control attributes.

Paulina

--- In Axapta-Knowledge-
[EMAIL PROTECTED]<mailto:Village%40yahoogroups.com>, "Subrahmanyam,Mamidi" 
<[EMAIL PROTECTED]> wrote:
>
> umm ok.
>
> Can you please tell me the return mode of method where this code
was written?.
> is that client static , static or void method?.
>
> I am assuming that file name and file paths are correct......
>
>
> paulinavk <[EMAIL PROTECTED]> wrote:
> Thanks for your help. I added the fileIOPermission.demand
(); but it
> doesn't make any difference. I am running via terminal server. I
> assumed I would be running it off the client and the file is
located
> in the "my Documents" folder.
>
> Do you think it's to do with terminal server?
> P.
>
> --- In 
> Axapta-Knowledge-Village@yahoogroups.com<mailto:Axapta-Knowledge-Village%40yahoogroups.com>,
>  "Subbu"
> <subbu_oh@> wrote:
> >
> > Hi there,
> >
> > Can you make sure to include the below
> >
> > fileIOPermission = new FileIOPermission(mstrExportPath, 'w');
> > fileIOPermission.assert();
> > fileIOPermission.demand();
> >
> > And also is this error you are getting when u run it on client
or
> on
> > server?
> >
> > And also where is the file located?. in the local or off of the
> > server?.
> >
> > Yes. in Ax4.0 there is a code security "feature". same applies
for
> > ODBC connection too....
> >
> >
> > Kind regards,
> > Subbu
> >
> >
> >
> > --- In 
> > Axapta-Knowledge-Village@yahoogroups.com<mailto:Axapta-Knowledge-Village%40yahoogroups.com>,
> >  "paulinavk"
> > <belforte@> wrote:
> > >
> > > Hi again, I'm still having trouble with my file permissions, I
> > had
> > > no trouble in v3.2 but the permission thing has me stumped in
v4
> > > (sp2).
> > > This is the code I have and I get an error in the info log
> saying
> > > file permission was not granted and of course the commaio file
> is
> > > always null so I dont get to the write. Where have I gone
wrong?
> > > Paulina.
> > >
> > > FileIOpermission permission;
> > > CommaIO commaFile;
> > > str Contents;
> > >
> > > permission = new FileIOpermission(inputCSV,"r");
> > >
> > > if (permission == null)
> > > throw error("permission not granted");
> > > permission.assert();
> > >
> > > Contents = "check this out";
> > > commaFile = new CommaIO(inputCSV,"W+");
> > > if (CommaFile != null)
> > > {
> > > commaFile.write(contents);
> > > }
> > >
> > > CodeAccessPermission::revertAssert();
> > > }
> > >
> >
>
>
>
>
>
>
> ---------------------------------
> Never miss a thing. Make Yahoo your homepage.
>
> [Non-text portions of this message have been removed]
>

---------------------------------
Be a better pen pal. Text or chat with friends inside Yahoo! Mail. See how.

[Non-text portions of this message have been removed]



[Non-text portions of this message have been removed]

Reply via email to