p2p.wrox.com Forums

p2p.wrox.com Forums (http://p2p.wrox.com/index.php)
-   BOOK: Professional C#, 2nd and 3rd Editions (http://p2p.wrox.com/forumdisplay.php?f=44)
-   -   Reflection -:System.IO.FileNotFoundExc,3rd edition (http://p2p.wrox.com/showthread.php?t=38285)

kal2na2 February 10th, 2006 01:13 AM

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





All times are GMT -4. The time now is 11:13 AM.

Powered by vBulletin®
Copyright ©2000 - 2019, Jelsoft Enterprises Ltd.
© 2013 John Wiley & Sons, Inc.