I have an asp.net (1.1) that "as" sending emails okay. Lately it is trowing
the following exception:

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
System.Reflection.TargetInvocationException: Exception has been thrown by
the target of an invocation. ---> System.UnauthorizedAccessException: Access
is denied. --- End of inner exception stack trace --- at
System.RuntimeType.InvokeDispMethod(String name, BindingFlags invokeAttr,
Object target, Object[] args, Boolean[] byrefModifiers, Int32 culture,
String[] namedParameters) at System.RuntimeType.InvokeMember(String name,
BindingFlags invokeAttr, Binder binder, Object target, Object[] args,
ParameterModifier[] modifiers, CultureInfo culture, String[] namedParameters)
at System.Web.Mail.CdoSysHelper.Send(MailMessage message) at
System.Web.Mail.SmtpMail.Send(MailMessage message) at
Que.temp.Page_Load(Object sender, EventArgs e) in
c:\inetpub\wwwroot\dev\queue\temp.aspx.cs:line 43
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

We are stumped.

2.0 apps on the same box work ok (Send()).
1.1 apps on another box work ok(Send()).
1.1 windows apps work ok(Send())

I've checked everywhere., but to no avail.

Anyone here have any ideas?

Re: SmtpMail.Send problem (bad) by sloan

sloan
Mon May 08 16:39:36 CDT 2006

I have a 2.0 and 1.1 hybrid solution at:

http://spaces.msn.com/sholliday/ 2/8/2006 entry

..

Check all the folders in the C:\Inetpub\mailroot\
and see if it gets hung up at your machine.

If it gets stuck, then you may have to adjust your smarthost settings.

But I've seen it screw up the 1.1 and 2.0 hybrid sites.




"Chaz" <Chaz@discussions.microsoft.com> wrote in message
news:3A7F3851-362C-4BB0-AE5A-59F1185FA2D8@microsoft.com...
> I have an asp.net (1.1) that "as" sending emails okay. Lately it is
trowing
> the following exception:
>
> ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
> System.Reflection.TargetInvocationException: Exception has been thrown by
> the target of an invocation. ---> System.UnauthorizedAccessException:
Access
> is denied. --- End of inner exception stack trace --- at
> System.RuntimeType.InvokeDispMethod(String name, BindingFlags invokeAttr,
> Object target, Object[] args, Boolean[] byrefModifiers, Int32 culture,
> String[] namedParameters) at System.RuntimeType.InvokeMember(String name,
> BindingFlags invokeAttr, Binder binder, Object target, Object[] args,
> ParameterModifier[] modifiers, CultureInfo culture, String[]
namedParameters)
> at System.Web.Mail.CdoSysHelper.Send(MailMessage message) at
> System.Web.Mail.SmtpMail.Send(MailMessage message) at
> Que.temp.Page_Load(Object sender, EventArgs e) in
> c:\inetpub\wwwroot\dev\queue\temp.aspx.cs:line 43
> ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
>
> We are stumped.
>
> 2.0 apps on the same box work ok (Send()).
> 1.1 apps on another box work ok(Send()).
> 1.1 windows apps work ok(Send())
>
> I've checked everywhere., but to no avail.
>
> Anyone here have any ideas?



Re: SmtpMail.Send problem (bad) by Chaz

Chaz
Mon May 08 17:11:01 CDT 2006

Woe that looks pretty cool.

No mailroot dir on this box - smtp stuff is handled elsewhere(different box).

I'm not sure if your solution will work - I have only one smtp server to
work with.

thanx though. I like your idea for multiple smtp servers - I just wish I
had more to use.



"sloan" wrote:

> I have a 2.0 and 1.1 hybrid solution at:
>
> http://spaces.msn.com/sholliday/ 2/8/2006 entry
>
> ...
>
> Check all the folders in the C:\Inetpub\mailroot\
> and see if it gets hung up at your machine.
>
> If it gets stuck, then you may have to adjust your smarthost settings.
>
> But I've seen it screw up the 1.1 and 2.0 hybrid sites.
>
>
>
>
> "Chaz" <Chaz@discussions.microsoft.com> wrote in message
> news:3A7F3851-362C-4BB0-AE5A-59F1185FA2D8@microsoft.com...
> > I have an asp.net (1.1) that "as" sending emails okay. Lately it is
> trowing
> > the following exception:
> >
> > ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
> > System.Reflection.TargetInvocationException: Exception has been thrown by
> > the target of an invocation. ---> System.UnauthorizedAccessException:
> Access
> > is denied. --- End of inner exception stack trace --- at
> > System.RuntimeType.InvokeDispMethod(String name, BindingFlags invokeAttr,
> > Object target, Object[] args, Boolean[] byrefModifiers, Int32 culture,
> > String[] namedParameters) at System.RuntimeType.InvokeMember(String name,
> > BindingFlags invokeAttr, Binder binder, Object target, Object[] args,
> > ParameterModifier[] modifiers, CultureInfo culture, String[]
> namedParameters)
> > at System.Web.Mail.CdoSysHelper.Send(MailMessage message) at
> > System.Web.Mail.SmtpMail.Send(MailMessage message) at
> > Que.temp.Page_Load(Object sender, EventArgs e) in
> > c:\inetpub\wwwroot\dev\queue\temp.aspx.cs:line 43
> > ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
> >
> > We are stumped.
> >
> > 2.0 apps on the same box work ok (Send()).
> > 1.1 apps on another box work ok(Send()).
> > 1.1 windows apps work ok(Send())
> >
> > I've checked everywhere., but to no avail.
> >
> > Anyone here have any ideas?
>
>
>

Re: SmtpMail.Send problem (bad) by Chaz

Chaz
Mon May 08 17:20:02 CDT 2006



Something else:

for about 10 days or so we've been getting these weird error popups from
windows that read:

"Error during Send request in first handshake. Error: 12029"

From what I've been able to gather, this is related to HTTP sends. The
appearance of the word "first" in the error mssg presupposes a second
handshake. Could my app be hitting a similar error on SmtpMail.Send() and
giving up without attempting another and returning the exception in my first
post??



Re: SmtpMail.Send problem (bad) by sloan

sloan
Mon May 08 17:48:16 CDT 2006

You don't have to use multi-servers, but you have the option.

You can start a gmail account, and enable pop. and test that with my
project.

That way you can differentiate between it being your code ..... and your
server.




"Chaz" <Chaz@discussions.microsoft.com> wrote in message
news:DDAC580A-D2CB-437E-9E24-7CD4F5793FF5@microsoft.com...
>
>
> Something else:
>
> for about 10 days or so we've been getting these weird error popups from
> windows that read:
>
> "Error during Send request in first handshake. Error: 12029"
>
> From what I've been able to gather, this is related to HTTP sends. The
> appearance of the word "first" in the error mssg presupposes a second
> handshake. Could my app be hitting a similar error on SmtpMail.Send() and
> giving up without attempting another and returning the exception in my
first
> post??
>
>