DotNetNuke.Services.FileSystem.FolderManager - DotNetNuke.Services.FileSystem.FolderProviderException: The underlying system threw an exception. The file has not been added. ---> System.Data.SqlClient.SqlException: Implicit conversion from data type datetime to bit is not allowed. Use the CONVERT function to run this query.
at System.Data.SqlClient.SqlConnection. (SqlException exception, Boolean breakConnection, Action`1 wrapCloseInAction)
at System.Data.SqlClient.TdsParser.ThrowExceptionAndWarning(TdsParserStateObject stateObj, Boolean callerHasConnectionLock, Boolean asyncClose)
at System.Data.SqlClient.TdsParser.TryRun(RunBehavior runBehavior, SqlCommand cmdHandler, SqlDataReader dataStream, BulkCopySimpleResultSet bulkCopyHandler, TdsParserStateObject stateObj, Boolean& dataReady)
at System.Data.SqlClient.SqlDataReader.TryConsumeMetaData()
at System.Data.SqlClient.SqlDataReader.get_MetaData()
at System.Data.SqlClient.SqlCommand.FinishExecuteReader(SqlDataReader ds, RunBehavior runBehavior, String resetOptionsString)
at System.Data.SqlClient.SqlCommand.RunExecuteReaderTds(CommandBehavior cmdBehavior, RunBehavior runBehavior, Boolean returnStream, Boolean async, Int32 timeout, Task& task, Boolean asyncWrite, SqlDataReader ds, Boolean describeParameterEncryptionRequest)
at System.Data.SqlClient.SqlCommand.RunExecuteReader(CommandBehavior cmdBehavior, RunBehavior runBehavior, Boolean returnStream, String method, TaskCompletionSource`1 completion, Int32 timeout, Task& task, Boolean asyncWrite)
at System.Data.SqlClient.SqlCommand.RunExecuteReader(CommandBehavior cmdBehavior, RunBehavior runBehavior, Boolean returnStream, String method)
at System.Data.SqlClient.SqlCommand.ExecuteScalar()
at PetaPoco.Database.ExecuteScalar[T](String sql, Object[] args)
at DotNetNuke.Data.SqlDataProvider.ExecuteScalar[T](String procedureName, Object[] commandParameters)
at DotNetNuke.Data.DataProvider.AddFile(Int32 portalId, Guid uniqueId, Guid versionGuid, String fileName, String extension, Int64 size, Int32 width, Int32 height, String contentType, String folder, Int32 folderId, Int32 createdByUserID, String hash, DateTime lastModificationTime, String title, DateTime startDate, DateTime endDate, Boolean enablePublishPeriod, Int32 contentItemId)
at DotNetNuke.Services.FileSystem.FileManager.AddFile(IFileInfo file, Int32 createdByUserID)
at DotNetNuke.Services.FileSystem.FileManager.ManageFileAdding(Int32 createdByUserID, Workflow folderWorkflow, Boolean fileExists, FileInfo file)
at DotNetNuke.Services.FileSystem.FileManager.AddFile(IFolderInfo folder, String fileName, Stream fileContent, Boolean overwrite, Boolean checkPermissions, Boolean ignoreWhiteList, String contentType, Int32 createdByUserID)
--- End of inner exception stack trace ---
at DotNetNuke.Services.FileSystem.FileManager.AddFile(IFolderInfo folder, String fileName, Stream fileContent, Boolean overwrite, Boolean checkPermissions, Boolean ignoreWhiteList, String contentType, Int32 createdByUserID)
at DotNetNuke.Services.FileSystem.FileManager.AddFile(IFolderInfo folder, String fileName, Stream fileContent, Boolean overwrite)
at DotNetNuke.Services.FileSystem.FolderManager.SynchronizeFiles(MergedTreeItem item, Int32 portalId)
2016-11-15 14:36:11,514 [BOI01-WEB-04][Thread:14][ERROR] DotNetNuke.Services.FileSystem.FolderManager - System.Data.SqlClient.SqlException (0x80131904): Implicit conversion from data type datetime to bit is not allowed. Use the CONVERT function to run this query.
at System.Data.SqlClient.SqlConnection. (SqlException exception, Boolean breakConnection, Action`1 wrapCloseInAction)
at System.Data.SqlClient.TdsParser.ThrowExceptionAndWarning(TdsParserStateObject stateObj, Boolean callerHasConnectionLock, Boolean asyncClose)
at System.Data.SqlClient.TdsParser.TryRun(RunBehavior runBehavior, SqlCommand cmdHandler, SqlDataReader dataStream, BulkCopySimpleResultSet bulkCopyHandler, TdsParserStateObject stateObj, Boolean& dataReady)
at System.Data.SqlClient.SqlCommand.FinishExecuteReader(SqlDataReader ds, RunBehavior runBehavior, String resetOptionsString)
at System.Data.SqlClient.SqlCommand.RunExecuteReaderTds(CommandBehavior cmdBehavior, RunBehavior runBehavior, Boolean returnStream, Boolean async, Int32 timeout, Task& task, Boolean asyncWrite, SqlDataReader ds, Boolean describeParameterEncryptionRequest)
at System.Data.SqlClient.SqlCommand.RunExecuteReader(CommandBehavior cmdBehavior, RunBehavior runBehavior, Boolean returnStream, String method, TaskCompletionSource`1 completion, Int32 timeout, Task& task, Boolean asyncWrite)
at System.Data.SqlClient.SqlCommand.InternalExecuteNonQuery(TaskCompletionSource`1 completion, String methodName, Boolean sendToPipe, Int32 timeout, Boolean asyncWrite)
at System.Data.SqlClient.SqlCommand.ExecuteNonQuery()
at PetaPoco.Database.Execute(String sql, Object[] args)
at DotNetNuke.Data.SqlDataProvider.ExecuteNonQuery(String procedureName, Object[] commandParameters)
at DotNetNuke.Data.DataProvider.UpdateFile(Int32 fileId, Guid versionGuid, String fileName, String extension, Int64 size, Int32 width, Int32 height, String contentType, Int32 folderId, Int32 lastModifiedByUserID, String hash, DateTime lastModificationTime, String title, DateTime startDate, DateTime endDate, Boolean enablePublishPeriod, Int32 contentItemId)
at DotNetNuke.Services.FileSystem.FileManager.UpdateFile(IFileInfo file, Boolean updateLazyload, Boolean fireEvent)
at DotNetNuke.Services.FileSystem.FileManager.UpdateFile(IFileInfo file)
at DotNetNuke.Services.FileSystem.FolderManager.SynchronizeFiles(MergedTreeItem item, Int32 portalId)
ClientConnectionId:279d6203-a320-4e1f-898a-aa40348ef67e
Error Number:257,State:3,Class:16