Server Error in '/' Application.

Compilation Error

Description: An error occurred during the compilation of a resource required to service this request. Please review the following specific error details and modify your source code appropriately.

Compiler Error Message: CS1502: The best overloaded method match for 'clsMail.SendEmailAPIKey(string, string, string, string, string, string, System.Net.Mail.AlternateView, bool, string, string)' has some invalid arguments

Source Error:


Line 273:
Line 274:                    var attachment = new Attachment(fs, FileUpload1.FileName);
Line 275:                    clsMail.SendEmailAPIKey(ConfigurationManager.AppSettings["ToMailResume"].ToString(), ConfigurationManager.AppSettings["CCMail"].ToString(), null, subject, msg, attachment, null, true, fs, FileUpload1.FileName);
Line 276:                    //System.Web.Mail.MailAttachment attachFile = new MailAttachment(path);
Line 277:                    //objMailMessage.Attachments.Add(attachFile);

Source File: c:\home\site\wwwroot\careers.aspx.cs    Line: 275






Version Information: Microsoft .NET Framework Version:4.0.30319; ASP.NET Version:4.8.4690.0