YellowbusTeam
asked on
Event viewer error - ASP.NET 2.0.50727.0 - Event ID: 1309
Event code: 3005
Event message: An unhandled exception has occurred.
Event time: 29/10/2008 12:36:06
Event time (UTC): 29/10/2008 12:36:06
Event ID: 7873d8a611ad445d998db4fdef 25a5c9
Event sequence: 728
Event occurrence: 9
Event detail code: 0
Application information:
Application domain: /LM/W3SVC/2036148338/Root- 5-12869746 6270360000
Trust level: Full
Application Virtual Path: /
Application Path: D:\WebFolders\test.thegmac h.com\
Machine name: FORMWEB3
Process information:
Process ID: 148
Process name: w3wp.exe
Account name: NT AUTHORITY\NETWORK SERVICE
Exception information:
Exception type: SqlException
Exception message: INSERT statement conflicted with COLUMN FOREIGN KEY constraint 'FK_CategoryRelationship_C ategory'. The conflict occurred in database 'thegmach', table 'Category', column 'ID'.
The statement has been terminated.
Request information:
Request URL: http://test.thegmach.com/relatedcategories.aspx
Request path: /relatedcategories.aspx
User host address: 79.66.7.235
User:
Is authenticated: False
Authentication Type:
Thread account name: NT AUTHORITY\NETWORK SERVICE
Thread information:
Thread ID: 7
Thread account name: NT AUTHORITY\NETWORK SERVICE
Is impersonating: False
Stack trace: at System.Data.SqlClient.SqlC onnection. OnError(Sq lException exception, Boolean breakConnection)
at System.Data.SqlClient.SqlI nternalCon nection.On Error(SqlE xception exception, Boolean breakConnection)
at System.Data.SqlClient.TdsP arser.Thro wException AndWarning (TdsParser StateObjec t stateObj)
at System.Data.SqlClient.TdsP arser.Run( RunBehavio r runBehavior, SqlCommand cmdHandler, SqlDataReader dataStream, BulkCopySimpleResultSet bulkCopyHandler, TdsParserStateObject stateObj)
at System.Data.SqlClient.SqlD ataReader. ConsumeMet aData()
at System.Data.SqlClient.SqlD ataReader. get_MetaDa ta()
at System.Data.SqlClient.SqlC ommand.Fin ishExecute Reader(Sql DataReader ds, RunBehavior runBehavior, String resetOptionsString)
at System.Data.SqlClient.SqlC ommand.Run ExecuteRea derTds(Com mandBehavi or cmdBehavior, RunBehavior runBehavior, Boolean returnStream, Boolean async)
at System.Data.SqlClient.SqlC ommand.Run ExecuteRea der(Comman dBehavior cmdBehavior, RunBehavior runBehavior, Boolean returnStream, String method, DbAsyncResult result)
at System.Data.SqlClient.SqlC ommand.Run ExecuteRea der(Comman dBehavior cmdBehavior, RunBehavior runBehavior, Boolean returnStream, String method)
at System.Data.SqlClient.SqlC ommand.Exe cuteReader (CommandBe havior behavior, String method)
at System.Data.SqlClient.SqlC ommand.Exe cuteDbData Reader(Com mandBehavi or behavior)
at System.Data.Common.DbComma nd.Execute Reader()
at System.Data.Linq.SqlClient .SqlProvid er.Execute (Expressio n query, QueryInfo queryInfo, IObjectReaderFactory factory, Object[] parentArgs, Object[] userArgs, ICompiledSubQuery[] subQueries, Object lastResult)
at System.Data.Linq.SqlClient .SqlProvid er.Execute All(Expres sion query, QueryInfo[] queryInfos, IObjectReaderFactory factory, Object[] userArguments, ICompiledSubQuery[] subQueries)
at System.Data.Linq.SqlClient .SqlProvid er.System. Data.Linq. Provider.I Provider.E xecute(Exp ression query)
at System.Data.Linq.ChangeDir ector.Stan dardChange Director.D ynamicInse rt(Tracked Object item)
at System.Data.Linq.ChangeDir ector.Stan dardChange Director.I nsert(Trac kedObject item)
at System.Data.Linq.ChangePro cessor.Sub mitChanges (ConflictM ode failureMode)
at System.Data.Linq.DataConte xt.SubmitC hanges(Con flictMode failureMode)
at System.Data.Linq.DataConte xt.SubmitC hanges()
at relatedcategories.Add_Clic k(Object sender, EventArgs e) in D:\WebFolders\test.thegmac h.com\rela tedcategor ies.aspx.v b:line 59
at System.Web.UI.WebControls. Button.OnC lick(Event Args e)
at System.Web.UI.WebControls. Button.Rai sePostBack Event(Stri ng eventArgument)
at System.Web.UI.WebControls. Button.Sys tem.Web.UI .IPostBack EventHandl er.RaisePo stBackEven t(String eventArgument)
at System.Web.UI.Page.RaisePo stBackEven t(IPostBac kEventHand ler sourceControl, String eventArgument)
at System.Web.UI.Page.RaisePo stBackEven t(NameValu eCollectio n postData)
at System.Web.UI.Page.Process RequestMai n(Boolean includeStagesBeforeAsyncPo int, Boolean includeStagesAfterAsyncPoi nt)
Event message: An unhandled exception has occurred.
Event time: 29/10/2008 12:36:06
Event time (UTC): 29/10/2008 12:36:06
Event ID: 7873d8a611ad445d998db4fdef
Event sequence: 728
Event occurrence: 9
Event detail code: 0
Application information:
Application domain: /LM/W3SVC/2036148338/Root-
Trust level: Full
Application Virtual Path: /
Application Path: D:\WebFolders\test.thegmac
Machine name: FORMWEB3
Process information:
Process ID: 148
Process name: w3wp.exe
Account name: NT AUTHORITY\NETWORK SERVICE
Exception information:
Exception type: SqlException
Exception message: INSERT statement conflicted with COLUMN FOREIGN KEY constraint 'FK_CategoryRelationship_C
The statement has been terminated.
Request information:
Request URL: http://test.thegmach.com/relatedcategories.aspx
Request path: /relatedcategories.aspx
User host address: 79.66.7.235
User:
Is authenticated: False
Authentication Type:
Thread account name: NT AUTHORITY\NETWORK SERVICE
Thread information:
Thread ID: 7
Thread account name: NT AUTHORITY\NETWORK SERVICE
Is impersonating: False
Stack trace: at System.Data.SqlClient.SqlC
at System.Data.SqlClient.SqlI
at System.Data.SqlClient.TdsP
at System.Data.SqlClient.TdsP
at System.Data.SqlClient.SqlD
at System.Data.SqlClient.SqlD
at System.Data.SqlClient.SqlC
at System.Data.SqlClient.SqlC
at System.Data.SqlClient.SqlC
at System.Data.SqlClient.SqlC
at System.Data.SqlClient.SqlC
at System.Data.SqlClient.SqlC
at System.Data.Common.DbComma
at System.Data.Linq.SqlClient
at System.Data.Linq.SqlClient
at System.Data.Linq.SqlClient
at System.Data.Linq.ChangeDir
at System.Data.Linq.ChangeDir
at System.Data.Linq.ChangePro
at System.Data.Linq.DataConte
at System.Data.Linq.DataConte
at relatedcategories.Add_Clic
at System.Web.UI.WebControls.
at System.Web.UI.WebControls.
at System.Web.UI.WebControls.
at System.Web.UI.Page.RaisePo
at System.Web.UI.Page.RaisePo
at System.Web.UI.Page.Process
ASKER
The below is what I believe they are trying to do, which relates to the piece of code you highlighted above.
They are trying to insert a new record in SQL server which needs to relate to another record, but that record doesnt exist.
They are trying to insert a new record in SQL server which needs to relate to another record, but that record doesnt exist.
Well, i know that. but what is your question and how could I help you?
ASKER
Well im not to sure as they are a client of our and we just administer there server, they did inform however that it isn't anything to worry about and the site is still in testing mode.
Should we/they be worried about this error?
Should we/they be worried about this error?
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
did that answer your question?
ASKER
Yeah it did cheers mate
Why did i get a "B"
https://www.experts-exchange.com/help.jsp#hi403
"an answer is worth an A, unless it doesn't resolve your issue"
ASKER
Sorry about that, i din't fully understand how the grading system worked.
your answer was of great help to us
your answer was of great help to us
That was the feeling i had. Could you please "Request Attention" to change the grade?
http://www.experts-exchang e.com/help .jsp#hi404
"How can I change a grade?
If you feel you have graded a solution incorrectly, click the Request Attention button and the Moderators will change it for you."
Glad I could help!
http://www.experts-exchang
"How can I change a grade?
If you feel you have graded a solution incorrectly, click the Request Attention button and the Moderators will change it for you."
Glad I could help!
Exception type: SqlException
Exception message: INSERT statement conflicted with COLUMN FOREIGN KEY constraint 'FK_CategoryRelationship_C
If you need more help, could you provide more info on what you are doing?