Products

Solutions

Learn More

Partners

Community

Blog

About

Welcome to the DNN Community Forums, your preferred source of online community support for all things related to DNN.
In order to participate you must be a registered DNNizen

HomeHomeUsing DNN Platf...Using DNN Platf...Administration ...Administration ...Can't upload files using File Manager from Admin toolsCan't upload files using File Manager from Admin tools
Previous
 
Next
New Post
11/16/2016 6:44 AM
 

Hi all,

I apologize if this is not the correct place to ask. We got a problem when moving a DNN site from dev to production, we can't upload any files to our DNN site using File Manager from Admin tools. Permissions were set correctly. Site on dev server does not have this problem. Everything is still functioning correctly except this file upload problem. We used DNN version 8.0.4.

Below is the exception occurred everytime we tried uploading something:

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

Thanks,

Thuy Nguyen

 
New Post
11/16/2016 4:38 PM
 
which collation are you using for your SQL Server and your database?

Cheers from Germany,
Sebastian Leupold (Microsoft MVP)

dnnWerk - The DotNetNuke Experts   German Spoken DotNetNuke User Group

Speed up your DNN Websites with TurboDNN
 
New Post
11/17/2016 8:52 PM
 
Both my SQL server and Database have the same collation: SQL_Latin1_General_CP1_CI_AS
 
New Post
11/26/2016 6:19 AM
 
is you SQL Server using English language?

Cheers from Germany,
Sebastian Leupold (Microsoft MVP)

dnnWerk - The DotNetNuke Experts   German Spoken DotNetNuke User Group

Speed up your DNN Websites with TurboDNN
 
New Post
11/30/2016 8:50 PM
 
Yes, it is.

I've found out that the version is different between our dev site and production one. While DNN version of dev site is 08.00.04 (226), the one of production site is 08.00.03 (6). Did that difference cause issue? Below is the screenshot of the current stored procedure AddFile

http://www.screencast.com/t/nu0LpKseM
 
Previous
 
Next
HomeHomeUsing DNN Platf...Using DNN Platf...Administration ...Administration ...Can't upload files using File Manager from Admin toolsCan't upload files using File Manager from Admin tools


These Forums are dedicated to discussion of DNN Platform and Evoq Solutions.

For the benefit of the community and to protect the integrity of the ecosystem, please observe the following posting guidelines:

  1. No Advertising. This includes promotion of commercial and non-commercial products or services which are not directly related to DNN.
  2. No vendor trolling / poaching. If someone posts about a vendor issue, allow the vendor or other customers to respond. Any post that looks like trolling / poaching will be removed.
  3. Discussion or promotion of DNN Platform product releases under a different brand name are strictly prohibited.
  4. No Flaming or Trolling.
  5. No Profanity, Racism, or Prejudice.
  6. Site Moderators have the final word on approving / removing a thread or post or comment.
  7. English language posting only, please.
DNN Launch Webinar
VIEW ON-DEMAND
DNN Launch Webinar
VIEW ON-DEMAND
DNN Launch Webinar
VIEW ON-DEMAND