Activator.CreateInstance and .NET 1.1 SP1 causes exception

R

Ryan.Mohammed

I have a problem that does not happen without .NET 1.1 however it does
happen on machines that have .NET 1.1 SP1 installed. Createinstance
attempts to create an instance of ICEBOX.dll which references
usbComm.dll. Has anyone encountered this before?

Ryan

************** Exception Text **************
System.Reflection.TargetInvocationException: Exception has been thrown
by the target of an invocation. ---> System.IO.FileNotFoundException:
File or assembly name usbComm, or one of its dependencies, was not
found.
File name: "usbComm"
at Company.MainAppl.Hardware.ICEBOX.ICEBOX..ctor()

=== Pre-bind state information ===
LOG: DisplayName = usbComm, Version=2.0.0.0, Culture=neutral,
PublicKeyToken=null
(Fully-specified)
LOG: Appbase = C:\public\Ryan\fortesting\Debug-DriverTestCompatible\
LOG: Initial PrivatePath = NULL
Calling assembly : ICEBOX, Version=3.2.0.98, Culture=neutral,
PublicKeyToken=null.
===

LOG: Policy not being applied to reference at this time (private,
custom, partial, or location-based assembly bind).
LOG: Post-policy reference: usbComm, Version=2.0.0.0, Culture=neutral,
PublicKeyToken=null
LOG: Attempting download of new URL
file:///C:/public/Ryan/fortesting/Debug-DriverTestCompatible/usbComm.DLL.

--- End of inner exception stack trace ---
at System.RuntimeType.CreateInstanceImpl(Boolean publicOnly)
at System.Activator.CreateInstance(Type type, Boolean nonPublic)
at System.Activator.CreateInstance(Type type)
at
Company.MainAppl.Platforms.Platform.Platform.FindDebugBoxes(ArrayList
PlatformList)
at Company.MainAppl.Platforms.Platform.Platform.StartDebug()
at
Company.MainAppl.Platforms.Platform.Platform.HandleDebugMenu(Object
sender, EventArgs e)
at Crownwood.Magic.Menus.MenuCommand.OnClick(EventArgs e)
at Crownwood.Magic.Menus.MenuControl.OperateSubMenu(DrawCommand dc,
Boolean selectFirst, Boolean trackRemove)
at Crownwood.Magic.Menus.MenuControl.OnWM_OPERATEMENU(Message& m)
at Crownwood.Magic.Menus.MenuControl.WndProc(Message& m)
at System.Windows.Forms.ControlNativeWindow.OnMessage(Message& m)
at System.Windows.Forms.ControlNativeWindow.WndProc(Message& m)
at System.Windows.Forms.NativeWindow.Callback(IntPtr hWnd, Int32
msg, IntPtr wparam, IntPtr lparam)
 
R

Ryan.Mohammed

Typo:
This should read:

I have a problem that does NOT happen with .NET 1.1 however it does
happen on machines that have .NET 1.1 SP1 installed.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top