Add mscript.dll to References

Technical support and scripting issues

Moderators: JRL, Dorian (MJT support)

Post Reply
mam
Newbie
Posts: 1
Joined: Fri Sep 09, 2011 10:27 am

Add mscript.dll to References

Post by mam » Fri Sep 09, 2011 10:34 am

When iI ry to add mscript.dll to my references in a VB.net project using VS 2.010 I got this error:


Colud not load file or assembly 'mscript.dll' or one of its dependencies. The module was epected to contain an assembly manifiest.
This file may not be a management assembly

Can you help me to add this to my references?

Thanks[/img][/list]

User avatar
Marcus Tettmar
Site Admin
Posts: 7395
Joined: Thu Sep 19, 2002 3:00 pm
Location: Dorset, UK
Contact:

Post by Marcus Tettmar » Fri Sep 09, 2011 11:28 am

mscript.dll is a native Win32 dll not a .Net assembly. So you do not want .Net to attempt to load it.

As I am not a .Net developer I'm not really sure what putting something in your "references" means.

I would expect that you are using the mscript OCX and loading it dynamically (e.g. using a CreateObject) rather than linking it statically in your project somewhere. Make sure that the files are in the same folder as your projects .exe.
Marcus Tettmar
http://mjtnet.com/blog/ | http://twitter.com/marcustettmar

Did you know we are now offering affordable monthly subscriptions for Macro Scheduler Standard?

Post Reply
cron
Sign up to our newsletter for free automation tips, tricks & discounts