Wrox Home  
Search P2P Archive for: Go

  Return to Index  

asp_web_howto thread: HTTP 500 - Internal server error


Message #1 by nusrat sarwar <nusratsarwar@y...> on Mon, 18 Feb 2002 11:38:42 -0800 (PST)
Hi all

hope every one is fine and well

I am getting this error



HTTP 500 - Internal server error 

Internet Explorer  



now you can check yourself  on following link



 http://www.tokyomotors.net/nusrat/email.asp



how I could fix it???

I'll be grateful

many thanx for yr time

take care

regards

nusrat





 







__________________________________________________

Do You Yahoo!?

Yahoo! Sports - Coverage of the 2002 Olympic Games

http://sports.yahoo.com

Message #2 by Oleg Kapeljushnik <c-oleg.kapeljushnik@w...> on Mon, 18 Feb 2002 14:48:36 -0500
uncheck you "Show friendly HTTP error" checkbox in Internet explorer and you

will see full error description.

In your case its :

Microsoft VBScript runtime error '800a01b6'



Object doesn't support this property or method: 'Body'



/nusrat/email.asp, line 36



Oleg.



-----Original Message-----

From: nusrat sarwar [mailto:nusratsarwar@y...]

Sent: February 18, 2002 2:39 PM

To: ASP Web HowTo

Subject: [asp_web_howto] HTTP 500 - Internal server error





Hi all

hope every one is fine and well

I am getting this error



HTTP 500 - Internal server error

Internet Explorer



now you can check yourself  on following link



 http://www.tokyomotors.net/nusrat/email.asp



how I could fix it???

I'll be grateful

many thanx for yr time

take care

regards

nusrat













__________________________________________________

Do You Yahoo!?

Yahoo! Sports - Coverage of the 2002 Olympic Games

http://sports.yahoo.com






$subst('Email.Unsub').



Message #3 by Nikos <pappas@c...> on Mon, 18 Feb 2002 21:53:03 +0200
Hi

your problem is in /nusrat/email.asp, line 36

send the code please

Nikos

At 09:38 =EC=EC 18/2/2002, you wrote:

>Hi all

>hope every one is fine and well

>I am getting this error

>

>HTTP 500 - Internal server error

>Internet Explorer

>

>now you can check yourself  on following link

>

>  http://www.tokyomotors.net/nusrat/email.asp

>

>how I could fix it???

>I'll be grateful

>many thanx for yr time

>take care

>regards

>nusrat

>

>

>

>

>

>

>__________________________________________________

>Do You Yahoo!?

>Yahoo! Sports - Coverage of the 2002 Olympic Games

>http://sports.yahoo.com

>




 $subst('Email.Unsub').



Message #4 by nusrat sarwar <nusratsarwar@y...> on Mon, 18 Feb 2002 11:54:42 -0800 (PST)
Hi Oleg

oh so quick reply 

thanx

but what should I do for it?

how to fix?

is it becouse of absence of the smtp server? or what?

will be obliged for help

take care

regards

nusrat







__________________________________________________

Do You Yahoo!?

Yahoo! Sports - Coverage of the 2002 Olympic Games

http://sports.yahoo.com

Message #5 by nusrat sarwar <nusratsarwar@y...> on Mon, 18 Feb 2002 11:59:18 -0800 (PST)
Thanx Nikos

here is the code 



<%

Dim BodyToSend, Message

If Request.Form("SendButton") <> "Send" or

Request.Form("bodytext") = "" Then

%>



<html>

<head>

<title>Feedback Form</title>

</head>

<body>





<form method="POST"

action="<%=Request.ServerVariables("URL")%>">



Please enter your email address:<br> 

<input type="text" name="email" size="50"

maxwidth="50" maxlength="50"> 

<br><br>



Type your message:<br>

<textarea name="bodytext" cols="40" rows="6">

</textarea>

<br><br>



<input type="submit" value="Send" name="SendButton">

<input type="reset" value="Clear" name="ClearButton"> 

</form>

</body>

</html>



<%

Else

Set Message = CreateObject("CDONTS.NewMail")

Message.From = Request.Form("email")

Message.To = "alimedic@c..."

Message.Subject = "Feedback Form"

BodyToSend = Request.Form("bodytext") & vbcrlf & _

" " & vbCRLF & _



Message.Body = BodyToSend



On Error Resume Next

Message.Send

If Err.Number = 0 Then

Response.Write "Success! Message has been sent."

Else

Response.Write "Error: " & Err.Description

End If

Set Message = Nothing

End If

%> 



thanx again





__________________________________________________

Do You Yahoo!?

Yahoo! Sports - Coverage of the 2002 Olympic Games

http://sports.yahoo.com

Message #6 by Oleg Kapeljushnik <c-oleg.kapeljushnik@w...> on Mon, 18 Feb 2002 15:08:15 -0500
Like Nikos said

you'll have to send some code so we could review it.

But just a guess.

If you using third party component to send an e-mail then you have to check

all available properties in this object.

The bottom line is that you trying to use property called "Body" but this

property doesn't exist.

May be it called differently like MessageBody or something else but you'll

need to review

you email object documentation.



If you don't find the problem then send some code and then may be we could

help you.



Oleg.



-----Original Message-----

From: nusrat sarwar [mailto:nusratsarwar@y...]

