on 10-29-2007 2:53 PM
hi,
there is a sample on the sdn-network which describe how to fetch license informations.
The TWBSLicenseClient project don't work. There is always an execption thrown:
'System.Reflection.TargetInvocationException' occurred in mscorlib.dll
can anybody help me?
1. The service on server is running
2. the corba brige is registered as server
3. the Twbslicenseclient don't work on client side and not on server side
I'm using SAP Business One 2005A SP01 PL27
and Visual Studio 2005 (.net framework 2)
thanks
Markus
Hi Markus,
I suggest that you "catch" the exception - and check the message that comes with it.
It didn't work for me as well - and the reason was that the port (which is hard-coded in the sample code) wasn't open on my machine; I tried another one - and that worked fine...
HTH,
Frank
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Frank,
that doesn't help. The port is open. The firewall is inactive and when i check the ports by "netstat -a" in a shell, the system describes that this port has the status "Abhören". That should be all right.
This is the exception: {"Exception has been thrown by the target of an invocation."}
Do you have any other idea whats going wrong?
Markus
Hi Markus,
Just to clarify that first:
Anything you get here on SDN doesn't fall into the scope of the formal / regular support - unless stated otherwise.
Especially code samples uploaded by externals...
Anyway - and sorry that I didn't have the time / missed to follow up with your problem...
...I still wonder what you did (or not) to isolate the problem?
- I understand that you installed the Com2Corba license bridge and the .NET service on the same system where the B1 license service is installed???
- Did you check (e.g. debug on <b>both</b> sides) whether the connection to the .NET service is established successfully?
- If not there must be sth "wrong" with your .NET installation - or the network configuration / ports ("beginners idea": maybe the port is used by "sth else"?)?!
- I am not having any issue with the sample (after changing the port number (of course in the service + the client) to a port which I knew it would work on my system (I think 4334).
- BTW: Did you use the installer from SDN to install the bridge?
Sorry, but I think there's actually not much that can be "wrong "in the bridge or the .NET service sample; I tend to suggest that you check the situation on another system.
Regards,
Frank
Message was edited by:
Frank Moebius
User | Count |
---|---|
107 | |
12 | |
11 | |
6 | |
6 | |
4 | |
4 | |
3 | |
3 | |
3 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.