This mail delivery system works fine from when action is perfomed from some clients, but gets below error for some of client machine. I am not sure what settings should be changed on client machine (IE) to remove this error.
Exception :
System.Net.Mail.SmtpException: Cannot get IIS pickup directory.
But if it's SMTP is not intalled on server then it would be consistent problem with all client machine. Here, from some client machines i am able to send the mail but from some clients i m getting the exception.
We are using win server 2008 / IIS 7 as server SW and on client side we are using XP SP3 and IE 8.
I cann't get inner exception deatails as code is running on server and from my machine the issue is not reproducible.
I can safely eliminate the disk space issue because it would not be client dependent. I am gessing some kind of security/ permission or IE setting issuse on client machine.
I have checked header of the request from both client machine but those are same!
FYI, we have just ported over application from .net 2.0 to .net 4.0.
Could you suggest something based on above information?
Tanmay.in
Member
34 Points
16 Posts
Unable to generate Mail from couple of client machine.
Apr 24, 2012 09:14 AM|LINK
Hi all,
I am working on a webproject, where on a perticular event mail is being sent. This mail is sent using following code.
objMailClient = New SmtpClient("localhost")
objMailClient.DeliveryMethod = SmtpDeliveryMethod.PickupDirectoryFromIis
objMailClient.Send(objMailMessage)
This mail delivery system works fine from when action is perfomed from some clients, but gets below error for some of client machine. I am not sure what settings should be changed on client machine (IE) to remove this error.
Exception :
System.Net.Mail.SmtpException: Cannot get IIS pickup directory.
Thanks and regards,
Tanmay
ignatandrei
All-Star
134983 Points
21638 Posts
Moderator
MVP
Re: Unable to generate Mail from couple of client machine.
Apr 24, 2012 10:20 AM|LINK
check the inner exception( maybe you do not have SMTP installed?)
Tanmay.in
Member
34 Points
16 Posts
Re: Unable to generate Mail from couple of client machine.
Apr 24, 2012 10:58 AM|LINK
Hi, thaks for the reply.
But if it's SMTP is not intalled on server then it would be consistent problem with all client machine. Here, from some client machines i am able to send the mail but from some clients i m getting the exception.
We are using win server 2008 / IIS 7 as server SW and on client side we are using XP SP3 and IE 8.
ignatandrei
All-Star
134983 Points
21638 Posts
Moderator
MVP
Re: Unable to generate Mail from couple of client machine.
Apr 24, 2012 04:00 PM|LINK
In usual conditions ,impossible for the SAME site. The code is on server .
Special conditions can involve low space on disk, others.See inner exception
Tanmay.in
Member
34 Points
16 Posts
Re: Unable to generate Mail from couple of client machine.
Apr 27, 2012 10:02 AM|LINK
I cann't get inner exception deatails as code is running on server and from my machine the issue is not reproducible.
I can safely eliminate the disk space issue because it would not be client dependent. I am gessing some kind of security/ permission or IE setting issuse on client machine.
I have checked header of the request from both client machine but those are same!
FYI, we have just ported over application from .net 2.0 to .net 4.0.
Could you suggest something based on above information?