# Unable to start Custom Action

**URL:** https://www.finalbuilder.com/forums/t/unable-to-start-custom-action/2544
**Category:** Discussion
**Created:** [June 2, 2017, 9:06am UTC](https://www.finalbuilder.com/forums/t/unable-to-start-custom-action/2544 "2017-06-02T09:06:21Z")
**Posts on this page:** 4
**Page:** 1

<div class="post-metadata">

### Author: ![beran](https://www.finalbuilder.com/forums/letter_avatar_proxy/v4/letter/b/b5ac83/32.png) [@beran](https://www.finalbuilder.com/forums/u/beran)
#### Post date: [June 2, 2017, 9:06am UTC](https://www.finalbuilder.com/forums/t/unable-to-start-custom-action/2544/1 "2017-06-02T09:06:21Z")

</div>

I'm using custom actions via .NET library in Final Builder ver.7.0.0.3450 on Windows Server 2008.  
All of them working fine, except one. That action throws error, when I'm start project in Final Builder:  
**An unexpected error occured : System.IO.FileNotFoundException: Could not load file or assembly 'Microsoft.Win32.TaskScheduler, Version=2.0.0.27238' or one of its dependencies. The system cannot find the file specified.**  
  
But all assemblies are loaded and c# project with custom actions builds just fine.  
What can be the problem? Thanks for any help.

---

<div class="post-metadata">

### Author: ![nevar](https://www.finalbuilder.com/forums/letter_avatar_proxy/v4/letter/n/c4cdca/32.png) [@nevar](https://www.finalbuilder.com/forums/u/nevar)
#### Post date: [June 2, 2017, 9:25am UTC](https://www.finalbuilder.com/forums/t/unable-to-start-custom-action/2544/2 "2017-06-02T09:25:42Z")

</div>

Hi Andrei\_01,   
  
 Looks like your using the “Task Scheduler Managed Wrapper” package in your custom action. You might be using the 4.0 version which will require FinalBuilders CLR version to be set to .Net 4.0 in the options.   
  
 Another issue might be that all the required binaries are not copied into the action defs directory where the action can locate them. The directory for assemblies for actions is located in:   
  
 C:%FINALBUILDER INSTALL DIR%\ActionDefs\Assemblies\2.0

---

<div class="post-metadata">

### Author: ![beran](https://www.finalbuilder.com/forums/letter_avatar_proxy/v4/letter/b/b5ac83/32.png) [@beran](https://www.finalbuilder.com/forums/u/beran)
#### Post date: [June 2, 2017, 9:58am UTC](https://www.finalbuilder.com/forums/t/unable-to-start-custom-action/2544/3 "2017-06-02T09:58:15Z")

</div>

Hi Jason,  
My project in Visual Studio was already set to .NET framework 4.  
I copied Microsoft.Win32.TaskScheduler.dll to this folder(C:%FINALBUILDER INSTALL DIR%\ActionDefs\Assemblies\2.0) and now I got error  
**The request is not supported. (Exception from HRESULT: 0x80070032)**  
I tried to change&nbsp;architecture in VS from “Any CPU” to “x86”, but I still got this error.

---

<div class="post-metadata">

### Author: ![nevar](https://www.finalbuilder.com/forums/letter_avatar_proxy/v4/letter/n/c4cdca/32.png) [@nevar](https://www.finalbuilder.com/forums/u/nevar)
#### Post date: [June 5, 2017, 12:50pm UTC](https://www.finalbuilder.com/forums/t/unable-to-start-custom-action/2544/4 "2017-06-05T12:50:45Z")

</div>

Hi Andrei\_01,   
  
 Would you be able to send the custom action, and full error log to [support@finalbuilder.com](mailto:support@finalbuilder.com). It seems that there is more going on here.
