Tech
Forums
Jobs
Books
Events
Live
Interviews Prep
More
Learn
Training
Career
Members
Videos
News
Blogs
Login
Sign Up
Ask Question
6
Reply
Failed to map the path '/images/fb.gif'
narasiman rao
Jan 17 2016 9:03 PM
569
Reply
My code as follows
Attachment imgAtt1 = new Attachment(Server.MapPath("\\images\\fb.gif"));
Attachment imgAtt2 = new Attachment(Server.MapPath("\\images\\twiter.gif"));
imgAtt1.ContentId = "\\images\\fb.gif";
imgAtt2.ContentId = "\\images\\twiter.gif";
mailmess.To.Clear();
smtpserver.Send(mailmess);
mailmess.DeliveryNotificationOptions = DeliveryNotificationOptions.OnFailure;
mailmess.Dispose();
When i run the above code shows error as follows
Failed to map the path '/images/fb.gif'
The above error shows in below line as follows
Attachment imgAtt1 = new Attachment(Server.MapPath("\\images\\fb.gif"));
please help me what is the mistake i made.
Upload Source Code
Select only zip and rar file.
Post
Reset
Cancel
Answers (
6
)
Next Recommended Forum
Key Finder Application ( Windows) in C # Vs2010
how to save data in shared database file