HI to all, I want to convert the client side batch to server side. the batch call a bat file. In client mode it work fine, I used the winapi:shellexecute method. But in server mode, this winapi:shellexecute is not available.
The bat contain the ftp I.P. while the config file contain the user/password to the ftp and the directory where I want to move the file from my local drive to ftp folder. any idea how to convert this batch to server mode? regards, dgreat --- In Axapta-Knowledge-Village@yahoogroups.com, "Sumit Loya" <loya.su...@...> wrote: > > Hi, > > Impersonation is used in case of run as, it has to be true if batch jobs are > running on server as server will log into AX using an alias and not a > specific user. That is why impersonation is enabled. As you have disabled > impersonation, the jobs are running on the client and not on server that is > why error has disappeared. > > Regards, > Sumit > > On Thu, Nov 6, 2008 at 7:31 PM, dgreatone123 <dgreatone...@...>wrote: > > > Hi Sumit, > > > > Thanks for your reply. While trouble shooting the error I consider > > comparing the code of the RunbaseBatch in v4.0 and ax2009 and found > > some interesting difference in the method impersonating. In AX4.0 it > > is false while in ax2009 it is set to true. I just tried to override > > this method to false and the error dissappeared. > > > > regards, > > great > > > > ---------------------------------------------------------- > > Extend your network, join the Microsoft Dynamics AX Knowledge Village at > > LINKEDIN ! http://www.linkedin.com/e/gis/165338 > > ---------------------------------------------------------- > > > > --- In > > Axapta-Knowledge-Village@yahoogroups.com<Axapta-Knowledge-Village%40yahoogroups.com>, > > "Sumit Loya" > > <loya.sumit@> wrote: > > > > > > Hi, > > > > > > You will have to run the batch class on the client. Even though you > > may have > > > batch class running on client, if you include this class for batch > > > processing by server it will throw error. Use client side batch > > processing > > > for the class. Or the method that is available to run on client > > should be > > > made available to server as well.. > > > > > > Hope this helps. > > > > > > Regards, > > > Sumit > > > > > > On Wed, Nov 5, 2008 at 3:20 PM, dgreatone123 > > <dgreatone123@>wrote: > > > > > > > Hi All, > > > > > > > > While running a batch jon in ax2009, an error appear as shown > > below: > > > > > > > > The server-side impersonated (RunAs) session tried to invoke a > > method > > > > that is available > > > > for client-side processing only. > > > > > > > > I have already change the property of the batch from server to > > client > > > > and to call from but the same error appear. > > > > > > > > Any idea or help will be greatly appreciates. > > > > > > > > regards, > > > > Dgreat > > > > > > > > ---------------------------------------------------------- > > > > Participate in the Microsoft Dynamics AX Knowledge Village at > > LINKEDIN ! > > > > http://www.linkedin.com/e/gis/165338 > > > > ---------------------------------------------------------- > > > > > > > > > > > > > > > > > >