473,394 Members | 1,715 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,394 software developers and data experts.

Explain the @Page

et
I have a program that I started as a directory in wwwroot, now I want to
move it to be a subfolder of another web project, renaming the directory it
is located in. I used Copy Project to copy the project to the new
subdirectory, and uploaded the new directory to my ISP.

When opening the new page, I received the error that the program had to be
configured as a virtual directory. Since I can't do that on the ISP's
machine, I deleted the web.config file in that subdirectory.

Now I am getting the error:

Parser Error Message: Could not load type 'WebApplication8._default'.
Source Error:
Line 1: <%@ Page Language="vb" AutoEventWireup="false"
Codebehind="default.aspx.vb" Inherits="WebApplication8._default"%>

My project is still named WebApplication8, and the start page is still named
default.aspx, so why am I getting this error? What is it referring to when
it's saying Inherits="WebApplication8._default"?
Thanks for any explanation that will help.


Nov 19 '05 #1
1 1180
It's looking for a class (WebApplication8._default) that on your local
machine lives in the dll in the bin subdirectory. This class has the
compiled code from the code behind file (default.aspx.vb).

When you copy this project to the server and don't configure it's
directory as a virtual directory, ASP.NET can no longer find that
compiled code. It will be looking in the parent's /bin directory.

Do you need this project to be a seperate application? Most ISPs will
configure a new vdir for you when asked.

--
Scott
http://www.OdeToCode.com/blogs/scott/

On Sun, 5 Dec 2004 10:38:01 -0700, "et" <ea*************@yahoo.com>
wrote:
I have a program that I started as a directory in wwwroot, now I want to
move it to be a subfolder of another web project, renaming the directory it
is located in. I used Copy Project to copy the project to the new
subdirectory, and uploaded the new directory to my ISP.

When opening the new page, I received the error that the program had to be
configured as a virtual directory. Since I can't do that on the ISP's
machine, I deleted the web.config file in that subdirectory.

Now I am getting the error:

Parser Error Message: Could not load type 'WebApplication8._default'.
Source Error:
Line 1: <%@ Page Language="vb" AutoEventWireup="false"
Codebehind="default.aspx.vb" Inherits="WebApplication8._default"%>

My project is still named WebApplication8, and the start page is still named
default.aspx, so why am I getting this error? What is it referring to when
it's saying Inherits="WebApplication8._default"?
Thanks for any explanation that will help.



Nov 19 '05 #2

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

Similar topics

37
by: ajay | last post by:
How to make a web page getting refreshed after a given time interval automatically. HTML Code plz. Tx Ajay
3
by: Bob | last post by:
I am trying to create a popup page (to act as a menu) from a parent page. When the parent page (index.jsp) calls my popup function (see below) it will properly open the correct size browser window...
2
by: James | last post by:
I've been to websites where if I navigate off a form, trying to get back to it by hitting the back button gives me a page which says "Warning, page has expired". It doesn't display the page. I've...
0
by: quique | last post by:
Hi I,m gonna explain my scenario problem: I've got an user control that i want to cache in diferent pages attending to the value of a parameter x, to make t possible i put the next directive in...
11
by: Jeff | last post by:
Hi - I'm trying to get my ASP.NET pages to work the same way on my development machine (running from the VS.NET IDE) and on a remote (3rd-party) server. The only way I've been able to come up...
0
by: Alan Silver | last post by:
Hello, Sorry for the long post, but I want to try and explain it clearly... I'm using webparts for (possibly) an unusual scenario, and I'm having problems. This could be because I'm doing...
0
by: JAW | last post by:
This plan seems like it should perform well. Does anyone see anything. SQL Statement Text: DECLARE MTR - RDG - EST - CSR CURSOR FOR
5
by: David | last post by:
Hi, I have an asp page which prints data as follows: The sum in brackets is a calculated result on the page, SQ * RS2("SelectorQty"), a variable SQ which holds a qty multiplied by a record...
7
by: RobG | last post by:
Can someone explain to me why Firefox barfs on background and border in the following CSS and doesn't display the site the same as IE: #nav, #nav ul { background: <iw_value...
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
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?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
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...
0
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...

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.