Go Premium for a chance to win a PS4. Enter to Win

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 395
  • Last Modified:

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.
0
grhelm
Asked:
grhelm
  • 9
  • 3
3 Solutions
 
Scott Fell, EE MVEDeveloperCommented:
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
 
grhelmAuthor Commented:
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
 
grhelmAuthor Commented:
HOWEVER, when I change the ASP code to the sample you provided, and keep the file with th .asp extension, it DOES work???
0
Free learning courses: Active Directory Deep Dive

Get a firm grasp on your IT environment when you learn Active Directory best practices with Veeam! Watch all, or choose any amount, of this three-part webinar series to improve your skills. From the basics to virtualization and backup, we got you covered.

 
grhelmAuthor Commented:
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
 
grhelmAuthor Commented:
I just realized that Exchange has not been reloade. Doh!

So, "E:\Program Files\Exchsrvr\Mailroot\vsi 1\pickup" does not exist!
0
 
grhelmAuthor Commented:
I'll get this reinstalled...
0
 
grhelmAuthor Commented:
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
 
Scott Fell, EE MVEDeveloperCommented:
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
 
Scott Fell, EE MVEDeveloperCommented:
Glad you found the problem.  I can't help with exchange though.
0
 
grhelmAuthor Commented:
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
 
grhelmAuthor Commented:
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
 
grhelmAuthor Commented:
Thanks for the help Padas.  

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

Featured Post

Concerto Cloud for Software Providers & ISVs

Can Concerto Cloud Services help you focus on evolving your application offerings, while delivering the best cloud experience to your customers? From DevOps to revenue models and customer support, the answer is yes!

Learn how Concerto can help you.

  • 9
  • 3
Tackle projects and never again get stuck behind a technical roadblock.
Join Now