Error -- The path is not of a legal form.

Type : System.ArgumentException
Source: mscorlib
Method: NormalizePath
Error: The path is not of a legal form.

Reason: Dim attachment as new System.Net.Mail.Attachment(" ") will cause the error.

空白字符串作为文件路径导致。

 

posted @ 2014-03-12 17:02  xiaoyinxxy  阅读(1290)  评论(0编辑  收藏  举报