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: ASPNET: Make sure that the class defined in this code file matches the 'inherits' attribute, and that it extends the correct base class (e.g. Page or UserControl).

Source Error:


Line 12: using System.Net.Mail;
Line 13: 
Line 14: public partial class Spiritual_MasterPage : System.Web.UI.MasterPage
Line 15: {
Line 16:     SqlConnection con = new SqlConnection(ConfigurationManager.ConnectionStrings["constr"].ToString());

Source File: c:\inetpub\vhosts\welcomenri.com\httpdocs\Spiritual\MasterPage.master.cs    Line: 14






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