Unable to start Custom Action

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.

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

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 architecture in VS from “Any CPU” to “x86”, but I still got this error.

Hi Andrei_01,

Would you be able to send the custom action, and full error log to support@finalbuilder.com. It seems that there is more going on here.