473,396 Members | 1,990 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,396 software developers and data experts.

Problem After Rename

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
Nov 19 '05 #1
5 1231
Look in your .aspx file at the top in the @Page directive. You will need to
make a change there also.

--
TDAVISJR
aka - Tampa.NET Koder
"Wayne Wengert" <wa***********@wengert.org> wrote in message
news:uq**************@tk2msftngp13.phx.gbl...
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

Nov 19 '05 #2
Thanks for the response but VSNET actually corrected that when I did the
renae.

Wayne

"TDAVISJR" <an*******@microsoft.com> wrote in message
news:ur**************@tk2msftngp13.phx.gbl...
Look in your .aspx file at the top in the @Page directive. You will need
to make a change there also.

--
TDAVISJR
aka - Tampa.NET Koder
"Wayne Wengert" <wa***********@wengert.org> wrote in message
news:uq**************@tk2msftngp13.phx.gbl...
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


Nov 19 '05 #3
Wayne Wengert wrote:
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

"TDAVISJR" <an*******@microsoft.com> wrote in message
news:ur**************@tk2msftngp13.phx.gbl...
Look in your .aspx file at the top in the @Page directive. You will
need to make a change there also.

--
TDAVISJR
aka - Tampa.NET Koder
"Wayne Wengert" <wa***********@wengert.org> wrote in message
news:uq**************@tk2msftngp13.phx.gbl...
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

Nov 19 '05 #4
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

"Hans Kesting" <ne***********@spamgourmet.com> wrote in message
news:eR**************@TK2MSFTNGP10.phx.gbl...
Wayne Wengert wrote:
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

"TDAVISJR" <an*******@microsoft.com> wrote in message
news:ur**************@tk2msftngp13.phx.gbl...
Look in your .aspx file at the top in the @Page directive. You will
need to make a change there also.

--
TDAVISJR
aka - Tampa.NET Koder
"Wayne Wengert" <wa***********@wengert.org> wrote in message
news:uq**************@tk2msftngp13.phx.gbl...
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


Nov 19 '05 #5
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
"Wayne Wengert" <wa***********@wengert.org> wrote in message
news:uq**************@tk2msftngp13.phx.gbl...
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

Nov 19 '05 #6

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

5
by: hokiegal99 | last post by:
A few questions about the following code. How would I "wrap" this in a function, and do I need to? Also, how can I make the code smart enough to realize that when a file has 2 or more bad...
3
by: Barry Young | last post by:
SQL Server 7.0 I have a stored procedure that builds some tables. To minimize down time (it is the backend for a website), I build the tables into temp (not #temp) tables, drop and rename the...
7
by: Tom | last post by:
I'm having a problem using a path with spaces as a parameter to os.rename() in a program on WinXP. This works fine at the command line (where the folder "c:\aa bb" exists) > os.rename( "c\aa...
3
by: Saradhi | last post by:
Hi All, Here I am facing a performance problem with the TreeView Node renaming. I am displaying a hierarchy Data in a treeview in my Windows C# Application. My tree view represents an...
0
by: Thomas G. Apostolou | last post by:
Hello all. i am trying to make some win32 binaries of M2Crypto 0.15 What I use is: Python 2.3.3 openssl-0.9.7i swigwin 1.3.27
0
by: nt91rx78 | last post by:
Our college changes 18 weeks semester to 16 semester, so our CS professor cannot finish teaching the last important chapter which is related with my problw\em. This is program C problem Anyone...
20
by: ongaro.admin | last post by:
Hi, I'm experiencing a strange problem with .mdb files. We have two buildings connected by optical fiber (a single LAN). Everything works perfect with any file, any size, any application...
5
by: dhsieh | last post by:
Hello all, I am working on a function that renames each table row's elements, as well as reassigning the function calls dynamically. I ran into a problem where I am trying to assign the new...
9
by: Salad | last post by:
I have access, for testing at my client's site, a Win2000 computer running A2003 retail. He recently upgraded all of his other machines to DualCore Pentiums with 2 gig ram and run A2003 runtime. ...
1
by: vijayarl | last post by:
Hi All, Requirement : 1.read the content of the dir 2.seach for "prstat-Lvs" file 3.rename this file to *.txt (as this file doesn't have the file typeextension --raw file) 4.open this *.txt...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.