# Require my assembly

**URL:** <https://www.ruby-forum.com/t/require-my-assembly/157243>\
**Category:** IronRuby\
**Created:** [January 8, 2009, 7:46pm UTC](https://www.ruby-forum.com/t/require-my-assembly/157243 "2009-01-08T19:46:26Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![veganopolis](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/v/ecae2f/32.png) [@veganopolis](https://www.ruby-forum.com/u/veganopolis)\
**Post date:** [January 8, 2009, 7:46pm UTC](https://www.ruby-forum.com/t/require-my-assembly/157243/1 "2009-01-08T19:46:26Z")

</div>

Hi,

I’m new to IronRuby. I’m trying to require a .net assembly but I have  
the following error message. Any help will be very much appreciated.

## Note :

MyApp.Application.dll references MyApp.Core.dll and both are in the same  
folder C:\MyApp\Trunk\Bin\

## Code :

require ‘C:\MyApp\Trunk\Bin\MyApp.Application.dll’  
include MyApp::Application

def main  
print ZlibCompression.Decompress(ZlibCompression.Compress(“toto”))  
end

if **FILE** == $0  
main()  
end

## Error message:

Unhandled exception:  
mscorlib:0:in `ResolveType': Could not load file or assembly 'MyApp.Core, Version=1.0.278.0, Culture=neutral, Public KeyToken=null' or one of its dependencies. The system cannot find the file specified. (System::IO::FileNotFoundException ) from mscorlib:0:in`ResolveTypeHandle’

---

<div class="post-metadata">

**Author:** ![veganopolis](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/v/ecae2f/32.png) [@veganopolis](https://www.ruby-forum.com/u/veganopolis)\
**Post date:** [January 8, 2009, 8:21pm UTC](https://www.ruby-forum.com/t/require-my-assembly/157243/2 "2009-01-08T20:21:37Z")

</div>

For me it works with a path too

[http://code.google.com/p/ironruby-dbi/source/browse/trunk/src/ironruby-dbi/dbd-adonet/ADONET.rb](http://code.google.com/p/ironruby-dbi/source/browse/trunk/src/ironruby-dbi/dbd-adonet/ADONET.rb)

But I do use forward slashes

It does have some weirdness though, because sometimes I have to actually  
copy the assembly to the directory where ir.exe lives. I’m not sure as  
to  
when exactly that needs to happen.

On Thu, Jan 8, 2009 at 7:51 PM, Michael L.  
\<removed\_email\_address@domain.invalid

---

<div class="post-metadata">

**Author:** ![veganopolis](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/v/ecae2f/32.png) [@veganopolis](https://www.ruby-forum.com/u/veganopolis)\
**Post date:** [January 8, 2009, 8:02pm UTC](https://www.ruby-forum.com/t/require-my-assembly/157243/3 "2009-01-08T20:02:14Z")

</div>

currently, you have to copy MyApp.Core.dll to the location where ir.exe  
is  
located.
