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
CorporateSelect States.aspx, and the file default.aspx.vb was renamed to
CorporateSelect States.aspx.vb.
Now when I try to build, I get an error saying "The file
/CrystalReportsW ebApplication1/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="Corpo rateSelectState s.aspx.vb" Inherits="_Defa ult" %>
<%@ Register TagPrefix="CR" Namespace="Crys talDecisions.We b"
Assembly="Cryst alDecisions.Web , Version=10.2.36 00.0, Culture=neutral ,
PublicKeyToken= 692fbea5521e130 4" %>
<!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>Corporat e 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:CrystalRepo rtViewer ID="CrystalRepo rtViewer1"
Runat="server" AutoDataBind="T rue"
Height="815px" CssFilename="/css/default.css"
ReportSourceID= "CrystalReportS ource2" Width="1200px"
PrintMode="Acti veX" />
<CR:CrystalRepo rtSource ID="CrystalRepo rtSource2"
runat="server" GroupPath="">
<Report FileName="Corpo rateCustomerLis tSelectState.rp t">
</Report>
</CR:CrystalRepor tSource>
</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? 4 1327
That's what happens when you inherit from a non-existing object.
Replace all instances of "Default" with "CorporateSelec tStates"
in both the aspx *and* in the codebehind, and it will compile OK.
That would include renaming "_Default" to "_CorporateSele ctStates"
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****@badgers portswear.com> wrote in message
news:11******** **************@ z14g2000cwz.goo glegroups.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 CorporateSelect States.aspx, and the file default.aspx.vb was renamed to CorporateSelect States.aspx.vb.
Now when I try to build, I get an error saying "The file /CrystalReportsW ebApplication1/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="Corpo rateSelectState s.aspx.vb" Inherits="_Defa ult" %> <%@ Register TagPrefix="CR" Namespace="Crys talDecisions.We b" Assembly="Cryst alDecisions.Web , Version=10.2.36 00.0, Culture=neutral , PublicKeyToken= 692fbea5521e130 4" %>
<!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>Corporat e 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:CrystalRepo rtViewer ID="CrystalRepo rtViewer1" Runat="server" AutoDataBind="T rue" Height="815px" CssFilename="/css/default.css" ReportSourceID= "CrystalReportS ource2" Width="1200px" PrintMode="Acti veX" /> <CR:CrystalRepo rtSource ID="CrystalRepo rtSource2" runat="server" GroupPath=""> <Report FileName="Corpo rateCustomerLis tSelectState.rp t"> </Report> </CR:CrystalRepor tSource> </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?
<< I probably would have done that eventually anyway >>
What's that supposed to mean?
"Brent" <bw****@badgers portswear.com> wrote in message
news:%2******** ********@TK2MSF TNGP12.phx.gbl. .. Okay, that worked (I probably would have done that eventually anyway).
-- Sent via .NET Newsgroups http://www.dotnetnewsgroups.com This thread has been closed and replies have been disabled. Please start a new discussion. Similar topics |
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 for your help.
|
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 help) in a click event of the
button that is pushed to enter data. Each time the button is clicked it
sends the ID entered by the user to query the database and return
information. The renamed controls then include the ID in the name of the...
|
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 mycompleteapp.login
login is my webform ... i looked in all the hidden places and everything
seems to have updated correctly..
|
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:" &
DataBinder.Eval(Container.DataItem,"StoreEmail") & "&Subject=" &
DataBinder.Eval(Container.DataItem,"ProductName")
....
|
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 transferred our site
www.orbisoft.com to a new W2003 IIS6 server they set up.
That was a week ago.
Since that transfer, all of our ASPX pages that use Access2000 databases
have stopped working.
| |
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 name was the first name on
the list id the default documents in the IIS control panel.
IIS doesn't recognize Default.aspx as the default page for the IIS root web.
It will open the page if I type http://localhost/Default.aspx, and if I
create an...
|
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:
C:\vss\Marketing\Main.aspx.vb(2275,0): error BC30451: Name 'ckCRM' is not
declared. - it's only a handfull of controls - just 3 and all three are
checkboxes.
|
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 'build' arrangement
or perhaps I am overlooking something else.
I am developing a project using the IIS local host configuration.
My actual problem is :
|
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 attribute on the page directive or
maybe its own tag. This would be a tremendous help to keep track
whether an application install is the latest version of any particular
page and not just the dll.
Thanks for any ideas,
|
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, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look !
Part I. Meaning of...
|
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 tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth.
The Art of Business Website Design
Your website is...
| |
by: Hystou |
last post by:
Overview:
Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
|
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, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own....
Now, this would greatly impact the work of software developers. The idea...
|
by: conductexam |
last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one.
At the time of converting from word file to html my equations which are in the word document file was convert into image.
Globals.ThisAddIn.Application.ActiveDocument.Select();...
|
by: TSSRALBI |
last post by:
Hello
I'm a network technician in training and I need your help.
I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs.
The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols.
I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
|
by: adsilva |
last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
|
by: 6302768590 |
last post by:
Hai team
i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
| |
by: bsmnconsultancy |
last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...
| | |