Sent: February 18, 2002 2:55 PM

To: ASP Web HowTo

Subject: [asp_web_howto] RE: HTTP 500 - Internal server error





Hi Oleg

oh so quick reply

thanx

but what should I do for it?

how to fix?

is it becouse of absence of the smtp server? or what?

will be obliged for help

take care

regards

nusrat







__________________________________________________

Do You Yahoo!?

Yahoo! Sports - Coverage of the 2002 Olympic Games

http://sports.yahoo.com






$subst('Email.Unsub').



Message #7 by Oleg Kapeljushnik <c-oleg.kapeljushnik@w...> on Mon, 18 Feb 2002 15:16:55 -0500
The problem is here :

" " & vbCRLF & _



Message.Body = BodyToSend



change it to :

" " & vbCRLF



Message.Body = BodyToSend



You continue the line from privous line.

I just did this change and everything looks good now.



Oleg





-----Original Message-----

From: nusrat sarwar [mailto:nusratsarwar@y...]

Sent: February 18, 2002 2:59 PM

To: ASP Web HowTo

Subject: [asp_web_howto] Re: HTTP 500 - Internal server error





Thanx Nikos

here is the code



<%

Dim BodyToSend, Message

If Request.Form("SendButton") <> "Send" or

Request.Form("bodytext") = "" Then

%>



<html>

<head>

<title>Feedback Form</title>

</head>

<body>





<form method="POST"

action="<%=Request.ServerVariables("URL")%>">



Please enter your email address:<br>

<input type="text" name="email" size="50"

maxwidth="50" maxlength="50">

<br><br>



Type your message:<br>

<textarea name="bodytext" cols="40" rows="6">

</textarea>

<br><br>



<input type="submit" value="Send" name="SendButton">

<input type="reset" value="Clear" name="ClearButton">

</form>

</body>

</html>



<%

Else

Set Message = CreateObject("CDONTS.NewMail")

Message.From = Request.Form("email")

Message.To = "alimedic@c..."

Message.Subject = "Feedback Form"

BodyToSend = Request.Form("bodytext") & vbcrlf & _

" " & vbCRLF & _



Message.Body = BodyToSend



On Error Resume Next

Message.Send

If Err.Number = 0 Then

Response.Write "Success! Message has been sent."

Else

Response.Write "Error: " & Err.Description

End If

Set Message = Nothing

End If

%>



thanx again





__________________________________________________

Do You Yahoo!?

Yahoo! Sports - Coverage of the 2002 Olympic Games

http://sports.yahoo.com






$subst('Email.Unsub').



Message #8 by nusrat sarwar <nusratsarwar@y...> on Mon, 18 Feb 2002 22:07:46 -0800 (PST)
Hi there

many thanx Oleg

very grateful

bother you again

thanx

take care

regards

nusrat

--- Oleg Kapeljushnik <c-oleg.kapeljushnik@w...>

wrote:

> The problem is here :

> " " & vbCRLF & _

> 

> Message.Body = BodyToSend

> 

> change it to :

> " " & vbCRLF

> 

> Message.Body = BodyToSend

> 

> You continue the line from privous line.

> I just did this change and everything looks good

> now.

> 

> Oleg

> 

> 

> -----Original Message-----

> From: nusrat sarwar [mailto:nusratsarwar@y...]

> Sent: February 18, 2002 2:59 PM

> To: ASP Web HowTo

> Subject: [asp_web_howto] Re: HTTP 500 - Internal

> server error

> 

> 

> Thanx Nikos

> here is the code

> 

> <%

> Dim BodyToSend, Message

> If Request.Form("SendButton") <> "Send" or

> Request.Form("bodytext") = "" Then

> %>

> 

> <html>

> <head>

> <title>Feedback Form</title>

> </head>

> <body>

> 

> 

> <form method="POST"

> action="<%=Request.ServerVariables("URL")%>">

> 

> Please enter your email address:<br>

> <input type="text" name="email" size="50"

> maxwidth="50" maxlength="50">

> <br><br>

> 

> Type your message:<br>

> <textarea name="bodytext" cols="40" rows="6">

> </textarea>

> <br><br>

> 

> <input type="submit" value="Send" name="SendButton">

> <input type="reset" value="Clear"

> name="ClearButton">

> </form>

> </body>

> </html>

> 

> <%

> Else

> Set Message = CreateObject("CDONTS.NewMail")

> Message.From = Request.Form("email")

> Message.To = "alimedic@c..."

> Message.Subject = "Feedback Form"

> BodyToSend = Request.Form("bodytext") & vbcrlf & _

> " " & vbCRLF & _

> 

> Message.Body = BodyToSend

> 

> On Error Resume Next

> Message.Send

> If Err.Number = 0 Then

> Response.Write "Success! Message has been sent."

> Else

> Response.Write "Error: " & Err.Description

> End If

> Set Message = Nothing

> End If

> %>

> 

> thanx again

> 

> 

> __________________________________________________

> Do You Yahoo!?

> Yahoo! Sports - Coverage of the 2002 Olympic Games

> http://sports.yahoo.com

> 





> $subst('Email.Unsub').

> 

> 





$subst('Email.Unsub').





__________________________________________________

Do You Yahoo!?

Yahoo! Sports - Coverage of the 2002 Olympic Games

http://sports.yahoo.com


  Return to Index