Hi,
I am working in NAV 2013 version.
WshShell is not working in NAV Application Server.
My code is as below:
IF NOT GUIALLOWED THEN BEGIN
WindowStill := 0;
BooleanReturn := FALSE;
IF ISCLEAR(Shellik) THEN
CREATE(Shellik,TRUE,TRUE);
Temp := '"C:\Program Files (x86)\WinRAR\WinRAR.exe" a -ibck F:\param.rar F:\param.txt';
X := Shellik.Run(Temp,WindowStill,BooleanReturn);
END;
It is working fine through RTC but gives error through NAS as below:
Microsoft Dynamics NAV
Microsoft Dynamics NAV Server attempted to issue a client callback to create an Automation object: 72c24dd5-d70a-438b-8a42-98424b88afb8 (CodeUnit 90000 test cu). Client callbacks are not supported on Microsoft Dynamics NAV Server.
OK
Is there any solution?
Jatin Patel
Microsoft Dynamics NAV Consultant
Jatin's Blog 0
Comments
Did you check by manually running?
-Mohana
http://mohana-dynamicsnav.blogspot.in/
https://www.facebook.com/MohanaDynamicsNav
Microsoft Dynamics NAV Consultant
Jatin's Blog
Hi
You cannot create a COM object server side and NAS Service is only service side (it don't have a client side or a RTC interface).
Your only solution is to recreate it with dotnet.
Something like:
ServerProcess is a local System.Diagnostics.Process.'System, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089'
Bye
Matteo