Get Help:Ask a Question in our Forums|Report a Bug|More Help Resources
Last post Jan 03, 2013 03:27 PM by dmsWebDev
Dec 31, 2012 10:15 PM|LINK
I feel I must say I am a newbie.
I converted a previous developers v7.1 C# asp.net web site app to v9.0 or Visual Studio 2008 on Win7 64 bit successfully. The app calls an external class file (written in vb) and housed in its own solution/project. I re-wrote this external class as a method
in the app to eliminate it's dependancy on the external class and it is working but I can't get rid of the references to the old dll. I commented out the "using XXX" reference and excluded all code/files that are no longer needed. (There were multiple copies
of the of same aspx and aspx.cs files only renamed). I also updated the page directive to Inherit the correct aspx file because it was pointing to one of the copies that I excluded.
The problem is I now get an error on a button click referencing the wrong file path to the external class XXX.dll, the file path is on another machine where it used to reside. I don't need to rewire the file path since I'm not going to use that dll anymore.
I re-builld the code successfully so I thought that was enough. The good news is developer built in error catch which throws this:
Could not load file or assembly 'XXX, Version=1.0.2474.27321, Culture=neutral, PublicKeyToken=null' or one of its dependencies. The system cannot find the file specified. nameofapp at nameofapp.nameofclass1.nameofclass2..ctor(String InputRow, Label& debug)
at nameofapp.nameofclass1.btnNext_Click(Object sender, EventArgs e) in C:\Documents and Settings\username\Desktop\Unfiled Dev\nameofapp\Copy of nameofclass1.aspx.cs:line 381
How can I eliminate this reference to wrong file path? Actually I don't want code to reference XXX.dll at all.
Jan 01, 2013 06:34 AM|LINK
Delete XXX.dll from your bin folder.
Also if there is refrence in your project then remove it.
Please check below URL :-
Jan 01, 2013 04:15 PM|LINK
Jan 03, 2013 03:27 PM|LINK
Sameer - thank you so much for the link, very helpful!