Getting 404 error upon postback of my aspx page

J

johngilmer

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.
 
K

Kevin Spencer

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.
 
W

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
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,755
Messages
2,569,535
Members
45,007
Latest member
obedient dusk

Latest Threads

Top