Problem with creation of logs about mistakes

This topic was automatically closed 365 days after the last reply. New replies are no longer allowed.
Hace 14 años
Frequent exceptions because of a mistake in the file
"nopCommerce\Libraries\Nop.DataAccess.SqlServer\Audit\SQLLogProvider.cs"

Fix: comment line 171 :)

db.AddOutParameter(dbCommand, "LogID", DbType.Int32, 0);
Hace 14 años
What error do you get?
Hace 14 años
Cannot insert the value NULL into column 'LogID', table 'qqqqq.dbo.Nop_Log'; column does not allow nulls. INSERT fails.
The statement has been terminated.

in the code
DBLog dbItem = DBLogProvider.Provider.InsertLog((int)LogType, Severity, Message,
             exception == null ? String.Empty : exception.ToString(), IPAddress, CustomerID, PageURL, CreatedOn);


P.S. I use VS 2010 beta 2 and framework 4
Hace 14 años
you ever get this fixed?
Hace 12 años
I am getting the same error in LogService.cs, when the app is trying to save the log in the db, here is the error content:
"Cannot insert the value NULL into column 'LogID', table 'NopPower.dbo.Nop_Log'; column does not allow nulls. INSERT fails.
The statement has been terminated."

Any idea what can be the reason?
Thanks
This topic was automatically closed 365 days after the last reply. New replies are no longer allowed.