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

Getting 404 error upon postback of my aspx page

I have a login page and it appears just fine (login.aspx). There are a
couple of links on the page which use javascript to bring up modal
dialogs of other aspx pages, and they work fine. But if I cause
login.aspx to postback (there is a dropdown and a button which both
cause a postback), it doesn't work and returns a page with the error
message "the page cannot be found". I have deployed this exact package
on many different servers and this is the first time I have ever seen
the problem. There must be an IIS setting that is wrong or something
like that. I tried disabled the "friendly error messages" option on the
browser, but it didn't give me a more descriptive error message.

I am using Windows 2000 with IIS 5.0 and .NET version 1.1. I registered
ASP.NET with aspnet_regiis.exe -i and I registerd the aspnet_isapi.dll
file.

It's so strange that the page first appears correctly, but can't handle
a postback. I am desperate because this was installed at a customer
site and they can't use the product. Thanks in advance.

Nov 19 '05 #1
2 3772
A 404 error means "resource not found." A PostBack is an HTML form posting
to a URL. A WebForm should post back to itself. Open the generated HTML
document in the browser and view the source code. What is the URL of the
form's ACTION attribute?

--
HTH,

Kevin Spencer
Microsoft MVP
..Net Developer
Neither a follower nor a lender be.

<jo********@yahoo.com> wrote in message
news:11**********************@c13g2000cwb.googlegr oups.com...
I have a login page and it appears just fine (login.aspx). There are a
couple of links on the page which use javascript to bring up modal
dialogs of other aspx pages, and they work fine. But if I cause
login.aspx to postback (there is a dropdown and a button which both
cause a postback), it doesn't work and returns a page with the error
message "the page cannot be found". I have deployed this exact package
on many different servers and this is the first time I have ever seen
the problem. There must be an IIS setting that is wrong or something
like that. I tried disabled the "friendly error messages" option on the
browser, but it didn't give me a more descriptive error message.

I am using Windows 2000 with IIS 5.0 and .NET version 1.1. I registered
ASP.NET with aspnet_regiis.exe -i and I registerd the aspnet_isapi.dll
file.

It's so strange that the page first appears correctly, but can't handle
a postback. I am desperate because this was installed at a customer
site and they can't use the product. Thanks in advance.

Nov 19 '05 #2
WJ
You may try to turn on "detail logging" on the troubled IIS server for the
web site, then view the log file (look for 404 entries) to see the real
contents. You also need to check your code to make sure you donot hard code
url link or misspell....

John

<jo********@yahoo.com> wrote in message
news:11**********************@c13g2000cwb.googlegr oups.com...
I have a login page and it appears just fine (login.aspx). There are a
couple of links on the page which use javascript to bring up modal
dialogs of other aspx pages, and they work fine. But if I cause
login.aspx to postback (there is a dropdown and a button which both
cause a postback), it doesn't work and returns a page with the error
message "the page cannot be found". I have deployed this exact package
on many different servers and this is the first time I have ever seen
the problem. There must be an IIS setting that is wrong or something
like that. I tried disabled the "friendly error messages" option on the
browser, but it didn't give me a more descriptive error message.

I am using Windows 2000 with IIS 5.0 and .NET version 1.1. I registered
ASP.NET with aspnet_regiis.exe -i and I registerd the aspnet_isapi.dll
file.

It's so strange that the page first appears correctly, but can't handle
a postback. I am desperate because this was installed at a customer
site and they can't use the product. Thanks in advance.

Nov 19 '05 #3

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

Similar topics

2
by: Duwayne | last post by:
I am having lots of trouble with one of my user controls (ascx) not automatically loading postback data. An image on the aspx page starts the postback and the parent has no problem loading it's own...
9
by: Jamie | last post by:
I am receiving an Invalid ViewState error after posting back to the same page twice. Consistently the error occurs after the second postback and not after the first. I have looked into creating...
2
by: ntuyen01 | last post by:
Hi All, I create a long form, (user have to Scroll down to Click the submit button) on the form i have couple fields using the control "RequiredFieldValidator". Now the user click on the...
3
by: Martin | last post by:
Hi, I have an aspx page with two dropdownlist controls. I update the options in the second ddl based on selection made in the first. I do this with the ICallbackEventHandler interface, as per...
0
by: tofu.captain | last post by:
I have an ASPX page that needs to read in form values (txtbox, dropdownlists, etc) from a custom control that redirects execution by crosspage postback. Here is the how it is being redirected: ...
11
by: antonyliu2002 | last post by:
I know that this has been asked and answered thousands of times. As a matter of fact, I know that I need to say If Not Page.IsPostBack Then 'Do something End If for things that needs to be...
3
by: Nathan Sokalski | last post by:
I am recieving the following error on the second postback of a page I have written: The state information is invalid for this page and might be corrupted Stack Trace: ...
2
by: John Kotuby | last post by:
Hi guys, I am converting a rather complicated database driven Web application from classic ASP to ASP.NET 2.0 using VB 2005 as the programming language. The original ASP application works quite...
3
by: John Kotuby | last post by:
Hi all, I am converting an ASPX 3.5 page in VB and VS 2008 from the standard postback to callbacks using an UpdatePanel. I had originally been adding an onload attribute to the Body tag in the...
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
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: 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
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
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
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,...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...

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.