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
Avinash YoganandPosted Mar 17, 2011, 4:25 AM
Regards,
Avinash
Krishna GaradPosted Mar 17, 2011, 3:58 AM
Avinash YoganandPosted Mar 17, 2011, 3:47 AM
Krishna GaradPosted Mar 17, 2011, 3:39 AM
Soft CornerPosted Mar 17, 2011, 3:38 AM
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");
Avinash YoganandPosted Mar 17, 2011, 3:33 AM
Krishna GaradPosted Mar 17, 2011, 3:26 AM