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

Accessing pages in a project sub-folder

I am getting the following error when attempting to browse a page,
"WebForm1.aspx", in a web forms project sub-folder,
"/FormsAuth1/Protected/".

Parser Error Message: Could not load type 'FormsAuth1.WebForm1'
Line 1: <%@ Page Codebehind="WebForm1.aspx.vb"
Inherits="FormsAuth1.WebForm1"%>

The IIS virtual folder "/Default Web Site/FormsAuth1/Protected" is
configured as an application. I'm calling the page directly in IE by typing
"http://localhost/FormsAuth1/Protected/Webform1.aspx" in the address box.
The goal is to apply Forms Authentication to the pages in the folder
"Protected". What's the right way to build & access .aspx pages in a
sub-folder?

Using Windows 2000 Pro / VS.NET V1.0 / Framework 1.0.3705 / IIS 5.0 / IE
6.0.

Thanks.
--
John Goodfellow
irtfnm
use john at goodfellowassoc dot com

Nov 18 '05 #1
4 1313
This looks like you haven't compiled your project yet.

Compile the project and retry.

----- John G. wrote: -----

I am getting the following error when attempting to browse a page,
"WebForm1.aspx", in a web forms project sub-folder,
"/FormsAuth1/Protected/".

Parser Error Message: Could not load type 'FormsAuth1.WebForm1'
Line 1: <%@ Page Codebehind="WebForm1.aspx.vb"
Inherits="FormsAuth1.WebForm1"%>

The IIS virtual folder "/Default Web Site/FormsAuth1/Protected" is
configured as an application. I'm calling the page directly in IE by typing
"http://localhost/FormsAuth1/Protected/Webform1.aspx" in the address box.
The goal is to apply Forms Authentication to the pages in the folder
"Protected". What's the right way to build & access .aspx pages in a
sub-folder?

Using Windows 2000 Pro / VS.NET V1.0 / Framework 1.0.3705 / IIS 5.0 / IE
6.0.

Thanks.
--
John Goodfellow
irtfnm
use john at goodfellowassoc dot com
Nov 18 '05 #2
This is a web project. I have built & rebuilt both solution and project.
By "compile", are you referring to something else?
--
John Goodfellow
irtfnm
use john at goodfellowassoc dot com
"Suresh" <an*******@discussions.microsoft.com> wrote in message
news:29**********************************@microsof t.com...
This looks like you haven't compiled your project yet.

Compile the project and retry.

----- John G. wrote: -----

I am getting the following error when attempting to browse a page,
"WebForm1.aspx", in a web forms project sub-folder,
"/FormsAuth1/Protected/".

Parser Error Message: Could not load type 'FormsAuth1.WebForm1'
Line 1: <%@ Page Codebehind="WebForm1.aspx.vb"
Inherits="FormsAuth1.WebForm1"%>

The IIS virtual folder "/Default Web Site/FormsAuth1/Protected" is
configured as an application. I'm calling the page directly in IE by typing "http://localhost/FormsAuth1/Protected/Webform1.aspx" in the address box. The goal is to apply Forms Authentication to the pages in the folder
"Protected". What's the right way to build & access .aspx pages in a
sub-folder?

Using Windows 2000 Pro / VS.NET V1.0 / Framework 1.0.3705 / IIS 5.0 / IE 6.0.

Thanks.
--
John Goodfellow
irtfnm
use john at goodfellowassoc dot com


Nov 18 '05 #3
Yes I meant building the project

So that doesn't seem to be the problem then

What's the namespace of the codebehind class for WebForm1.aspx?
Nov 18 '05 #4
Thanks for your time. I'm not quite sure how to answer that question. The
code-behind class, "WebForm1.aspx.vb", inherits from System.Web.UI.Page.
"WebForm1.aspx" has a directive that includes <%@ Page
Codebehind="WebForm1.aspx.vb" Inherits="FormsAuth1.WebForm1"%>. The error
seems to indicate a failure of the .aspx file to inherit the code-behind
class. The problem seems to stem from the fact that this page is in a
project sub-folder. If I move it up to the project root level, the page
browses without problem.
--
John Goodfellow
irtfnm
use john at goodfellowassoc dot com
"Suresh" <an*******@discussions.microsoft.com> wrote in message
news:E4**********************************@microsof t.com...
Yes I meant building the project.

So that doesn't seem to be the problem then.

What's the namespace of the codebehind class for WebForm1.aspx?


Nov 18 '05 #5

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

Similar topics

13
by: Steven Scaife | last post by:
I have decided to re-write the intranet site i created over a year ago. The coding is pretty awful and hard to read cos I made the mistake of not putting comments in or putting crappy comments in...
3
by: Alex | last post by:
I'm having a problem porting an ASP solution to ASPX. In the ASP solution I'm accessing a DCOM server, create sub DCOM objects and call functions from VB script on the ASP pages. The DCOM object...
0
by: RichardF | last post by:
I have a solution that contains a web service and a web site. I was working on it all day Monday with no problems. Tuesday morning it stopped working, but ONLY when run from inside Visual...
4
by: lalitha1024 | last post by:
Hi, In my Asp.net project when i am login to my site, i'll set th cookies by using below commands. Dim IdCookie As New HttpCookie("empid" ds.Tables(0).Rows(0).Item(0)) Dim FnameCookie As New...
9
by: Blake Weaver | last post by:
Ok, this is probably a no-brainer for most of you but its escaping me and I can't even seem to find the answer in any documentation. How do you access a friend variable of one class, from another...
1
by: Jasper Jones | last post by:
I'm really stuck on this, I just can't seem to figure it out. In the code below I read the item property of a Datagrid I have on my form. However, I get an error about the datagrid1 part saying...
0
by: Tony Girgenti | last post by:
Hello. Using VS .NET 2003 VB I used the walkthrough "Accessing an XML Web Service Using Visual Basic or Visual C#" VB version to create my own project. The code supplied uses the Try/Catch...
4
by: raj_genius | last post by:
I hav two queries, whc are as follows: FIRSTLY: is it possible to access the controls(by name) of a parent form(MDI) from its child forms??if yes then how??plzz provide a coded example in VB if...
8
by: GaryDean | last post by:
I have a Wizard page and need to affect the next and previous buttons from my code-behind. I've googled around and found two solutions, and neither appear to work. I can access the SideBarList...
2
by: San24 | last post by:
Guys, Let me explain the application I have - Form > Main Tab Control > Main Tab Page > User Control > Sub Tab Control > Sub Tab Page > User Control > Contols/Text Box. Form - The main...
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: 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
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
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
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
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
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.