i have a web mail application. am sending mail from gmal along with attachments. when i click send option i get this error.
Server Error in '/' Application.
Could not find file 'C:\Program Files\Microsoft Visual Studio 9.0\Common7\IDE\mail id.txt'.
Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code.Exception Details: System.IO.FileNotFoundException: Could not find file 'C:\Program Files\Microsoft Visual Studio 9.0\Common7\IDE\mail id.txt'.
Source Error:
please guide
Thanks in advance,
Regards,
Avinash

Krishna GaradRank #191 · 12.8K reputationPosted Mar 16, 2011, 11:26 PM EDT
Avinash Yoganand33 reputationPosted Mar 16, 2011, 11:33 PM EDT
Soft CornerRank #1,221 · 1.5K reputationPosted Mar 16, 2011, 11:38 PM EDT
The above path is default when you just set "mailid.txt" ,Copy that file in your Project Folder & try to catch the path using
string path = HttpContext.Current.Server.MapPath("~/mailid.txt");
Krishna GaradRank #191 · 12.8K reputationPosted Mar 16, 2011, 11:39 PM EDT
Avinash Yoganand33 reputationPosted Mar 16, 2011, 11:47 PM EDT
Krishna GaradRank #191 · 12.8K reputationPosted Mar 16, 2011, 11:58 PM EDT
Avinash Yoganand33 reputationPosted Mar 17, 2011, 12:25 AM EDT
Regards,
Avinash