Problem with uploading file in CMS.

Vote:
 

In Relate+ (2.0) in CMS when trying to upload files to Global Files, for example I get this error: 
Unable to cast object of type 'EPiServer.Common.GuestAuthor' to type 'EPiServer.Common.UserAuthor'.

It doesn't matter what user I use (currently CMS administrator).
Uploading files via Community (and on site) works just fine.

Inner Exception:

[InvalidCastException: Unable to cast object of type 'EPiServer.Common.GuestAuthor' to type 'EPiServer.Common.UserAuthor'.]
   Circuit.RelatePlus.Intranet.NewsFeed.NewsFeedModule.FrameworkFactoryBase_EntityAdded(IEntityEventArgs args) in C:\projects\Handelskammaren\branch\Relate_Intranet\Sites\Relateplus-Intranet\Circuit.RelatePlus.Intranet.NewsFeed\NewsFeedModule.cs:177
   EPiServer.Common.EntityEventHandler.Invoke(IEntityEventArgs args) +0
   EPiServer.Common.Data.<>c__DisplayClass3.<UpdateEntity>b__0() +1953
   EPiServer.Common.Data.DatabaseHandler.RunInTransaction(TransactionCode transactionCode) +181
   EPiServer.Common.Data.FrameworkFactoryBase.UpdateEntity(IEntity entity, Int32 id, Boolean add) +206

[FrameworkException: Could not update entity of type Circuit.RelatePlus.Intranet.Documents.VersioningFileCommunityEntity, Circuit.RelatePlus.Intranet.Documents with id 851.]
   EPiServer.Common.Data.FrameworkFactoryBase.UpdateEntity(IEntity entity, Int32 id, Boolean add) +461
   Circuit.RelatePlus.Intranet.Documents.DocumentManager.AddCommunityEntity(VersioningFileCommunityEntity entity) in C:\projects\Handelskammaren\branch\Relate_Intranet\Sites\Relateplus-Intranet\Circuit.RelatePlus.Intranet.Documents\DocumentManager.cs:134
   Circuit.RelatePlus.Intranet.Documents.DocumentsModule.VersioningDirectory_UnifiedFileAdded(UnifiedDirectory sender, UnifiedVirtualPathEventArgs e) in C:\projects\Handelskammaren\branch\Relate_Intranet\Sites\Relateplus-Intranet\Circuit.RelatePlus.Intranet.Documents\DocumentsModule.cs:27
   EPiServer.Web.Hosting.UnifiedDirectoryEventHandler.Invoke(UnifiedDirectory sender, UnifiedVirtualPathEventArgs e) +0
   EPiServer.Web.Hosting.VersioningDirectory.CreateFile(String name, Guid id) +494
   EPiServer.Web.Hosting.VersioningDirectory.CreateFile(String name) +159
   EPiServer.UI.Hosting.UploadFile.HandleUploadedFiles() +1139
   EPiServer.UI.Hosting.UploadFile.UploadButton_Click(Object sender, EventArgs e) +96
   EPiServer.UI.WebControls.ToolButton.RaisePostBackEvent(String eventArgument) +254
   System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +3707
#61517
Sep 21, 2012 9:38
Vote:
 

Seems like the Circuit template is trying to post a message then uploading the file in CMS, which should not be done.

After trying to upload I now get this error when viewing Global folder

[NullReferenceException: Object reference not set to an instance of an object.]
   EPiServer.Web.Hosting.Versioning.VersioningFileSummary..ctor(FileItem file, FileOperations fileOp) +25
   EPiServer.Web.Hosting.Versioning.VersioningFileSystem.GetFileSummary(IFileHandler file) +96
   EPiServer.Web.Hosting.VersioningFile.get_Summary() +24
   EPiServer.UI.Hosting.DhtmlSupport.CanPersist(UnifiedDirectory dir) +38
   EPiServer.UI.Hosting.DhtmlSupport.SetUpHKA(UnifiedDirectory dir, AccessControlList acl) +798
   EPiServer.UI.Hosting.DhtmlSupport.OnPreRender(EventArgs e) +61
   System.Web.UI.Control.PreRenderRecursiveInternal() +103
   System.Web.UI.Control.PreRenderRecursiveInternal() +175
   System.Web.UI.Control.PreRenderRecursiveInternal() +175
   System.Web.UI.Control.PreRenderRecursiveInternal() +175
   System.Web.UI.Control.PreRenderRecursiveInternal() +175
   System.Web.UI.Control.PreRenderRecursiveInternal() +175
   System.Web.UI.Control.PreRenderRecursiveInternal() +175
   System.Web.UI.Control.PreRenderRecursiveInternal() +175
   System.Web.UI.Control.PreRenderRecursiveInternal() +175
   System.Web.UI.Control.PreRenderRecursiveInternal() +175
   System.Web.UI.Control.PreRenderRecursiveInternal() +175
   System.Web.UI.Control.PreRenderRecursiveInternal() +175
   System.Web.UI.Control.PreRenderRecursiveInternal() +175
   System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +2496
#61518
Edited, Sep 21, 2012 9:42
This thread is locked and should be used for reference only. Please use the Legacy add-ons forum to open new discussions.
* You are NOT allowed to include any hyperlinks in the post because your account hasn't associated to your company. User profile should be updated.