# Getting error in invoke code activity using c#

**URL:** <https://forum.uipath.com/t/getting-error-in-invoke-code-activity-using-c/140396>\
**Category:** Academy Feedback\
**Tags:** system, activities\
**Created:** [August 7, 2019, 10:42am UTC](https://forum.uipath.com/t/getting-error-in-invoke-code-activity-using-c/140396 "2019-08-07T10:42:56Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Gaurav07](https://avatars.discourse-cdn.com/v4/letter/g/eb9ed0/32.png) [@Gaurav07](https://forum.uipath.com/u/Gaurav07)\
**Post date:** [August 7, 2019, 10:42am UTC](https://forum.uipath.com/t/getting-error-in-invoke-code-activity-using-c/140396/1 "2019-08-07T10:42:56Z")

</div>

Error message - No compiled code to run  
error CS1026: ) expected at line 3 to 8

 ![image](https://global.discourse-cdn.com/uipath/original/3X/2/f/2f867f6550780ec9e7be7fabf78379fd4bf07edd.png)

---

<div class="post-metadata">

**Author:** ![pattyricarte](https://sea2.discourse-cdn.com/uipath/user_avatar/forum.uipath.com/pattyricarte/32/81346_2.png) [@pattyricarte](https://forum.uipath.com/u/pattyricarte)\
**Post date:** [August 7, 2019, 10:51am UTC](https://forum.uipath.com/t/getting-error-in-invoke-code-activity-using-c/140396/2 "2019-08-07T10:51:43Z")

</div>

Hi @Gaurav07

Have you try this code to run in [vb.net](http://vb.net) codes just a trial and error !

cheers 😃

Happy learning 😃

---

<div class="post-metadata">

**Author:** ![HareeshMR](https://sea2.discourse-cdn.com/uipath/user_avatar/forum.uipath.com/hareeshmr/32/181825_2.png) [@HareeshMR](https://forum.uipath.com/u/HareeshMR)\
**Post date:** [August 7, 2019, 11:27am UTC](https://forum.uipath.com/t/getting-error-in-invoke-code-activity-using-c/140396/3 "2019-08-07T11:27:55Z")

</div>

Can you post the code you are trying to run @Gaurav07?
