SmtpMail.Send problem (bad)

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

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?
 
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.
 
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 said:
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 said:
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?
 
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??
 
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.
 
Back
Top