ASP Programming
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
User Name:
Password:
Remember me

The Shed is going Social! Join us on FaceBook and Twitter and chime in on the conversation.

Go Back   Dev Shed ForumsProgramming Languages - MoreASP Programming

Closed Thread
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Rate Thread Display Modes
 
Unread Dev Shed Forums Sponsor:
  #1  
Old January 27th, 2011, 02:18 PM
Punktress Punktress is offline
Cheeky Deeky
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Mar 2004
Location: Los Angeles, CA
Posts: 5 Punktress User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 45 m 20 sec
Reputation Power: 0
Send a message via AIM to Punktress Send a message via Yahoo to Punktress
Facebook MySpace
Angry Request.Form method in Classic ASP generates a generic error

I am unable to grab any form data using the Request.Form("item") method in Classic ASP. It generates a very generic error with no description. However, it works just fine in ASP.NET. (The problem also occurs with the Request("item") syntax.)

I don't have any problems with any other Request methods in Classic ASP.

This is a copy of sample code I wrote, which throws the error:
(Form Page: form.asp)
Code:
<form name="test" action="test.asp" method="post">
     <input type="text" name="stuff" />
     <input type="submit" name="submit" value="Try It" />
</form>


(Output Page: test.asp)
Code:
<%
mytest = Request.Form("stuff")
Response.Write(mytest)
%>


This is what I receive:
error '80004005'
<my path>/test.asp, line 2

Line 2 is the mytest = Request.Form("stuff") line.

Error Tracing from IIS:
ERROR:
ASP_LOG_ERROR
LineNumber 3
ErrorCode 80004005
Description

Warning:
MODULE_SET_RESPONSE_ERROR_STATUS
ModuleName IsapiModule
Notification 128
HttpStatus 500
HttpReason Internal Server Error
HttpSubStatus 0
ErrorCode 0
ConfigExceptionInfo
Notification EXECUTE_REQUEST_HANDLER
ErrorCode The operation completed successfully. (0x0)


This is the ASP entry in the applicationHost.config file:
<add name="ASPClassic" path="*.asp" verb="*" modules="IsapiModule" scriptProcessor="%windir%\system32\inetsrv\asp.dll" resourceType="Unspecified" requireAccess="Script" />

The server is IIS7.

Any help would be greatly appreciated.

Reply With Quote
  #2  
Old January 27th, 2011, 02:41 PM
Punktress Punktress is offline
Cheeky Deeky
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Mar 2004
Location: Los Angeles, CA
Posts: 5 Punktress User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 45 m 20 sec
Reputation Power: 0
Send a message via AIM to Punktress Send a message via Yahoo to Punktress
Facebook MySpace
Fixed the problem on my own!

In the event someone else should experience this, setting the DefaultAppPool to Classic did the trick!

Reply With Quote
Closed Thread

Viewing: Dev Shed ForumsProgramming Languages - MoreASP Programming > Request.Form method in Classic ASP generates a generic error

Developer Shed Advertisers and Affiliates



Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  Rate This Thread 
Rate This Thread:


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump

Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 


Powered by: vBulletin Version 3.0.5
Copyright ©2000 - 2013, Jelsoft Enterprises Ltd.

© 2003-2013 by Developer Shed. All rights reserved. DS Cluster - Follow our Sitemap