用Jmail接收附件出错,请帮忙解决!
接收附件代码如下:
for(int i=0;i<Msg.Attachments.Count;i++)
{
Msg.Attachments[i].SaveToFile("c:\\"+Msg.Attachments[n].Name);
name.Text+="<a href='c:\\"+Msg.Attachments[n].Name+"'>"+Msg.Attachments[n].Name+"</a>";
错误提示信息: }
异常详细信息: System.Runtime.InteropServices.COMException: Catastrophic failure