Ok, here is what I found: if I have <identity impersonate="true"/> in my web.config file and before creating a new MailMessage (Dim message As New System.Net.Mail.MailMessage) object, I impersonate another user, I am getting this exception.
However, if I remove the <identity impersonate="true"/> from my web.config, it works. Can somebody explain to me the behaviour of this ?
Wednesday, December 19, 2007 12:35 PM
Microsoft is conducting an online survey to understand your opinion of the Msdn Web site. If you choose to participate, the online survey will be presented to you when you leave the Msdn Web site.