Problem After Rename

W

Wayne Wengert

I am using VSNET 2003. I have a project in which I renamed a form (I renamed
"frmBand Application" to "frmBandInformation") and I changed the Class name
in the code-behind but when I try to run the app I get the error "Could not
load type 'WBA_StaffControls.frmBand_Application'"

Where is that coming from? What did I forget to change?

Wayne
 
T

TDAVISJR

Look in your .aspx file at the top in the @Page directive. You will need to
make a change there also.
 
W

Wayne Wengert

Thanks for the response but VSNET actually corrected that when I did the
renae.

Wayne
 
H

Hans Kesting

Wayne said:
Thanks for the response but VSNET actually corrected that when I did
the renae.

Wayne

You need to change both "Codebehind" and "Inherits". The first gets done
automatically, but the second not ...

Hans Kesting
 
W

Wayne Wengert

Hans;

Thanks for the reply but both of those were updated by VSNET when I renamed
the form. The only manual change I've done was to the Class name in the
code.

Wayne
 
W

Wayne Wengert

I think I may know what is causing the problem. When I FTP the new values to
sub-folders like _vti_cnf, it replaces fles with newer versions bt it does
not erase files that are no longer used. I think I need to manually clear
those entries.

Wayne
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Similar Threads

Question on Reference 2
Renaming App_Code.dll 4
Can't Rename Project 2
.Net 2.0 b2: Renaming App_Code.dll 3
Renaming IIS wwwroot directories 1
Rename Folder 3
Rename a control 1
Strange Behaviour 7

Top