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: CS0246: The type or namespace name 'NetworkCredential' could not be found (are you missing a using directive or an assembly reference?)

Source Error:


Line 41:             MyMailMessage.From = new MailAddress("marketing@amouriongroup.com", "Writers.ae");
Line 42:             MyMailMessage.IsBodyHtml = true;
Line 43:             NetworkCredential mailAuthentication = new
Line 44:             NetworkCredential("arra.regsitration@gmail.com", "Manage#Apply4");
Line 45:             SmtpClient mailClient = new SmtpClient("smtp.gmail.com", 587);

Source File: c:\inetpub\vhosts\acitdxb.com\writers.ae\Business_Plan_Writing_Services_in_UAE_Dubai_Abu_Dhabi_Sharjah.aspx.cs    Line: 43






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