Skip to main content
Post a question

Notifications

Announcements

No record found.

Community site session details

Community site session details

Session Id : zMwy1J8/U+hRWk9akB5+tG
Finance | Project Operations, Human Resources, ...
Answered

Issue with v10.0.40: OperationCanceledException when Rebuilding Solution in Visual Studio

Like (3) ShareShare
ReportReport
Posted on 20 Jun 2024 11:49:11 by 235

Hello everyone,

I'm currently facing an issue with version 10.0.40. When I rebuild our solution in Visual Studio, I encounter the following error:

Description: OperationCanceledException: The operation was canceled.
File: Microsoft.Dynamics.Framework.Tools.BuildTasks.17.0.targets

Interestingly, building the solution (instead of rebuilding) does not generate the error.

Has anyone else experienced this problem? If so, do you have any updates or solutions to resolve it? Your help would be greatly appreciated!

Thank you in advance!

Best regards,
Diego

  • Hakan Fatih YILDIRIM_1 Profile Picture
    Hakan Fatih YILDIRIM_1 14 on 20 Jan 2025 at 07:45:45
    Issue with v10.0.40: OperationCanceledException when Rebuilding Solution in Visual Studio

    Thank you Ferhat , I have updated version to 10.0.42 , following your way . and the issue is resolved. It gave me hard time.

  • Koto Profile Picture
    Koto 2 on 29 Nov 2024 at 14:11:11
    Issue with v10.0.40: OperationCanceledException when Rebuilding Solution in Visual Studio
    Everytime this error occured to me, it happened only when I added a new EDT to the project. I found out by accident, strangely enough, that when this new EDT had as a label an hard coded text, building the project gives the error OperationCanceledException
     
    But when you place a proper label, ex: @<LabelId>:<LabelDescription>,  to the label property of the EDT, suddenly the build finishes with no errors. 
    This is by a far a solution to the problem, and I have yet to investigate why this happens, but it might help someone, having the same case as me.
     
     
  • Verified answer
    Ferhat.S Profile Picture
    Ferhat.S 238 on 08 Jul 2024 at 12:09:01
    Issue with v10.0.40: OperationCanceledException when Rebuilding Solution in Visual Studio
    Hey Andre and Diego,
     
    Upgraded my platform release version to 7.0.7279.101 its working totaly fine.
     
    My steps are go lcs > cloud-hosted environments > select dev machine > full details > Check Available Updates its bottom of screen> you will see update there go View Update > Save Package > I included all of them cuz i dont know id of the problem > and save a package it will generate a deployable package on your asset library you can apply updates.
     
    Hope its fixes yours to.
  • Ferhat.S Profile Picture
    Ferhat.S 238 on 08 Jul 2024 at 09:18:40
    Issue with v10.0.40: OperationCanceledException when Rebuilding Solution in Visual Studio
    Hey,
     
    Well on my side building my model and depended reference not fixing issue its still gives me error. The only way i get rid of doing full build with all models but it takes to loong cant wait 6 7 hour for any change :)  Today i got feedback from microsoft they told me they fixed with platform version 7.0.7279.88 My current version is  7.0.7279.51 so i generated package if its solves the problem i will let you know.
  • Diego Mancassola Profile Picture
    Diego Mancassola 235 on 08 Jul 2024 at 08:52:17
    Issue with v10.0.40: OperationCanceledException when Rebuilding Solution in Visual Studio
    Hello, i have not found any solution, other my collegue has the same problem, seems a issue of last platform update.
     
    My solution is to not use the Rebuild option but only Build option, but sometimes needs a full build because assembly not reflect changes
     
    Yes, of course Andre it's a solution building full model, but it's little be more time expensibile respect the classi build, but also for me it's that the solution, because sometime the assemby did't reflects new changes, sometimes.
     
    In my opinion is something as Ferhat told releated to sync to DB, normally i don't enable automatic build at build, but i can't fina anything for now to releate the problem to something or type of object.
  • AndrĂ© Arnaud de Calavon Profile Picture
    André Arnaud de Cal... 292,610 Super User 2025 Season 1 on 08 Jul 2024 at 08:21:05
    Issue with v10.0.40: OperationCanceledException when Rebuilding Solution in Visual Studio
    HI Diego, Ferhat,

    I stopped building a project or solution and now I always build the whole model. It will ensure that all objects in the model are included and you can bypass error like this one.
  • Ferhat.S Profile Picture
    Ferhat.S 238 on 08 Jul 2024 at 06:25:03
    Issue with v10.0.40: OperationCanceledException when Rebuilding Solution in Visual Studio
    Hey everyone,
     
    Same issue hapenning me.
    If i had to detail more on my side when i add any new object which is need to dbsync to my project and try to build or rebuild it gives same error. But when i add classes or change any class code it works fine. When i do build everything with db sync its working fine aswell.
     
    Have you guys find any soulition about that ?
     
     
  • bechir-marco Profile Picture
    bechir-marco 19 on 25 Jun 2024 at 09:59:19
    Issue with v10.0.40: OperationCanceledException when Rebuilding Solution in Visual Studio
    Hi AndrĂ© Arnaud, I tried to rebuild another project solution and no error appeared, but when I tried to rebuild again my project solution I got these errors 
    when I do full rebuild to the model with database sync everything works fine no issues.
  • bechir-marco Profile Picture
    bechir-marco 19 on 24 Jun 2024 at 16:00:14
    Issue with v10.0.40: OperationCanceledException when Rebuilding Solution in Visual Studio
    hello everyone,
     
    I'm experiencing the same issue any updates on this matter ?
  • Diego Mancassola Profile Picture
    Diego Mancassola 235 on 21 Jun 2024 at 08:02:38
    Issue with v10.0.40: OperationCanceledException when Rebuilding Solution in Visual Studio

    Hana, Thank you for the suggestion. I've already tried the solution provided in the link, but unfortunately, it didn't work for me.

    André, I'm currently using the classic cloud-hosted virtual machines (CHE) for development.

     

    Best regards,
    Diego

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

Daivat Vartak – Community Spotlight

We are honored to recognize Daivat Vartak as our March 2025 Community…

Announcing Our 2025 Season 1 Super Users!

A new season of Super Users has arrived, and we are so grateful for the daily…

Kudos to the February Top 10 Community Stars!

Thanks for all your good work in the Community!

Leaderboard

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 292,610 Super User 2025 Season 1

#2
Martin Dráb Profile Picture

Martin Dráb 231,558 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156 Moderator

Leaderboard

Product updates

Dynamics 365 release plans
Loading started