Get Help:Ask a Question in our Forums|Report a Bug|More Help Resources
Last post Apr 27, 2012 10:02 AM by Tanmay.in
Apr 24, 2012 09:14 AM|LINK
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
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.
System.Net.Mail.SmtpException: Cannot get IIS pickup directory.
Thanks and regards,
Apr 24, 2012 10:20 AM|LINK
check the inner exception( maybe you do not have SMTP installed?)
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.
Apr 24, 2012 04:00 PM|LINK
from some client machines i am able to send the mail but from some clients i m getting the exception.
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
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?