cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
Showing results for 
Search instead for 
Did you mean: 

Community Tip - Did you get an answer that solved your problem? Please mark it as an Accepted Solution so others with the same problem can find the answer easily. X

.net API in windows service Error running ConnectedThingClient config.

droach
7-Bedrock

.net API in windows service Error running ConnectedThingClient config.

I am trying to get a .NET (C#) windows service running using the thingwork .net API.  Everything builds and the service installs.  On launch, the ConnectedThingClient constructor calling base fails on the TWAPI dll.  I have tried 'any cpu', x64 specific and x86 specific builds/installs and they result in either a bad configuration error from windows a 607 TWAPI error. 

 

Has anyone written/installed/run a windows service to interact with the TW platform through the TW .NET API?

ACCEPTED SOLUTION

Accepted Solutions
droach
7-Bedrock
(To:droach)

Got this traced all the way through and after pushing the whole application to x64 including twapi and libraries, it boiled down to a rights issue that twapi needs to create the offline message store in the deployment folder.  Granting rights to the folder and the log enabled the client to connect and reconnect with no issues. 

 

So issue resolved, TWAPI can be run through a windows service. 

View solution in original post

1 REPLY 1
droach
7-Bedrock
(To:droach)

Got this traced all the way through and after pushing the whole application to x64 including twapi and libraries, it boiled down to a rights issue that twapi needs to create the offline message store in the deployment folder.  Granting rights to the folder and the log enabled the client to connect and reconnect with no issues. 

 

So issue resolved, TWAPI can be run through a windows service. 

Announcements


Top Tags