Problem with creation of logs about mistakes

This topic was automatically closed 365 days after the last reply. New replies are no longer allowed.
14 Jahre weitere
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);
14 Jahre weitere
What error do you get?
14 Jahre weitere
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
14 Jahre weitere
you ever get this fixed?
12 Jahre weitere
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.