December 12th, 2012, 10:37 AM
Microsoft VBScript runtime error '800a01a8'
I'm typically a java developer but was asked to "tweak" a small ASP app my organization has. It basically accepts user input into a form and then emails the data. In my sendmail.asp form I set a session attribute (Session("emailText") = message) and then redirect to page printResults.asp. That page is basically an HTML page with a single line of VBScript code at line 21: <% Response.Write(Session.Contents("emailText")) %>
This all works on my local IIS server but when I deployed it to the host server to test & demo it I got this error:
Microsoft VBScript runtime
Object required: ''
/sub3/printResults.asp, line 21
Since I am new to ASP I have no clue why this would work locally but not on the host server. Any ideas or suggestions would be most helpful.
December 12th, 2012, 01:05 PM
Is the host an IIS server or Apache or other?
What is on line 21 of PrintResults.asp as this may give us clues as to the cause of the error.
Hope this advice helps.
If so please show your appreciation by adding reputation points (click the Give Rep button on the bottom bar of the post).
- Post your code - Post your errors - Be clear - Be courteous -
AND PLEASE...Finalise your thread with a solution or confirmation that the last advice worked or failed.
Visit My ASP Free Members Club Profile
December 12th, 2012, 01:13 PM
I had put what is on line 21 in the original post. That line is " <% Response.Write(Session.Contents("emailText")) %>". As for the server on the host it's an IIS server. I don't know if it's version 6 or 7. I think I stumbled on to the problem though. I think the issue is that session state is disabled on the host server. When I disabled it on my local IIS server I was able to duplicate the problem. I still have to verify that but I'm confident that is the issue.