Solved

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

Posted on 2012-03-11
12
380 Views
Last Modified: 2012-03-16
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.
0
Comment
Question by:grhelm
  • 9
  • 3
12 Comments
 
LVL 52

Accepted Solution

by:
Scott Fell,  EE MVE earned 500 total points
ID: 37707659
Make sure you have asp turned on  

If you are using an acces database, make  sure you have read/write permissions to that folder

Try running a basic html page with without asp code to see if it works when you just change the file from .htm to .asp.

Then try running a simple script

<%
response.write("today is "&date)
%>
0
 

Author Comment

by:grhelm
ID: 37707723
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.
0
 

Author Comment

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

Author Comment

by:grhelm
ID: 37707752
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
%>
0
 

Author Comment

by:grhelm
ID: 37707756
I just realized that Exchange has not been reloade. Doh!

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

Author Comment

by:grhelm
ID: 37707758
I'll get this reinstalled...
0
PRTG Network Monitor: Intuitive Network Monitoring

Network Monitoring is essential to ensure that computer systems and network devices are running. Use PRTG to monitor LANs, servers, websites, applications and devices, bandwidth, virtual environments, remote systems, IoT, and many more. PRTG is easy to set up & use.

 

Author Comment

by:grhelm
ID: 37707765
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.)
0
 
LVL 52

Expert Comment

by:Scott Fell, EE MVE
ID: 37707788
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?
0
 
LVL 52

Expert Comment

by:Scott Fell, EE MVE
ID: 37707795
Glad you found the problem.  I can't help with exchange though.
0
 

Assisted Solution

by:grhelm
grhelm earned 0 total points
ID: 37707801
Changed the reference

E:\Program Files\Exchsrvr\Mailroot\vsi 1\pickup

to
C:\Inetpub\mailroot\Pickup

And the ASP pages work now.  

However, the 'refresh' still does not...
0
 

Assisted Solution

by:grhelm
grhelm earned 0 total points
ID: 37707829
Figured this one out.  

IIS was not configured to look at index.html.  Added that to the Documents list and everything seems to be working.
0
 

Author Closing Comment

by:grhelm
ID: 37728556
Thanks for the help Padas.  

You got me looking into things further which flushed out what the issues were.
0

Featured Post

Do You Know the 4 Main Threat Actor Types?

Do you know the main threat actor types? Most attackers fall into one of four categories, each with their own favored tactics, techniques, and procedures.

Join & Write a Comment

Setting up a Microsoft WSUS update system is free relatively speaking if you have hard disk space and processor capacity.   However, WSUS can be a blessing and a curse. For example, there is nothing worse than approving updates and they just have…
I've been asked to discuss some of the UX activities that I'm using with my team. Here I will share some details about how we approach UX projects.
Viewers will get an overview of the benefits and risks of using Bitcoin to accept payments. What Bitcoin is: Legality: Risks: Benefits: Which businesses are best suited?: Other things you should know: How to get started:
Any person in technology especially those working for big companies should at least know about the basics of web accessibility. Believe it or not there are even laws in place that require businesses to provide such means for the disabled and aging p…

762 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

17 Experts available now in Live!

Get 1:1 Help Now