Avatar of grhelm
grhelm
 asked on

Web Server Rebuild - Forms (& ASP pages) no longer work?

Our web server crashed and I had to rebuild it from scratch.  It's running MS Windows2003, IIS with FrontPage extensions.  I've restored the site (HTML, etc.) files and the site shows up fine when browsed to on the Internet. (I can also access the site with FrontPage to make changes.) However, none of the forms ('SUBMIT' or xxx.asp or even redirects 'Refresh') work anymore. I know this has something to do with the way the site is configured, but don't work with this enough to know what the answer is.  Can someone please help??  Thanks.
Web DevelopmentScripting LanguagesWindows Server 2003

Avatar of undefined
Last Comment
grhelm

8/22/2022 - Mon
ASKER CERTIFIED SOLUTION
Scott Fell

THIS SOLUTION ONLY AVAILABLE TO MEMBERS.
View this solution by signing up for a free trial.
Members can start a 7-Day free trial and enjoy unlimited access to the platform.
See Pricing Options
Start Free Trial
GET A PERSONALIZED SOLUTION
Ask your own question & get feedback from real experts
Find out why thousands trust the EE community with their toughest problems.
grhelm

ASKER
When you say "Make sure you have asp turned on," I assume you mean the ASP.Net State Service?  If so, yes, that service is running.  (If that's not what you are referring to, then ??)

I renamed an asp to an htm page and I get:

The page cannot be displayed
The page you are looking for cannot be displayed because an invalid method (HTTP verb) was used to attempt access.

HTTP Error 405 - The HTTP verb used to access this page is not allowed.
Internet Information Services (IIS)

--------------------------------------------------------------------------------

Technical Information (for support personnel)

•Go to Microsoft Product Support Services and perform a title search for the words HTTP and 405.
•Open IIS Help, which is accessible in IIS Manager (inetmgr), and search for topics titled Setting Application Mappings, Securing Your Site with Web Site Permissions, and About Custom Error Messages.
grhelm

ASKER
HOWEVER, when I change the ASP code to the sample you provided, and keep the file with th .asp extension, it DOES work???
grhelm

ASKER
The ASP that is failing is trying to send an email:

<%
'**Set your message body as a variable as it's easier
 
body = "Email Address from Form:"&Request.Form("EmailAddress")&vbCrLf&vbCrLf
body=body&"Name:"&request.Form("Name")&BlogID&vbCrLf&vbCrLf
body = body&"Sent: "&FormatDateTime(now, 0)
 
Dim ObjSendMail
Dim iConf
Dim Flds
   
Set ObjSendMail = Server.CreateObject("CDO.Message")
Set iConf = CreateObject("CDO.Configuration")
Set Flds = iConf.Fields

   
Flds("http://schemas.microsoft.com/cdo/configuration/sendusing") = 1
   
'**** Path below may need to be changed if it is not correct
Flds("http://schemas.microsoft.com/cdo/configuration/smtpserverpickupdirectory") = "E:\Program Files\Exchsrvr\Mailroot\vsi 1\pickup"
Flds.Update
   
Set ObjSendMail.Configuration = iConf
ObjSendMail.To = "who@whatever.com"
ObjSendMail.Subject = "Info Request"
ObjSendMail.From = Request.Form("email")

ObjSendMail.HTMLBody = Request.Form("comments") + "<BR><BR>" + Request.Form("name")

   
ObjSendMail.Send
Set ObjSendMail = Nothing
%>
All of life is about relationships, and EE has made a viirtual community a real community. It lifts everyone's boat
William Peck
grhelm

ASKER
I just realized that Exchange has not been reloade. Doh!

So, "E:\Program Files\Exchsrvr\Mailroot\vsi 1\pickup" does not exist!
grhelm

ASKER
I'll get this reinstalled...
grhelm

ASKER
HOWEVER, this does not explaing why this does not work??

<HEAD>
<TITLE>Email</TITLE>
<META HTTP-EQUIV="Refresh" CONTENT="0; URL=http://xx.xx.xx.xx/Exchange">
</HEAD>

</BODY>

</HTML>


(And this is a valid Exchange address that does work when referenced directly.)
⚡ FREE TRIAL OFFER
Try out a week of full access for free.
Find out why thousands trust the EE community with their toughest problems.
Scott Fell

Are you using .net or classic asp?  I assumed classic because you mentioned, "'SUBMIT' or xxx.asp ".  If you are using iis7, classic asp is not turned on by default and that is different then .net services.  If you are using classic asp and iis7 you have to manually enable classic asp.  

The 405 erro was probably when you changed your asp page to html and the page contained asp scripting you.  I was asking the opposite to see if asp was working where you were not trying to access a database.  So if you can create a simple static html page, change the extension to .asp and that works, we know the problem is not the iis thing.  

If you figured out  you can have a simple static asp page then try the same and also include some vbscript that does not try and do anything other then display a variable like <%="hello world"%>  the next step is to see where it is breaking. Are you posting to a database?  if it is ms access, did you reset the permissions to the folder the database lives in?   Was it accessing some component that needs to be reinstalled?  Can you figure out exactly where the page is breaking?
Scott Fell

Glad you found the problem.  I can't help with exchange though.
SOLUTION
grhelm

THIS SOLUTION ONLY AVAILABLE TO MEMBERS.
View this solution by signing up for a free trial.
Members can start a 7-Day free trial and enjoy unlimited access to the platform.
See Pricing Options
Start Free Trial
GET A PERSONALIZED SOLUTION
Ask your own question & get feedback from real experts
Find out why thousands trust the EE community with their toughest problems.
SOLUTION
grhelm

THIS SOLUTION ONLY AVAILABLE TO MEMBERS.
View this solution by signing up for a free trial.
Members can start a 7-Day free trial and enjoy unlimited access to the platform.
See Pricing Options
Start Free Trial
⚡ FREE TRIAL OFFER
Try out a week of full access for free.
Find out why thousands trust the EE community with their toughest problems.
grhelm

ASKER
Thanks for the help Padas.  

You got me looking into things further which flushed out what the issues were.
This is the best money I have ever spent. I cannot not tell you how many times these folks have saved my bacon. I learn so much from the contributors.
rwheeler23