Server Error in '/' Application.

The EXECUTE permission was denied on the object 'tbh_Counter_IncreaseViewsCount', database 'admin_Halinh', 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 EXECUTE permission was denied on the object 'tbh_Counter_IncreaseViewsCount', database 'admin_Halinh', schema 'dbo'.

Source Error:


Line 59:             cmd.Parameters.Add("@isMonday", i);
Line 60:             cn.Open();
Line 61:             int ret = cmd.ExecuteNonQuery();
Line 62:         }
Line 63:     }

Source File: c:\inetpub\vhosts\halinhjsc.com.vn\httpdocs\Global.asax    Line: 61

Stack Trace:


[SqlException (0x80131904): The EXECUTE permission was denied on the object 'tbh_Counter_IncreaseViewsCount', database 'admin_Halinh', schema 'dbo'.]
   System.Data.SqlClient.SqlConnection.OnError(SqlException exception, Boolean breakConnection) +1950522
   System.Data.SqlClient.SqlInternalConnection.OnError(SqlException exception, Boolean breakConnection) +4856715
   System.Data.SqlClient.TdsParser.ThrowExceptionAndWarning(TdsParserStateObject stateObj) +194
   System.Data.SqlClient.TdsParser.Run(RunBehavior runBehavior, SqlCommand cmdHandler, SqlDataReader dataStream, BulkCopySimpleResultSet bulkCopyHandler, TdsParserStateObject stateObj) +1121
   System.Data.SqlClient.SqlCommand.FinishExecuteReader(SqlDataReader ds, RunBehavior runBehavior, String resetOptionsString) +200
   System.Data.SqlClient.SqlCommand.RunExecuteReaderTds(CommandBehavior cmdBehavior, RunBehavior runBehavior, Boolean returnStream, Boolean async) +954
   System.Data.SqlClient.SqlCommand.RunExecuteReader(CommandBehavior cmdBehavior, RunBehavior runBehavior, Boolean returnStream, String method, DbAsyncResult result) +162
   System.Data.SqlClient.SqlCommand.InternalExecuteNonQuery(DbAsyncResult result, String methodName, Boolean sendToPipe) +175
   System.Data.SqlClient.SqlCommand.ExecuteNonQuery() +137
   ASP.global_asax.Session_Start(Object sender, EventArgs e) in c:\inetpub\vhosts\halinhjsc.com.vn\httpdocs\Global.asax:61
   System.Web.SessionState.SessionStateModule.RaiseOnStart(EventArgs e) +8797232
   System.Web.SessionState.SessionStateModule.CompleteAcquireState() +237
   System.Web.SessionState.SessionStateModule.BeginAcquireState(Object source, EventArgs e, AsyncCallback cb, Object extraData) +504
   System.Web.AsyncEventExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute() +66
   System.Web.HttpApplication.ExecuteStep(IExecutionStep step, Boolean& completedSynchronously) +155


Version Information: Microsoft .NET Framework Version:2.0.50727.5420; ASP.NET Version:2.0.50727.5420