View Single Post
  #1 (permalink)  
Old February 10th, 2006, 01:13 AM
kal2na2 kal2na2 is offline
Registered User
 
Join Date: Feb 2006
Location: , , India.
Posts: 2
Thanks: 0
Thanked 0 Times in 0 Posts
Default Reflection -:System.IO.FileNotFoundExc,3rd edition

hi
I am trying one of your codes in reflection Chapter10 and getting error as

Unhandled Exception: System.IO.FileNotFoundException: File or assembly name VectorClass, or one of its dependencies, was not found.
File name: "VectorClass"
   at System.Reflection.Assembly.nLoad(AssemblyName fileName, String codeBase, Boolean isStringized, Evidence assemblySecurity, Boolean throwOnFileNotFound, Assembly locationHint, StackCrawlMark& stackMark)
   at System.Reflection.Assembly.InternalLoad(AssemblyNa me assemblyRef, Boolean
stringized, Evidence assemblySecurity, StackCrawlMark& stackMark)
   at System.Reflection.Assembly.InternalLoad(String assemblyString, Evidence as
semblySecurity, StackCrawlMark& stackMark)
   at System.Reflection.Assembly.Load(String assemblyString)
   at Wrox.ProCSharp.LookUpWhatsNew.WhatsNewChecker.Main () in c:\my documents\visual studio projects\whatsnewattributes\lookupwh
atsnew.cs:line 17

=== Pre-bind state information ===
LOG: DisplayName = VectorClass
 (Partial)
LOG: Appbase = C:\My Documents\Visual Studio Pro
jects\WhatsNewAttributes\bin\DebugLOG: Initial PrivatePath = NULL
Calling assembly : WhatsNewAttributes, Version=0.0.0.0, Culture=neutral, PublicK
eyToken=null.
===

LOG: Policy not being applied to reference at this time (private, custom, partia
l, or location-based assembly bind).
LOG: Post-policy reference: VectorClass
LOG: Attempting download of new URL file:///C:/M
y Documents/Visual Studio Projects/WhatsNewAttributes/bin/Debug/VectorClass.DLL.

LOG: Attempting download of new URL file:///C:/M
y Documents/Visual Studio Projects/WhatsNewAttributes/bin/Debug/VectorClass/Vect
orClass.DLL.
LOG: Attempting download of new URL file:///C:/M
y Documents/Visual Studio Projects/WhatsNewAttributes/bin/Debug/VectorClass.EXE.

LOG: Attempting download of new URL file:///C:/M
y Documents/Visual Studio Projects/WhatsNewAttributes/bin/Debug/VectorClass/Vect
orClass.EXE.

I am not able to rectify it comes near "Assembly theAssembly = Assembly.Load("VectorClass");" in the lookupwhatsnew class .
Can anyone tell me what went wrong and how to rectify it

thanks in advance