Server Error in '/' Application.

Logon failed for login 'DB_50399_sb_user' due to trigger execution.
Changed database context to 'DB_50399_sb'.
Changed language setting to us_english.

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: Logon failed for login 'DB_50399_sb_user' due to trigger execution.
Changed database context to 'DB_50399_sb'.
Changed language setting to us_english.

Source Error:


Line 16: 				
Line 17: 		sql="SELECT * FROM ipToCountry WHERE IP_FROM<=" & idadd &" AND IP_TO>=" & idadd		
Line 18: 		iCnn.open
Line 19: 		mycommand=new sqlcommand(sql,iCnn)		
Line 20: 		myreader=mycommand.executereader()		

Source File: E:\web\saujanya\Topheader.aspx    Line: 18

Stack Trace:


[SqlException (0x80131904): Logon failed for login 'DB_50399_sb_user' due to trigger execution.
Changed database context to 'DB_50399_sb'.
Changed language setting to us_english.]
   System.Data.ProviderBase.DbConnectionPool.GetConnection(DbConnection owningObject) +428
   System.Data.ProviderBase.DbConnectionFactory.GetConnection(DbConnection owningConnection) +65
   System.Data.ProviderBase.DbConnectionClosed.OpenConnection(DbConnection outerConnection, DbConnectionFactory connectionFactory) +117
   System.Data.SqlClient.SqlConnection.Open() +122
   ASP.listing_aspx.chkCountry() in E:\web\saujanya\Topheader.aspx:18
   ASP.listing_aspx.Page_Load(Object Src, EventArgs E) in E:\web\saujanya\listing.aspx:17
   System.Web.Util.CalliHelper.EventArgFunctionCaller(IntPtr fp, Object o, Object t, EventArgs e) +14
   System.Web.Util.CalliEventHandlerDelegateProxy.Callback(Object sender, EventArgs e) +35
   System.Web.UI.Control.OnLoad(EventArgs e) +99
   System.Web.UI.Control.LoadRecursive() +50
   System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +627


Version Information: Microsoft .NET Framework Version:2.0.50727.9061; ASP.NET Version:2.0.50727.9062