Wrox Programmer Forums

Need to download code?

View our list of code downloads.

Go Back   Wrox Programmer Forums > C# and C > C# 1.0 > C#
Password Reminder
Register
Register | FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read
C# Programming questions specific to the Microsoft C# language. See also the forum Beginning Visual C# to discuss that specific Wrox book and code.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the C# section of the Wrox Programmer to Programmer discussions. This is a community of tens of thousands of software programmers and website developers including Wrox book authors and readers. As a guest, you can read any forum posting. By joining today you can post your own programming questions, respond to other developers’ questions, and eliminate the ads that are displayed to guests. Registration is fast, simple and absolutely free .
DRM-free e-books 300x50
Reply
 
Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old February 9th, 2006, 08:30 AM
Registered User
 
Join Date: Feb 2006
Location: , , India.
Posts: 2
Thanks: 0
Thanked 0 Times in 0 Posts
Default Reflection -VectorClass :System.IO.FileNotFoundExc

hi
I am trying one of your codes in reflection Chapter10 and getting error as
<pre>
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.
</pre>
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

Reply With Quote
  #2 (permalink)  
Old February 9th, 2006, 10:10 AM
Friend of Wrox
Points: 3,489, Level: 24
Points: 3,489, Level: 24 Points: 3,489, Level: 24 Points: 3,489, Level: 24
Activity: 0%
Activity: 0% Activity: 0% Activity: 0%
 
Join Date: Jun 2003
Location: Central, NJ, USA.
Posts: 1,102
Thanks: 0
Thanked 2 Times in 2 Posts
Default

Questions that are specific to a book should be posted in that book's discussion forum.

Hal Levy
Please do your own homework.
I am here to help you, not do it for you.
I do not have sample code for anything
Reply With Quote
Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

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 Off
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are Off


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
System.Reflection.AmbiguousMatchException: Ambiguo vikas.gupta .NET Framework 2.0 1 June 28th, 2007 08:20 AM
Using System.Reflection maxl Pro Visual Basic 2005 0 March 21st, 2007 05:42 PM
Reflection -:System.IO.FileNotFoundExc,3rd edition kal2na2 BOOK: Professional C#, 2nd and 3rd Editions 0 February 10th, 2006 01:13 AM
System.IO.FileNotFoundException cuca_macaii2000 BOOK: ASP.NET Website Programming Problem-Design-Solution 1 February 5th, 2005 10:10 AM



All times are GMT -4. The time now is 07:38 PM.


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