|
| Issue - Cannot open RS232 port |
| Iniciado por mayuri.jaju, 09,jun. 2016 14:50 - 1 respuesta |
| |
| | | |
|
| |
| Publicado el 09,junio 2016 - 14:50 |
Have have imported a .net dll. I have a function in .net which call a port but it is not getting call from my current windev application. By creating sample application in windev it is called. I want to ask is it the environment settings omewhere in project?
Below is the error i get.
Error at line 33 of Click Initialize process. Unable to invoke <initTerminal(System.String,System.String,System.String,System.String,System.String,System.String,System.String,System.String)> method of <Boolean> type Error returned by .NET Framework: Cannot open RS232 port
----- Technical Information -----
Project : Caisse
WL call: Process of 'Click Initialize' (ZVTNetwin.Initialize), line 33, thread 0
What happened? Unable to invoke <initTerminal(System.String,System.String,System.String,System.String,System.String,System.String,System.String,System.String)> method of <Boolean> type Error returned by .NET Framework: Cannot open RS232 port
Error code: 200002 Level: fatal error (EL_FATAL)
Dump of the error of 'wd200net2.dll' module (20.0.8.0). Identifier of detailed information (.err): 200002 Debugging information: System.Reflection.TargetInvocationException: Het doel van een aanroep heeft een uitzondering veroorzaakt. ---> Wiffzack.Devices.CardTerminals.Protocols.ZVT.TransportLayer.RS232TransportException: Cannot open RS232 port bij Wiffzack.Devices.CardTerminals.Protocols.ZVT.TransportLayer.RS232Transport.OpenConnection() bij Wiffzack.Devices.CardTerminals.Protocols.ZVT.ApplicationLayer.Commands.RegistrationCommand.Execute() bij Wiffzack.Devices.CardTerminals.PTinterface.initTerminal(String transporttype, String port, String baudrate, String stopbit, String ECRPrintsAdministrationReceipts, String ECRPrintsPaymentReceipt, String PTDisableAmountInput, String PTDisableAdministrationFunction) --- Einde van intern uitzonderingsstackpad --- bij System.RuntimeMethodHandle._InvokeMethodFast(Object target, Object[] arguments, SignatureStruct& sig, MethodAttributes methodAttributes, RuntimeTypeHandle typeOwner) bij System.RuntimeMethodHandle.InvokeMethodFast(Object target, Object[] arguments, Signature sig, MethodAttributes methodAttributes, RuntimeTypeHandle typeOwner) bij System.Reflection.RuntimeMethodInfo.Invoke(Object obj, BindingFlags invokeAttr, Binder binder, Object[] parameters, CultureInfo culture, Boolean skipVisibilityChecks) bij System.Reflection.RuntimeMethodInfo.Invoke(Object obj, BindingFlags invokeAttr, Binder binder, Object[] parameters, CultureInfo culture) bij CDotNetMethod.bInvoke(Char* pszTypeName, Char* pszMethodName, Char* pszParameters, MethodInfo gcMethod, Object gcObj, CSLevel* pclPile, Int32 nNbParamPile, Int32 bValeurRetour, STOperationDotNet* pstOperation) Additional Information: EIT_EXCEPTIONDOTNET EIT_PILEWL : Click Initialize (ZVTNetwin.Initialize), line 33 EIT_DATEHEURE : 09/06/2016 14:47:59 |
| |
| |
| | | |
|
| | |
| |
| Publicado el 09,junio 2016 - 15:13 |
Hi
> creating sample application in windev it is called. I want to ask is it > the environment settings omewhere in project?
No it's not. From the message, it looks like you are not sending the correct information to the .net dll and as a result, it cannot open the desired port.
Without the documentation of the dll and your windev calling code, I doubt anybody can tell you more than that.
Best regards
-- Fabrice Harari International WinDev, WebDev and WinDev mobile Consulting
More information on http://www.fabriceharari.com |
| |
| |
| | | |
|
| | | | |
| | |
|