Hi I am getting an Error while Inserting Record into databse while ruuning the Project from IIS and i will run through Visual Studio it is working well.
The INSERT permission was denied on the object 'tblPageInfo', database 'master', schema 'dbo'.
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.Data.SqlClient.SqlException: The INSERT permission was denied on the object 'tblPageInfo', database 'master', schema 'dbo'.
Source Error:
Line 43: string s = "insert into tblPageInfo values('" + PageName + "','" + Url + "','" + PageTitle + "','" + CanonicalUrl + "','" + MetaDescription + "','" + MetaKeyword + "','" + H1Text + "','" + H2Text + "')";
Line 44: SqlCommand cmd = new SqlCommand(s, con);
Line 45: cmd.ExecuteNonQuery();
Line 46: con.Close();
Line 47: }
Source File: D:\Kartik\Materials\CMS\CMS\AddPage.aspx.cs Line: 45