PC Review


Reply
Thread Tools Rate Thread

Activator.CreateInstance and .NET 1.1 SP1 causes exception

 
 
Ryan.Mohammed@gmail.com
Guest
Posts: n/a
 
      15th Jun 2006
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)

 
Reply With Quote
 
 
 
 
Ryan.Mohammed@gmail.com
Guest
Posts: n/a
 
      15th Jun 2006
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.



Ryan.Moham...@gmail.com wrote:
> 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)


 
Reply With Quote
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Activator.CreateInstance throwing exception =?Utf-8?B?cHJhdGhhbQ==?= Microsoft Dot NET Compact Framework 2 29th Jan 2007 04:54 PM
dynamically load DLL exception when calling Activator.CreateInstance(type, object[]) Nancy Sui Microsoft ASP .NET 1 30th Nov 2004 01:44 AM
Difference Between assembly.CreateInstance and System.Activator.CreateInstance John Jenkins Microsoft C# .NET 1 14th Oct 2004 10:00 PM
"Constructor not found" exception using Activator.CreateInstance. Is InvokeMember a better choice? hazz Microsoft C# .NET 5 16th Jun 2004 11:28 PM
Difference Between CurrentDomain.CreateInstance and Activator.CreateInstance b0yce Microsoft C# .NET 0 22nd Mar 2004 04:12 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 09:11 PM.