Hi,
This is not a question, but a general problem when using the api...
I have a problem with the error logging method: "Dynamicweb.Log", where this line assumes that a session is available:
For Each key As String In HttpContext.Current.Session.Keys sessionKeys.Add(key) Next
But a session is not always available for callbacks from payment gateways, web services and wcf services, and this causes another exception to be throw by the error logger :-)
Because of that I have a lot of log files which contains:
Exception while logging 'Session': System.NullReferenceException
Exception message: Object reference not set to an instance of an object.
Stack Trace:
at Dynamicweb.LogToFile.Log(String message, Exception logException, String folder, LogType newLogFile, Boolean useExtendedPropertyLogging, LogElements logElements)
If anybody have the same problem then please make a vote for this to be fixed :-)