Running Plan quality metric built for v11 in to v15.6
Hello,
I have multiple ESAPI scripts running in my Eclipse v11 that is going to be upgraded soon to v15.6.I was trying to run my plan quality scripts that are running fine in v11.0 in to the Tbox from the network location where the solution files are saved for theise scripts in .dll format. I know, I need to change the script version for these to run in new Eclipse v15.6. From the User manual, The Eclipse scripting API version mentioned is 15.5.
I changed this information from the solution file and rebuild the solution that run without any error.However when I try to run it via Tbox, I am having following error(It looks like the script version is not changed as the error still says ESAPI: VMS.TPS.Common.Model.API, Version=1.0.300.11,).Also properties of VMS.TPS.Common.Model.API shows v11.0 that is not editable. The script has possibly been built against a different version of Eclipse Scripting API that is not available in your system. Another reason might be that the script has no reference to Eclipse Scripting API at all.
There was a problem while executing the script 'HeadNeckAndProstate74_v15.esapi.dll'.
Application was not able to execute script '\Client\X$\Scripts\HeadNeckAndProstate74_v15.esapi.dll'.
Application was not able to load the required Eclipse Scripting API version.
The script has possibly been built against a different version of Eclipse Scripting API that is not available in your system. Another reason might be that the script has no reference to Eclipse Scripting API at all.
\Client\X$\Scripts\HeadNeckAndProstate74_v15.esapi.dll
System.Reflection.TargetInvocationException: Exception has been thrown by the target of an invocation. ---> VMS.TPS.Common.Model.ScriptExecutionException: There was a problem while executing the script '\Client\X$\Scripts\HeadNeckAndProstate74_v15.esapi.dll' (ESAPI: VMS.TPS.Common.Model.API, Version=1.0.300.11, Culture=neutral, PublicKeyToken=305b81e210ec4b89). ---> VMS.TPS.Common.Model.UnauthorizedScriptingAPIAccessException: Application was not able to execute script '\Client\X$\Scripts\HeadNeckAndProstate74_v15.esapi.dll'.
Application was not able to load the required Eclipse Scripting API version.
The script has possibly been built against a different version of Eclipse Scripting API that is not available in your system. Another reason might be that the script has no reference to Eclipse Scripting API at all.
at VMS.TPS.Common.Model.ApplicationScriptExecutionGuard.ValidateScriptBeforeExecution(IEnumerable`1 scriptFileInfos, String scriptFullPath, ILogFile logFile)
at VMS.TPS.Common.Model.ApplicationScriptExecutionGuard..ctor(String scriptFullPath, ApplicationScriptExecutionGuard parentGuard, AssemblyName expectedEsapiVersion, ILogFile logFile)
at VMS.TPS.Common.Model.ApplicationBase.CreateScriptExecutionGuardForBinaryPlugin(String scriptFullPath, AssemblyName expectedEsapiVersion)
at VMS.TPS.Script.Engine.LoadScript(Assembly& assembly, IApplicationScriptExecutionGuard& executionGuard, String& generatedCodeFilename, String filename)
at VMS.TPS.Script.Engine.Execute(String fileName)
--- End of inner exception stack trace ---
at VMS.TPS.Script.Engine.Execute(String fileName)
at VMS.TPS.Script.Extension.Execute(IntPtr parentWindow)
--- End of inner exception stack trace ---
at System.RuntimeMethodHandle.InvokeMethod(Object target, Object[] arguments, Signature sig, Boolean constructor)
at System.Reflection.RuntimeMethodInfo.UnsafeInvokeInternal(Object obj, Object[] parameters, Object[] arguments)
at System.Reflection.RuntimeMethodInfo.Invoke(Object obj, BindingFlags invokeAttr, Binder binder, Object[] parameters, CultureInfo culture)
at System.RuntimeType.InvokeMember(String name, BindingFlags bindingFlags, Binder binder, Object target, Object[] providedArgs, ParameterModifier[] modifiers, CultureInfo culture, String[] namedParams)
at vhost.TpsNetExtension.Execute(TpsNetExtension* , HWND__* parentWindowHandle)
Any solution is welcome.
Thank you in advance
Mayur