Wrox Programmer Forums
Go Back   Wrox Programmer Forums > C# and C > C# 1.0 > BOOK: Professional C#, 2nd and 3rd Editions
| Search | Today's Posts | Mark Forums Read
BOOK: Professional C#, 2nd and 3rd Editions
This is the forum to discuss the Wrox book Professional C#, 3rd Edition by Simon Robinson, Christian Nagel, Karli Watson, Jay Glynn, Morgan Skinner, Bill Evjen; ISBN: 9780764557590
Welcome to the p2p.wrox.com Forums.

You are currently viewing the BOOK: Professional C#, 2nd and 3rd Editions section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
  #1 (permalink)  
Old February 10th, 2006, 01:13 AM
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





Similar Threads
Thread Thread Starter Forum Replies Last Post
System.InvalidCastException; System.Reflection.Tar Jophie BOOK: ASP.NET 2.0 Website Programming Problem Design Solution ISBN: 978-0-7645-8464-0 2 January 16th, 2008 03:29 PM
Beginning JavaScript 3rd Edition r_1481 BOOK: Beginning JavaScript 3rd Ed. ISBN: 978-0-470-05151-1 0 November 2nd, 2007 02:24 PM
Commentary on XSLT 2.0 3rd Edition Doug Bell Wrox Book Feedback 1 December 6th, 2006 11:43 AM
Reflection -VectorClass :System.IO.FileNotFoundExc kal2na2 C# 1 February 9th, 2006 10:10 AM
C# 3rd edition -chapter 25 fjgnena BOOK: Professional C#, 2nd and 3rd Editions 0 September 9th, 2004 03:47 PM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.