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

Cannot view any .aspx page without .aspx.cs present

I am using .Net 2003 on a XPPro running IIS.

I am unable to view any of my ASPX webforms in a browser
unless I modify the .ASPX file
and replace Codebehind="employee.aspx.cs" with
src="employee.aspx.cs".

It looks like my bin/employee.dll file is not being used.
Instead, my employee.aspx.cs file
is being used.

Why is my .dll file being ignored?

These problems are happening on all of my ASP.Net
webforms.

Here's what I tried to get my webforms working. #1:)
should work but doesn't #2:) works but why?
Also, the following is true if I try to place my forms
into production or attempt to view
them in development.

1:) I created a new virtual directory and placed my
employee.aspx and web.config and bin/employee.dll
files into the virtual directory. I then tried to view
employee.aspx in a browser but get the
Server Error message below.

2:) I then copied my employee.aspx.CS file to the virtual
directory and changed the employee.aspx
line: Codebehind="employee.aspx.cs" to
src="employee.aspx.cs". I then tried to view my
..aspx page in a browser and now everything works! It
doesn't even matter if my employee.dll file
is in the virtual directory root or bin/. I can even
delete my .dll file and the page still
works as long as the .aspx.cs file is in the root. Also,
the src="employee.aspx.cs" has to be
there otherwise I get a Parser Error message.

What does this mean? How can I get my Asp.net
applications to work normally without the need for
the src= in the .aspx file?

Any ideas?

Thanks,

Jerry
----------------------------------------------------------
----------------------
Server Error in '/test1' Application.
----------------------------------------------------------
----------------------

Runtime Error
Description: An application error occurred on the server.
The current custom
error settings for this application prevent the details
of the application error
from being viewed remotely (for security reasons). It
could, however, be viewed
by browsers running on the local server machine.

Details: To enable the details of this specific error
message to be viewable on
remote machines, please create a <customErrors> tag
within a "web.config" configuration
file located in the root directory of the current web
application. This <customErrors>
tag should then have its "mode" attribute set to "Off".

Nov 17 '05 #1
1 2792
Jerry,

Did you follow the instructions in the error message you received? You'll
need to do that in order for us to know what the error is.

Jim Cheshire [MSFT]
Developer Support
ASP.NET
ja******@online.microsoft.com

This post is provided as-is with no warranties and confers no rights.

--------------------
Content-Class: urn:content-classes:message
From: "Jerry Tovar" <Je********@Msn.Com>
Sender: "Jerry Tovar" <Je********@Msn.Com>
Subject: Cannot view any .aspx page without .aspx.cs present
Date: Thu, 23 Oct 2003 07:49:52 -0700
Lines: 74
Message-ID: <0a****************************@phx.gbl>
MIME-Version: 1.0
Content-Type: text/plain;
charset="iso-8859-1"
Content-Transfer-Encoding: 7bit
X-Newsreader: Microsoft CDO for Windows 2000
Thread-Index: AcOZdOqt7tNuX5EcQiq49+oIB4MUkg==
X-MimeOLE: Produced By Microsoft MimeOLE V5.50.4910.0300
Newsgroups: microsoft.public.dotnet.framework.aspnet
Path: cpmsftngxa06.phx.gbl
Xref: cpmsftngxa06.phx.gbl microsoft.public.dotnet.framework.aspnet:186060
NNTP-Posting-Host: TK2MSFTNGXA14 10.40.1.166
X-Tomcat-NG: microsoft.public.dotnet.framework.aspnet

I am using .Net 2003 on a XPPro running IIS.

I am unable to view any of my ASPX webforms in a browser
unless I modify the .ASPX file
and replace Codebehind="employee.aspx.cs" with
src="employee.aspx.cs".

It looks like my bin/employee.dll file is not being used.
Instead, my employee.aspx.cs file
is being used.

Why is my .dll file being ignored?

These problems are happening on all of my ASP.Net
webforms.

Here's what I tried to get my webforms working. #1:)
should work but doesn't #2:) works but why?
Also, the following is true if I try to place my forms
into production or attempt to view
them in development.

1:) I created a new virtual directory and placed my
employee.aspx and web.config and bin/employee.dll
files into the virtual directory. I then tried to view
employee.aspx in a browser but get the
Server Error message below.

2:) I then copied my employee.aspx.CS file to the virtual
directory and changed the employee.aspx
line: Codebehind="employee.aspx.cs" to
src="employee.aspx.cs". I then tried to view my
.aspx page in a browser and now everything works! It
doesn't even matter if my employee.dll file
is in the virtual directory root or bin/. I can even
delete my .dll file and the page still
works as long as the .aspx.cs file is in the root. Also,
the src="employee.aspx.cs" has to be
there otherwise I get a Parser Error message.

What does this mean? How can I get my Asp.net
applications to work normally without the need for
the src= in the .aspx file?

Any ideas?

Thanks,

Jerry
----------------------------------------------------------
----------------------
Server Error in '/test1' Application.
----------------------------------------------------------
----------------------

Runtime Error
Description: An application error occurred on the server.
The current custom
error settings for this application prevent the details
of the application error
from being viewed remotely (for security reasons). It
could, however, be viewed
by browsers running on the local server machine.

Details: To enable the details of this specific error
message to be viewable on
remote machines, please create a <customErrors> tag
within a "web.config" configuration
file located in the root directory of the current web
application. This <customErrors>
tag should then have its "mode" attribute set to "Off".


Nov 17 '05 #2

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

Similar topics

4
by: Pham Nguyen | last post by:
I have two maybe related questions about view state and the life cycle of controls: 1) When does the view state in a control get restored? I thought there was a LoadViewState event that occured...
1
by: ericvdb | last post by:
Hi all, I'm trying to fill a PDF form with asp.net using the FDF Toolkit. I have a simple form with a textbox and a button. When the button is clicked, the pdf should open with the field filled...
2
by: WJ | last post by:
I have three ASPX pages: 1. "WebForm1.aspx" is interactive, responsible for calling a web site (https://www.payMe.com) with $$$. It is working fine. 2. "WebForm2.aspx" is non-interactive, a...
5
by: Nathan Sokalski | last post by:
When running a page I am working on, I recieve the following error: Cannot use a leading .. to exit above the top directory. I suspect this has something to do with the problem I posted in a...
3
by: Brad | last post by:
When I open my website, I get a directory, which I really don't want. I want it to open default.aspx. But when I click on the default.aspx link, I get this error: The XML page cannot be...
2
by: Enska | last post by:
I have problems connecting my access database I get information .. I cant use my database and I'm administrator on my computer so permission shutnot bee problem, but I dont know Where is the...
1
by: R.A.M. | last post by:
Hello, I have written an .aspx page which calls Calendar.aspx page to select birth date which should be assign to some text box control on first page. Here's the code of first page: Birthdate:...
0
by: jonny | last post by:
The XML page cannot be displayed Cannot view XML input using XSL style sheet. Please correct the error and then click the Refresh button, or try again later. ...
6
by: TC | last post by:
Hey All, I'm receiving a weird error in IE now: "The XML page cannot be displayed" This is even with the simplest of pages that I previously could view. Any ideas?
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
0
by: ryjfgjl | last post by:
In our work, we often need to import Excel data into databases (such as MySQL, SQL Server, Oracle) for data analysis and processing. Usually, we use database tools like Navicat or the Excel import...
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:
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...

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.