Problem to run the Simulator

Jul 14, 2011 at 12:52 AM

Hi,

I am trying to run the simulator in my windows 7 and it doesnot work and it gives me an error as follow:

Client from 127.0.0.1:52099 is connected
Client: 127.0.0.1:52099
Request: 1234DAU8463435FC4B4DAA0C49025272C29B12CUA8B1520E201412938388191885FFA50A12028DCC093FB0471F0304407000025321456123789765432112345N6543210000FFFFFFFFFFFF
Parsing header and code of message 1234DAU8463435FC4B4DAA0C49025272C29B12CUA8B1520E201412938388191885FFA50A12028DCC093FB0471F0304407000025321456123789765432112345N6543210000FFFFFFFFFFFF...
Searching for implementor of DA...
Found implementor ThalesSim.Core.HostCommands.BuildIn.VerifyTerminalPINwithIBMAlgorithm_DA, instantiating...
Exception while parsing message or creating implementor instance
System.Reflection.TargetInvocationException: Exception has been thrown by the target of an invocation. ---> System.IO.FileNotFoundException: Could not find file 'C:\Program Files\NTG\Thales Simulator\VerifyTerminalPINwithIBMAlgorithm_DA.xml'.
File name: 'C:\Program Files\NTG\Thales Simulator\VerifyTerminalPINwithIBMAlgorithm_DA.xml'
   at System.IO.__Error.WinIOError(Int32 errorCode, String maybeFullPath)
   at System.IO.FileStream.Init(String path, FileMode mode, FileAccess access, Int32 rights, Boolean useRights, FileShare share, Int32 bufferSize, FileOptions options, SECURITY_ATTRIBUTES secAttrs, String msgPath, Boolean bFromProxy)
   at System.IO.FileStream..ctor(String path, FileMode mode, FileAccess access, FileShare share, Int32 bufferSize)
   at System.Xml.XmlDownloadManager.GetStream(Uri uri, ICredentials credentials)
   at System.Xml.XmlUrlResolver.GetEntity(Uri absoluteUri, String role, Type ofObjectToReturn)
   at System.Xml.XmlTextReaderImpl.OpenUrlDelegate(Object xmlResolver)
   at System.Threading.CompressedStack.runTryCode(Object userData)
   at System.Runtime.CompilerServices.RuntimeHelpers.ExecuteCodeWithGuaranteedCleanup(TryCode code, CleanupCode backoutCode, Object userData)
   at System.Threading.CompressedStack.Run(CompressedStack compressedStack, ContextCallback callback, Object state)
   at System.Xml.XmlTextReaderImpl.OpenUrl()
   at System.Xml.XmlTextReaderImpl.Read()
   at System.Xml.XmlTextReader.Read()
   at System.Xml.XmlReader.MoveToContent()
   at System.Data.DataSet.ReadXml(XmlReader reader, Boolean denyResolving)
   at System.Data.DataSet.ReadXml(String fileName)
   at ThalesSim.Core.Message.XML.MessageFields.RecursiveReadXMLFields(String xmlFile)
   at ThalesSim.Core.Message.XML.MessageFields.ReadXMLFields(String xmlFile)
   at ThalesSim.Core.HostCommands.AHostCommand.ReadXMLDefinitions(Boolean forceRead, String fileName)
   at ThalesSim.Core.HostCommands.AHostCommand.ReadXMLDefinitions(String fileName)
   at ThalesSim.Core.HostCommands.AHostCommand.ReadXMLDefinitions()
   at ThalesSim.Core.HostCommands.BuildIn.VerifyTerminalPINwithIBMAlgorithm_DA..ctor()
   --- End of inner exception stack trace ---
   at System.RuntimeTypeHandle.CreateInstance(RuntimeType type, Boolean publicOnly, Boolean noCheck, Boolean& canBeCached, RuntimeMethodHandle& ctor, Boolean& bNeedSecurityCheck)
   at System.RuntimeType.CreateInstanceSlow(Boolean publicOnly, Boolean fillCache)
   at System.RuntimeType.CreateInstanceImpl(Boolean publicOnly, Boolean skipVisibilityChecks, Boolean fillCache)
   at System.Activator.CreateInstance(Type type, Boolean nonPublic)
   at System.Activator.CreateInstance(Type type)
   at ThalesSim.Core.ThalesMain.WCMessageArrived(WorkerClient sender, Byte[]& b, Int32 len)
Disconnecting client.
Client disconnected.

any help on this,

thanks,

AS

Coordinator
Jul 14, 2011 at 8:53 AM

Under Windows 7, you need to run the simulator as administrator. That's because the simulator tries to read files from the program files directory.

Aug 25, 2011 at 10:10 PM

If you're not concerned about security of this directory, you can right-click->properties of the "Thales Simulator" folder, click the "Security" tab, click "Edit", select "Users" from the list and check "Full control".

This will make these issues go away.