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

How to use .NET SDK sample in .Framework, Version 4.8

How to use .NET SDK sample in .Framework, Version 4.8

WEI_You
Established Member

I want to build a HMI application by windows; I found a sample in SDK(1.20)(datalayer.client.browse)maybe can help me to build it.

but I can't use the sample by .Net Framework( Version 4.8) ,it looks like base on the .NET Core,in the other subject ,they said it will be solved in this version,so I want to know how to use it,or there  have the development summary by the datalayer's interface?(I just know the document about the Rest API)

The Erro Picture(.NET Framework Project,but use the sample's code)

WEI_You_0-1691636442977.png

SDK sample add form,add breakpoint;base on .Net 6.0(because I need a Form to display;like curve or window operation

WEI_You_1-1691636639660.png

it can't stop at breakpiont

WEI_You_2-1691636783664.png

but it can work

WEI_You_3-1691636820315.png

and I want to know whether the interface can write nodes' data ?

If use the .NET 6.0 ,I can built a mobile application HMI? (maybe I can get the nodes' data by wireless device)

 

 

4 REPLIES 4

nickH
Community Moderator
Community Moderator

Hi @WEI_You 

ctrlX Data Layer API for .NET works with .Net Framework since version 2.7.1. See also this screenshot: 

image.png

 

I searched for your error message in the web and found this post on stackoverflow.com, maybe it can solve your problem. 

Some hint about your debugging issue: try to enable "native code debugging". 

image.png

 

Please keep in mind, that you are working in an unsupported toolchain, so its difficult for me to help you here. 

Best regards, 

Nick

 

WEI_You
Established Member

hello nick,I try to do it by your advices,it allways can't hit breakpoiont;

and I also can't  run in the .NET framework;

WEI_You_0-1692336660117.png

 

CodeShepherd
Community Moderator
Community Moderator

Is this still an issue or can this topic be closed?

I solved the problem,but,I can't found the reason,I change the computer,It's can debug correct

Thanks

Icon--AD-black-48x48Icon--address-consumer-data-black-48x48Icon--appointment-black-48x48Icon--back-left-black-48x48Icon--calendar-black-48x48Icon--center-alignedIcon--Checkbox-checkIcon--clock-black-48x48Icon--close-black-48x48Icon--compare-black-48x48Icon--confirmation-black-48x48Icon--dealer-details-black-48x48Icon--delete-black-48x48Icon--delivery-black-48x48Icon--down-black-48x48Icon--download-black-48x48Ic-OverlayAlertIcon--externallink-black-48x48Icon-Filledforward-right_adjustedIcon--grid-view-black-48x48IC_gd_Check-Circle170821_Icons_Community170823_Bosch_Icons170823_Bosch_Icons170821_Icons_CommunityIC-logout170821_Icons_Community170825_Bosch_Icons170821_Icons_CommunityIC-shopping-cart2170821_Icons_CommunityIC-upIC_UserIcon--imageIcon--info-i-black-48x48Icon--left-alignedIcon--Less-minimize-black-48x48Icon-FilledIcon--List-Check-grennIcon--List-Check-blackIcon--List-Cross-blackIcon--list-view-mobile-black-48x48Icon--list-view-black-48x48Icon--More-Maximize-black-48x48Icon--my-product-black-48x48Icon--newsletter-black-48x48Icon--payment-black-48x48Icon--print-black-48x48Icon--promotion-black-48x48Icon--registration-black-48x48Icon--Reset-black-48x48Icon--right-alignedshare-circle1Icon--share-black-48x48Icon--shopping-bag-black-48x48Icon-shopping-cartIcon--start-play-black-48x48Icon--store-locator-black-48x48Ic-OverlayAlertIcon--summary-black-48x48tumblrIcon-FilledvineIc-OverlayAlertwhishlist