andr0dec0der / MyFormAppHelloTeamcenter

Модифицированный пример консольного приложения от Siemens на C#
7 stars 8 forks source link

relatedResponse.ServiceData was null #1

Open Leschenok opened 1 year ago

Leschenok commented 1 year ago

I tried to run the example but I get an error. I just started learning TC. What am I doing wrong.

System.NullReferenceException HResult=0x80004003 Message=Object reference not set to an instance of an object. Source=HelloTeamcenter StackTrace: at Teamcenter.Hello.DataManagement.createItems(ItemIdsAndInitialRevisionIds[] itemIds, String itemType) in D:\Projects\Siemens TC\github\MyFormAppHelloTeamcenter\hello\DataManagement.cs:line 149

andr0dec0der commented 1 year ago

I checked the functionality of the application. Works good. Replaced links with actual libraries. Changed the URL to the service. Entered login and password. The program worked.

Make sure the correct URL is specified when creating MyFormAppSession. Correct port specified. Might be port 8080 not 80 For example http://10.11.12.13:8080/tc

andr0dec0der commented 1 year ago

Make sure you are using libraries (soa_client) of the same version Teamcenter