# FB6 +.Net Custom Action =&gt; change assembly path?

**URL:** https://www.finalbuilder.com/forums/t/fb6-net-custom-action-gt-change-assembly-path/1503
**Category:** Discussion
**Created:** [June 17, 2010, 8:47am UTC](https://www.finalbuilder.com/forums/t/fb6-net-custom-action-gt-change-assembly-path/1503 "2010-06-17T08:47:08Z")
**Posts on this page:** 5
**Page:** 1

<div class="post-metadata">

### Author: ![deleted\_user](https://www.finalbuilder.com/forums/user_avatar/www.finalbuilder.com/deleted_user/32/937_2.png) [@deleted\_user](https://www.finalbuilder.com/forums/u/deleted_user)
#### Post date: [June 17, 2010, 8:47am UTC](https://www.finalbuilder.com/forums/t/fb6-net-custom-action-gt-change-assembly-path/1503/1 "2010-06-17T08:47:08Z")

</div>

Hello,  
I am using the .Net FB API to create some custom actions. It works quite well, but the restiction that the assembly has to be in Assembly directory is really anoying since I have to copy the file and all its dependencies manually after each change. Is there a way to supply a full path of assebmly or change the search path in FB?

Best regards,  
quirrel

---

<div class="post-metadata">

### Author: ![Vincent](https://www.finalbuilder.com/forums/user_avatar/www.finalbuilder.com/vincent/32/938_2.png) [@Vincent](https://www.finalbuilder.com/forums/u/Vincent)
#### Post date: [June 17, 2010, 9:33am UTC](https://www.finalbuilder.com/forums/t/fb6-net-custom-action-gt-change-assembly-path/1503/2 "2010-06-17T09:33:00Z")

</div>

No, this is a restriction of the .NET CLR, it can only load assemblies from the same directory as the application, or a sub directory of it (and then only if you tell the CLR to, which we do), or from the GAC.

---

<div class="post-metadata">

### Author: ![deleted\_user](https://www.finalbuilder.com/forums/user_avatar/www.finalbuilder.com/deleted_user/32/937_2.png) [@deleted\_user](https://www.finalbuilder.com/forums/u/deleted_user)
#### Post date: [June 23, 2010, 4:54am UTC](https://www.finalbuilder.com/forums/t/fb6-net-custom-action-gt-change-assembly-path/1503/3 "2010-06-23T04:54:56Z")

</div>

ok, I undestand the issue but what about using Assembly.LoadFrom?

Reading [http://geekswithblogs.net/akraus1/articles/74319.aspx](http://geekswithblogs.net/akraus1/articles/74319.aspx)&nbsp;and [http://www.codeproject.com/KB/vb/Lo...Games.aspx](http://www.codeproject.com/KB/vb/LoadAssembly_Games.aspx)&nbsp;it seems that you could load the assembly from any place with this method.  
Is it possibly to use a custom subdirectory?

---

<div class="post-metadata">

### Author: ![Vincent](https://www.finalbuilder.com/forums/user_avatar/www.finalbuilder.com/vincent/32/938_2.png) [@Vincent](https://www.finalbuilder.com/forums/u/Vincent)
#### Post date: [June 24, 2010, 3:05am UTC](https://www.finalbuilder.com/forums/t/fb6-net-custom-action-gt-change-assembly-path/1503/4 "2010-06-24T03:05:33Z")

</div>

We use the CLR Hosting api’s, there is not Assembly.LoadFrom method. We have tried the various methods for loading assemblies and none of them would allow us to do what you are asking.

---

<div class="post-metadata">

### Author: ![deleted\_user](https://www.finalbuilder.com/forums/user_avatar/www.finalbuilder.com/deleted_user/32/937_2.png) [@deleted\_user](https://www.finalbuilder.com/forums/u/deleted_user)
#### Post date: [June 24, 2010, 6:13am UTC](https://www.finalbuilder.com/forums/t/fb6-net-custom-action-gt-change-assembly-path/1503/5 "2010-06-24T06:13:05Z")

</div>

so, is it possible to use an own subdirectory for the custom action, e.g. Assembly\2.0\mayActionDir\assembly.dll?
