I tried the API a few weeks ago and am excited to get going with it. But having issues and have no idea what could be the problem. The linked video best explains. I have tried this as a C#, .net and WPF project all with the same issue. I have the Target CPU to any and tried .net framework versions 4.7.2 , 4.8, and 4.8.1. Dev computer is a Surface Pro9 Snap Dragon processor . If you need more info let me know.
Build error with no errors reported <resolved>
Moderator: cnckeith
-
- Posts: 42
- Joined: Wed Oct 16, 2024 3:30 pm
- Acorn CNC Controller: Yes
- Plasma CNC Controller: No
- AcornSix CNC Controller: No
- Allin1DC CNC Controller: No
- Hickory CNC Controller: No
- Oak CNC controller: No
- CNC Control System Serial Number: none
- DC3IOB: No
- CNC12: Yes
- CNC11: No
- CPU10 or CPU7: No
Build error with no errors reported <resolved>
(Note: Liking will "up vote" a post in the search results helping others find good information faster)
-
- Posts: 82
- Joined: Wed Oct 19, 2022 4:49 pm
- Acorn CNC Controller: Yes
- Allin1DC CNC Controller: Yes
- Oak CNC controller: Yes
- CNC Control System Serial Number: none
- DC3IOB: No
- CNC12: No
- CNC11: Yes
- CPU10 or CPU7: No
Re: Build error with no errors reported
Hi Ryan,
Ah, your Surface 9 Pro might be the issue.
I don't believe we support ARM processors, like the Snap Dragon, at this time.
You could try another development device and see if you have better luck, or maybe download my example project from GitHub and see if it has the same issue: https://github.com/jacobholes/CentroidA ... _PowerFeed
The only other thing I can see that might cause an issue would be building for "Any CPU".
As of CNC12 v5.08, we build CNC12 and the Centroid API for x64 systems. You can try changing the CPU profile from "Any CPU" to "x64" and that might work if Microsoft's ARM compatibility layer is as good as they say it is, but I can't make any promises.
Instructions for changing the CPU in Visual Studio is here:
Ah, your Surface 9 Pro might be the issue.
I don't believe we support ARM processors, like the Snap Dragon, at this time.
You could try another development device and see if you have better luck, or maybe download my example project from GitHub and see if it has the same issue: https://github.com/jacobholes/CentroidA ... _PowerFeed
The only other thing I can see that might cause an issue would be building for "Any CPU".
As of CNC12 v5.08, we build CNC12 and the Centroid API for x64 systems. You can try changing the CPU profile from "Any CPU" to "x64" and that might work if Microsoft's ARM compatibility layer is as good as they say it is, but I can't make any promises.
Instructions for changing the CPU in Visual Studio is here:
When requesting support please read this post first.
A fresh report makes it easier to assist you. To make a report check this post
A fresh report makes it easier to assist you. To make a report check this post
(Note: Liking will "up vote" a post in the search results helping others find good information faster)
-
- Posts: 42
- Joined: Wed Oct 16, 2024 3:30 pm
- Acorn CNC Controller: Yes
- Plasma CNC Controller: No
- AcornSix CNC Controller: No
- Allin1DC CNC Controller: No
- Hickory CNC Controller: No
- Oak CNC controller: No
- CNC Control System Serial Number: none
- DC3IOB: No
- CNC12: Yes
- CNC11: No
- CPU10 or CPU7: No
Re: Build error with no errors reported
Changing the target CPU did not correct the issue. I will try with my other dev computer to rule out the ARM processor. If it makes a difference CNC12 runs on the Surface Pro9. I am traveling at the moment so it will be a bit before I can get to my other computer.
(Note: Liking will "up vote" a post in the search results helping others find good information faster)
-
- Posts: 82
- Joined: Wed Oct 19, 2022 4:49 pm
- Acorn CNC Controller: Yes
- Allin1DC CNC Controller: Yes
- Oak CNC controller: Yes
- CNC Control System Serial Number: none
- DC3IOB: No
- CNC12: No
- CNC11: Yes
- CPU10 or CPU7: No
Re: Build error with no errors reported
Ryan,
I did some research on Visual Studio for ARM and couldn't come up with a solid solution. You might have luck if you try building for .Net 8.0 and have your system on the newest Microsoft Update, I see some additional support was added for ARM64 debugging back in September that looks like it improved x64 emulation but I can't say if that would do the trick or not.
Officially, we don't support ARM devices so it's awesome to hear that CNC12 works at all! That compatibility layer really is something.
I did some research on Visual Studio for ARM and couldn't come up with a solid solution. You might have luck if you try building for .Net 8.0 and have your system on the newest Microsoft Update, I see some additional support was added for ARM64 debugging back in September that looks like it improved x64 emulation but I can't say if that would do the trick or not.
Officially, we don't support ARM devices so it's awesome to hear that CNC12 works at all! That compatibility layer really is something.
When requesting support please read this post first.
A fresh report makes it easier to assist you. To make a report check this post
A fresh report makes it easier to assist you. To make a report check this post
(Note: Liking will "up vote" a post in the search results helping others find good information faster)
-
- Posts: 42
- Joined: Wed Oct 16, 2024 3:30 pm
- Acorn CNC Controller: Yes
- Plasma CNC Controller: No
- AcornSix CNC Controller: No
- Allin1DC CNC Controller: No
- Hickory CNC Controller: No
- Oak CNC controller: No
- CNC Control System Serial Number: none
- DC3IOB: No
- CNC12: Yes
- CNC11: No
- CPU10 or CPU7: No
Re: Build error with no errors reported
I have tested now on an Intel i7 with the same results. Blank/empty project with reference set. The project will not run if I have the API declared. Can you share the source for one of your projects to test? VB.net or C#.
Edit: I tried the project you posted in GitHub. The attached image is the errors I get with your code. I am using the dll that was installed with CNC12 could it be a different version than what you are using?
Edit: I tried the project you posted in GitHub. The attached image is the errors I get with your code. I am using the dll that was installed with CNC12 could it be a different version than what you are using?
(Note: Liking will "up vote" a post in the search results helping others find good information faster)
-
- Posts: 82
- Joined: Wed Oct 19, 2022 4:49 pm
- Acorn CNC Controller: Yes
- Allin1DC CNC Controller: Yes
- Oak CNC controller: Yes
- CNC Control System Serial Number: none
- DC3IOB: No
- CNC12: No
- CNC11: Yes
- CPU10 or CPU7: No
Re: Build error with no errors reported
Ryan,
I'm building and testing with CNC12 v5.20 but just to check if different versions matter, I installed v5.10 but kept the v5.20 DLL and received no errors.
Of the three messages in your error log, none of them are caused by the CentroidAPI.
The first warning is a result of me changing .Net Versions, I get that warning as well but the project builds fine.
The two actual errors below that are because you downloaded files from the internet and Microsoft flags them as unsafe by default.
Please see this link: https://learn.microsoft.com/en-us/answe ... ts-being-i
In particular, this answer here to remove the 'mark of the web' so Visual Studio allows the forms to be used.
And report back if the Project then builds or if it still exits without error after that.
Also a few questions that might help point us in the correct direction:
What version of Visual Studio are you using?
What version of CNC12 is installed?
Can you attach a report from the i7 machine?
Is CNC12 running when you are attempting the build?
I'm building and testing with CNC12 v5.20 but just to check if different versions matter, I installed v5.10 but kept the v5.20 DLL and received no errors.
Of the three messages in your error log, none of them are caused by the CentroidAPI.
The first warning is a result of me changing .Net Versions, I get that warning as well but the project builds fine.
The two actual errors below that are because you downloaded files from the internet and Microsoft flags them as unsafe by default.
Please see this link: https://learn.microsoft.com/en-us/answe ... ts-being-i
In particular, this answer here to remove the 'mark of the web' so Visual Studio allows the forms to be used.
And report back if the Project then builds or if it still exits without error after that.
Also a few questions that might help point us in the correct direction:
What version of Visual Studio are you using?
What version of CNC12 is installed?
Can you attach a report from the i7 machine?
Is CNC12 running when you are attempting the build?
When requesting support please read this post first.
A fresh report makes it easier to assist you. To make a report check this post
A fresh report makes it easier to assist you. To make a report check this post
(Note: Liking will "up vote" a post in the search results helping others find good information faster)
-
- Posts: 42
- Joined: Wed Oct 16, 2024 3:30 pm
- Acorn CNC Controller: Yes
- Plasma CNC Controller: No
- AcornSix CNC Controller: No
- Allin1DC CNC Controller: No
- Hickory CNC Controller: No
- Oak CNC controller: No
- CNC Control System Serial Number: none
- DC3IOB: No
- CNC12: Yes
- CNC11: No
- CPU10 or CPU7: No
Re: Build error with no errors reported
Update: Not sure what I did differently but I have a working project now. It looks like it needs to use .net 6.0 and target PC set to X64.
(Note: Liking will "up vote" a post in the search results helping others find good information faster)