Invalid Object Name
I have a web application which throws an error while I am trying to insert a row in a table. Following is the error, could anyone help.
Server Error in '/hollywood' Application.
----------------------------------------------------------------
Invalid object name 'dbo.t_Passport'.
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: Invalid object name 'dbo.t_Passport'.
Source Error:
Line 351: ObjConnection.open()
Line 352:
Line 353: objCmd.ExecuteNonQuery()
Line 354: ObjConnection.Close()
Line 355:
Source File: C:\dotnet\ADDADMIN\newemp.aspx Line: 353
Stack Trace:
[SqlException: Invalid object name 'dbo.t_Passport'.]
System.Data.SqlClient.SqlCommand.ExecuteReader(Com mandBehavior cmdBehavior, RunBehavior runBehavior, Boolean returnStream) +742
System.Data.SqlClient.SqlCommand.ExecuteNonQuery() +193
ASP.newemp_aspx.AddNewEmp1(Object s, EventArgs e) in C:\dotnet\ADDADMIN\newemp.aspx:353
System.Web.UI.WebControls.Button.OnClick(EventArgs e) +108
System.Web.UI.WebControls.Button.System.Web.UI.IPo stBackEventHandler.RaisePostBackEvent(String eventArgument) +57
System.Web.UI.Page.RaisePostBackEvent(IPostBackEve ntHandler sourceControl, String eventArgument) +18
System.Web.UI.Page.RaisePostBackEvent(NameValueCol lection postData) +33
System.Web.UI.Page.ProcessRequestMain() +1292
--------------------------------------------------------------------------------
Version Information: Microsoft .NET Framework Version:1.1.4322.2032; ASP.NET Version:1.1.4322.2032
|