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 'ArchiveEmailRepository.ArchiveEmail(System.Net.Mail.MailMessage, string)' has some invalid arguments

Source Error:


Line 261:        catch (Exception ex)
Line 262:        {
Line 263:            CurrentRepositories.MyArchiveEmailRepository.ArchiveEmail(mm, ex.Message);
Line 264:            ltlMessage.Text = "<p><strong>Sorry, your message could not be sent at this time. <!--" + ex.Message + "--></strong></p>";
Line 265:        }

Source File: d:\inetpub\vhosts\martincampbell.co.uk\httpdocs\EnquiryList.aspx.cs    Line: 263






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