Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations derfloh on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Asp.net 2.0 form page ("Page not found")

Status
Not open for further replies.

simpgmr

Programmer
Joined
Jan 16, 2007
Messages
12
Location
US
I have an ASP.NET 2.0 web site that I have been developing in my machine. (Windows xp, visual stuidio 2005) On this web site I have a contact us page where the user fills out a form and clicks send. I have visual basic code ouside of the aspx file that sends the email. When I run it on the machine I developed it with it works fine. I copied it to our web server (w2k IIS 5.0) The whole site works fine except one thing. When I fill out the form and select send, I get a Page cannot be found messege and it does not send the email. HELP!
Thanks
Simeon
 
Page cannot be found ? Are you redirecting somewhere? Maybe you have an error page to show a friendly message to the user, and that page cannot be found.
Also check the smpt... etc.. server 'stuff'. Check if you allow mails to be sent from the real server. (cant help more on that)
 
I am not using a redirect yet. I just wanted to test the form. When you say from the "real server". Are you just asking if the web server it's self is configured to send out emails? It does. I get message number one below when I click send or reset. Then I get message number two if I select go after the first error message comes up. HELP!

1. Page cannot be found ? Are you redirecting somewhere? Maybe you have an error page to show a friendly message to the user, and that page cannot be found.
Also check the smpt... etc.. server 'stuff'. Check if you allow mails to be sent from the real server. (cant help more on that)

2. Warning: Page has Expired The page you requested was created using information you submitted in a form. This page is no longer available. As a security precaution, Internet Explorer does not automatically resubmit your information for you.

To resubmit your information and view this Web page, click the Refresh button.
 
Is the web site set up for .net 2.0. go to properties of the web site and there should be a tab that says "ASP.NET" there you can select the framework you want.

The viewstate should take care of keeping your values make sure it's on. Also don't forget to use POSTBACK.
 
Are you doing any sort of load balancing on the server? If so then you'll need to explicitly state the machine key in the web.config file.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top