cancel
Showing results for 
Search instead for 
Did you mean: 

.NET Server for SAP Business One License Server API don't work

Former Member
0 Kudos

hi,

there is a sample on the sdn-network which describe how to fetch license informations.

https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/b01cdd9c-b656-2910-2cb1-a6444cfb...

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

Accepted Solutions (0)

Answers (1)

Answers (1)

former_member185703
Active Contributor
0 Kudos

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

Former Member
0 Kudos

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

Former Member
0 Kudos

can anybody help me.

SAP Support do not help. They said its not in their scope. Very funny.

Markus

former_member185703
Active Contributor
0 Kudos

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