Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

Debugging asp scripts on IIS 7.5

72 views
Skip to first unread message

Dave Marshall

unread,
May 22, 2012, 5:18:38 AM5/22/12
to
All,
I have a problem with an asp script on IIS 7.5, but when I try to
setup script debugging by following the directions on msdn (enable server
side debugging in IIS 7.5 and the script errors should show up in the page
that fails - the value for "display errors in browser" was already set to
"true") all I get is a generic 500 error. I posted on
microsoft.public.inetserver.asp (on 05/21/2012; Only the admin can send
form mail using cdosys) with all the gory details of the script I'm using,
but this problem can probably be resolved with a server setting for smtp, so
I'm posting here, too. Since this is an IIS NG, I was hoping to get a
suggestion for getting script debugging to work, besides a suggestion for
the cdosys problem. Here's my post on microsoft.public.inetserver.asp:

I should mention, I'm an asp newbie. If you can think of something trivial
that could be stopping non-admin users from sending e-mail, you should
mention it because it's probably new to me. BTW, I tried turning the UAC
off, then back on and now it's off again; no help either. I don't have that
much experience with IIS 7.5 either, except for what I learned from just
setting it up, so there might be something that can be done on the server
too make non-admin form mail go out.

If I could just get debugging to work on the web server, that would help.
I've mostly been using Perl scripts up to this point, and they're easy to
debug. Suggestions on debugging asp scripts would also be appreciated (I
still think it's dying when it gts to CreateObject, but it really shouldn't,
because the way I have it set up, it always runs as the admin; dave).

Dave

"Dave Marshall" <dave-m...@bk.ru> wrote in message
news:Pr-dnUMxYo_nRSfS...@giganews.com...
> All,
> I dlownloaded Snitz Forum 2000 (about a week ago) and put it on my
> website; http://community-info.org I enabled form mail, using cdosys, but
> it didn't work. It worked for the admin (me, dave) after I hardcoded the
> e-mail server, e-mail address, etc. in a file it uses to send e-mail;
> inc-mail.asp :
>
> case "cdosys"
> Set myMail = CreateObject("CDO.Message")
> myMail.Subject="Mail Message From A Snitz Forum 2000
> Member"
> myMail.From = "dave-m...@qip.ru"
> myMail.To= strRecipients
> myMail.TextBody= strMessage
> myMail.Configuration.Fields.Item _
>
> ("http://schemas.microsoft.com/cdo/configuration/sendusing")=2
> myMail.Configuration.Fields.Item _
>
> ("http://schemas.microsoft.com/cdo/configuration/smtpauthenticate") = 1
> myMail.Configuration.Fields.Item _
>
> ("http://schemas.microsoft.com/cdo/configuration/smtpserver")="smtp.qip.ru"
> myMail.Configuration.Fields.Item _
>
> ("http://schemas.microsoft.com/cdo/configuration/smtpserverport")=25
> myMail.Configuration.Fields.Item _
>
> ("http://schemas.microsoft.com/cdo/configuration/sendusername") =
> "dave-m...@qip.ru"
> myMail.Configuration.Fields.Item _
>
> ("http://schemas.microsoft.com/cdo/configuration/sendemailaddress") =
> "dave-m...@qip.ru"
> myMail.Configuration.Fields.Item _
>
> ("http://schemas.microsoft.com/cdo/configuration/sendpassword") = "my
> password goes here"
> myMail.Configuration.Fields.Update
> myMail.Send
> If Err <> 0 Then
> Err_Msg = Err_Msg & "<li>Your request was not sent due
> to the following error: " & Err.Description & "</li>"
> End if
> set myMail = nothing
> On error goto 0
>
> I picked qip.ru because it uses port 25 and basic authentication. When I
> send from any other user (they're all created by me so far) the mail fails
> with a 500 (internal server) error. A member of the Snitz community had a
> similar problem that was resolved by modifying another file, pop_mail.asp.
> The mod "fools" the server you're sending to that the admin is sending the
> e-mail. The admin is sending the e-mail. I've hardcoded the username and
> address of the admin (me) into the file that actually sends the e-mail.
> Unfortuanately I can't get debugging to work on my server; IIS 7.5. When I
> enable server side debugging I still don't get an error message in the
> failure page other then the stock SMTP 500 error message supplied by
> Microsoft. So I can only guess it's dying when it hits the
> CreateObject("CDO.Message") statement.
>
> I thought this might be a permissions error, so I set the Snitz forum to
> run as one of my processes; didn't help. I set the permissions on the
> snitz folder and subfolders (and all the files they contain) to be
> readable, writeable, executable by anybody; didn't help. I tried setting
> the applicationpool to run as me for the snitz forum; didn't help. I
> unregistered and re-registered cdosys.dll; didn't help. The only bright
> side to all of this is that I can still send form mail (as me, the admin)
> after each change.
>
> I have my own mail server that runs on a different PC then the one my web
> server is on. I could probably start running a mail server on the PC where
> I run IIS, and send form mail from the local server, but I want to get
> this working. Anybody have any ideas?
>
> Thanks, Dave


Dave Marshall

unread,
May 22, 2012, 6:31:30 AM5/22/12
to
I'm about to take off for work, so I don't have the time to check out an
idea I just had. I've assuming cdosys creates something like a socket and
communicates through that. However, the failure for non-admins makes it look
like CreateObject("CDO.Message") is trying to connect to smtp.qip.ru and
failing (I've been assuming that the create has been failing because of some
permission problem on my side, but this could be a problem when connecting
to smtp.qip.ru). I need to book up on how cdosys actually works, but does
anyone know if I need to set some kind of username parameters, and where do
I set them?

Thanks, Dave

"Dave Marshall" <dave-m...@bk.ru> wrote in message
news:VdydnSyVGPloxCbS...@giganews.com...

Dave Marshall

unread,
Dec 8, 2012, 7:25:21 PM12/8/12
to
I solved this ages ago. The snitz software wasn't updating one of the values
in the database it used. I created a default value for it and all is well
now. I fixed this nearly 1/2 year ago; don't remember what value wasn't
being updated .

"Dave Marshall" <dave-m...@bk.ru> wrote in message
news:VdydnSyVGPloxCbS...@giganews.com...
0 new messages