473,387 Members | 2,436 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,387 software developers and data experts.

Renamed aspx file in VS .NET 2005, now won't build

The aspx file was originally default.aspx, but I'm putting some other
aspx files in that same virtual directory and I want to give it a more
meaningful name. I renamed default.aspx in the IDE to
CorporateSelectStates.aspx, and the file default.aspx.vb was renamed to
CorporateSelectStates.aspx.vb.

Now when I try to build, I get an error saying "The file
/CrystalReportsWebApplication1/Default.aspx.vb does not exist"

It refers to line 1 of the aspx file, but this is the aspx file in its
entirety (it's not a lot of code):

<%@ Page Language="VB" AutoEventWireup="false"
CodeFile="CorporateSelectStates.aspx.vb" Inherits="_Default" %>
<%@ Register TagPrefix="CR" Namespace="CrystalDecisions.Web"
Assembly="CrystalDecisions.Web, Version=10.2.3600.0, Culture=neutral,
PublicKeyToken=692fbea5521e1304" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN"
"http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd">

<html xmlns="http://www.w3.org/1999/xhtml" >
<head runat="server">
<title>Corporate Customer List</title>
</head>
<body>
<form id="form1" runat="server">
<div>
<asp:TextBox ID="TextBox1" runat="server"></asp:TextBox><br />
<asp:Button ID="Button1" runat="server" Text="Button" /><br />
<br />
<br />
<br />
<br />
<CR:CrystalReportViewer ID="CrystalReportViewer1"
Runat="server" AutoDataBind="True"
Height="815px" CssFilename="/css/default.css"
ReportSourceID="CrystalReportSource2" Width="1200px"
PrintMode="ActiveX" />
<CR:CrystalReportSource ID="CrystalReportSource2"
runat="server" GroupPath="">
<Report FileName="CorporateCustomerListSelectState.rpt">
</Report>
</CR:CrystalReportSource>
</div>
</form>
</body>
</html>
There is a class "_default" in the aspx.vb file, so I knwo it's not
that. What did I do wrong or is this a bug in VS .NET 2005?

Nov 19 '05 #1
4 1308
That's what happens when you inherit from a non-existing object.

Replace all instances of "Default" with "CorporateSelectStates"
in both the aspx *and* in the codebehind, and it will compile OK.

That would include renaming "_Default" to "_CorporateSelectStates"

Juan T. Llibre, ASP.NET MVP
ASP.NET FAQ : http://asp.net.do/faq/
Foros de ASP.NET en Español : http://asp.net.do/foros/
======================================
"Brent White" <bw****@badgersportswear.com> wrote in message
news:11**********************@z14g2000cwz.googlegr oups.com...
The aspx file was originally default.aspx, but I'm putting some other
aspx files in that same virtual directory and I want to give it a more
meaningful name. I renamed default.aspx in the IDE to
CorporateSelectStates.aspx, and the file default.aspx.vb was renamed to
CorporateSelectStates.aspx.vb.

Now when I try to build, I get an error saying "The file
/CrystalReportsWebApplication1/Default.aspx.vb does not exist"

It refers to line 1 of the aspx file, but this is the aspx file in its
entirety (it's not a lot of code):

<%@ Page Language="VB" AutoEventWireup="false"
CodeFile="CorporateSelectStates.aspx.vb" Inherits="_Default" %>
<%@ Register TagPrefix="CR" Namespace="CrystalDecisions.Web"
Assembly="CrystalDecisions.Web, Version=10.2.3600.0, Culture=neutral,
PublicKeyToken=692fbea5521e1304" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN"
"http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd">

<html xmlns="http://www.w3.org/1999/xhtml" >
<head runat="server">
<title>Corporate Customer List</title>
</head>
<body>
<form id="form1" runat="server">
<div>
<asp:TextBox ID="TextBox1" runat="server"></asp:TextBox><br />
<asp:Button ID="Button1" runat="server" Text="Button" /><br />
<br />
<br />
<br />
<br />
<CR:CrystalReportViewer ID="CrystalReportViewer1"
Runat="server" AutoDataBind="True"
Height="815px" CssFilename="/css/default.css"
ReportSourceID="CrystalReportSource2" Width="1200px"
PrintMode="ActiveX" />
<CR:CrystalReportSource ID="CrystalReportSource2"
runat="server" GroupPath="">
<Report FileName="CorporateCustomerListSelectState.rpt">
</Report>
</CR:CrystalReportSource>
</div>
</form>
</body>
</html>
There is a class "_default" in the aspx.vb file, so I knwo it's not
that. What did I do wrong or is this a bug in VS .NET 2005?

Nov 19 '05 #2
Okay, that worked (I probably would have done that eventually anyway).

--
Sent via .NET Newsgroups
http://www.dotnetnewsgroups.com
Nov 19 '05 #3
<< I probably would have done that eventually anyway >>

What's that supposed to mean?

"Brent" <bw****@badgersportswear.com> wrote in message
news:%2****************@TK2MSFTNGP12.phx.gbl...
Okay, that worked (I probably would have done that eventually anyway).

--
Sent via .NET Newsgroups
http://www.dotnetnewsgroups.com

Nov 19 '05 #4
I mean renamed all the classes.

--
Sent via .NET Newsgroups
http://www.dotnetnewsgroups.com
Nov 19 '05 #5

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

Similar topics

11
by: Bruce W...1 | last post by:
Would the code-behind and all ASP.NET functionality still work if the ..aspx files had instead .htm extensions? I suppose it boils down to whether the page directives would still work. Thanks...
4
by: John Holmes | last post by:
I'm using data to rename some web controls on a form that uses a repeater contol and so it can have mulitple instances of the same control set. The controls get renamed (thanks to Steven Cheng's...
2
by: Ian | last post by:
Hi there, I have a small app and i just went into the code behind and renamed the name space.,.. from myapp to mycompleteapp and now its giving me parser errors about Could not load type...
6
by: Paolo Pignatelli | last post by:
I have an aspx code behind page that goes something like this in the HTML view: <asp:HyperLink id=HyperLink1 runat="server" NavigateUrl='<%#"mailto:" &amp;...
14
by: Mark B | last post by:
Our webhost (www.usbusinessweb.net) had a W2K IIS5 server crash after a scheduled hard-boot occurred during a ms-security patch install overnight. They couldn't get the server working again so they...
9
by: David Veeneman | last post by:
I'm just getting started with ASP.NET, using VS 2005. As an exercise, I opened the root web site in VS 2005 and created a simple welcome page. I saved the page as Default.aspx and made sure that...
2
by: Elmo Watson | last post by:
VS.Net 2005 professional: When I built my website, I get a long list of errors (not in the error window, but in the Output window) concerning the declaration of several controls, like: ...
7
by: John Morgan | last post by:
I have done a fair amount of programming of ASP.NET 1.1 without poroblem I am now involved in my first project with ASP.NET 2.0 and I am having difficulties with understanding the compilation or...
3
by: nautonnier | last post by:
This may have been covered before but I didn't find anything after doing a google search. Does VS.NET 2005 have a way to put build or version numbers within aspx pages? I'm envisioning an...
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: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
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
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
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
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...

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.