+1-888-365-2779
Try Now
More in this section

Forums / Bugs & Issues / unable to save or publish pages [4.2.1650]

unable to save or publish pages [4.2.1650]

29 posts, 1 answered
  1. Jochem Bökkers
    Jochem Bökkers avatar
    787 posts
    Registered:
    13 Aug 2007
    10 Aug 2011
    Link to this post
    I keep getting an error while trying to save a page, or publish a draft with a clean installation of v4.2. Attached you'll find the screenshots. One's while trying to save/publish the page while in 'edit' mode, the other from the page overview 'more actions>publish' command.

    I've tried editing a masterpage, added some generic content and news and that all goes smoothly, just the page saving/publishing is malfunctioning.

    ---
    Downloaded the Sitefinity_4.2.1650.0.msi, ran it. Choose upgrade and was left with an empty project manager.
    Selected new project, gave it a name, a folder and selected for SQL Server, after install finished ran administration from project manager.

    After the errors, deleted the entire project and repeated it with Chrome instead of latest FF, same happens.
    ---

    I still have the v4.1 SDK installed on this system in the Sitefinity 4.1 folder in case that might be the culprit....
  2. Jochem Bökkers
    Jochem Bökkers avatar
    787 posts
    Registered:
    13 Aug 2007
    11 Aug 2011
    Link to this post
    New day, new energy...

    Deleted Sitefinity v4.1 SDK, removed SF v4.2, deleted database and folders, rebooted system and installed the SF4.2 project manager again. Created a new project and chose filesystem and sql server. Entered admin credentials, added a page and same result as yesterday evening.

    Opened the project in visualstudio, added a space to the web.config and rebuild it without a problem.
    On opening got an error message stating I'm missing the telerik.sitefinity.migration.contracts reference, so added that in VS and rebuild it again.

    Sitefinity fired up, logged in, created new page but still unable to save...

    J.
  3. John Tolar
    John Tolar avatar
    87 posts
    Registered:
    07 May 2003
    11 Aug 2011
    Link to this post
    wonder if this issue is the same as what I am experiencing.

    Can you look for any errors related to workflow?

    using chrome I have found an error shown in the screenshot.
     
  4. Jochem Bökkers
    Jochem Bökkers avatar
    787 posts
    Registered:
    13 Aug 2007
    11 Aug 2011
    Link to this post
    Dabbled some more with this, and perhaps this might give you guys some clues...

    When in page edit, uploading an image works. When in ecommerce> product edit image upload works. 
    When go to content > images, the uploaded image is there, but when from there I try to upload an image I get the same error message as the ones when I try and save a page.

  5. Teodor
    Teodor avatar
    52 posts
    Registered:
    24 Sep 2012
    11 Aug 2011
    Link to this post
    Hi Jochem,

    Is there a way to provide us with more detailed information about the exception like - log files (located in the folder App_Data/Logs ) , errors in events logs of IIS. We are trying to reproduce the problem locally with no success.

    Greetings,
    Teodor
    the Telerik team
    Do you want to have your say in the Sitefinity development roadmap? Do you want to know when a feature you requested is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items
  6. Jochem Bökkers
    Jochem Bökkers avatar
    787 posts
    Registered:
    13 Aug 2007
    11 Aug 2011
    Link to this post
    Hey Teodor,

    The attachments only allow valid images, so sending you the error.log by mail. But it'll show nothing but file not found errors due to a favicon.ico missing.

    I've attached also a screenshot from FF showing the put statements and it's info. The current installation I'm trying to run is on SQL Express. 

    As I mentioned earlier I'm able to store images thru ecommerce or inline editing but not by content>image. With pages it only saves the blanc draft.

    However, If I'm editing a page (add a content block/image etc) and then just close the browser, the things get stored because if I later come back, the page is naturally locked but when editing my content block is still there.

    ---
    Out-of-the-box (project manager install>directly administration) results in these errors.
    Rebuilding it through VS2010 gives same errors.
    (And as mentioned before, added a manual reference to Telerik.Sitefinity.MigrationContracts from the empty project bin folder)
    There are no . / - or other special characters in either proj name or db.
    Workflow active or not doesn't change behavior.
    Different user (in diff roles) doesn't change behavior.
    ---
    I have a v4.1 SP3 project running on IIS on this machine, still functions normally.
    Running W7/VS2010/SQL2008R2 with all the latest updates and the latest WCF Ria Services Toolkit.
    ---
  7. Teodor
    Teodor avatar
    52 posts
    Registered:
    24 Sep 2012
    11 Aug 2011
    Link to this post
    Hello Jochem,

    Can you add this to the web config and sent us the log files ( .e2e ) .


    <sources>
      <source name="System.IO.Log" switchValue="Verbose, ActivityTracing">
        <listeners>
          <add name="sdt" type="System.Diagnostics.XmlWriterTraceListener" initializeData="WCF_IOLog.e2e" />
          <add name="xml" />
        </listeners>
      </source>
      <source name="System.ServiceModel.MessageLogging" switchValue="Verbose, ActivityTracing">
        <listeners>
          <add name="sdt" type="System.Diagnostics.XmlWriterTraceListener" initializeData="WCF_MessageLog.e2e" />
          <add name="xml" />
        </listeners>
      </source>
      <source name="System.ServiceModel.Activation" switchValue="Verbose, ActivityTracing">
        <listeners>
          <add name="sdt" type="System.Diagnostics.XmlWriterTraceListener" initializeData="WCF_ActivationLog.e2e" />
          <add name="xml" />
        </listeners>
      </source>
      <source name="System.Runtime.Serialization" switchValue="Verbose, ActivityTracing">
        <listeners>
          <add name="sdt" type="System.Diagnostics.XmlWriterTraceListener" initializeData="WCF_SerializationLog.e2e" />
          <add name="xml" />
        </listeners>
      </source>
      <!--<source name="System.IdentityModel">
        <listeners>
          <add name="sdt" type="System.Diagnostics.XmlWriterTraceListener" initializeData="WCF_SerializationLog.e2e" />
          <add name="xml" />
        </listeners>
      </source>-->
     
      <source name="System.ServiceModel" switchValue="Verbose, ActivityTracing" propagateActivity="true">
        <listeners>
          <add name="sdt" type="System.Diagnostics.XmlWriterTraceListener" initializeData="WCF_ServiceModelLog.e2e" />
          <add name="xml" />
        </listeners>
      </source>
    </sources>
     
    <sharedListeners>
      <add name="xml"
           type="System.Diagnostics.XmlWriterTraceListener"
           initializeData="c:\log\Traces.e2e" />
    </sharedListeners>


    This will enable logging for the web services.  Also can you try to show us what is the result in the firebug when  you publish a page during editing ?

    more information :

    link



    Kind regards,
    Teodor
    the Telerik team
    Do you want to have your say in the Sitefinity development roadmap? Do you want to know when a feature you requested is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items
  8. Jochem Bökkers
    Jochem Bökkers avatar
    787 posts
    Registered:
    13 Aug 2007
    11 Aug 2011
    Link to this post
    Hi Teodor,

    Sorry I can't :) I was totally fed up with v4.2 so deleted the lot.

    Stuborn as I am, I gave it one more try with a fresh and clean install, this time however installing it on IIS and not relying on VS2010 server or the project managers webserver but created an actual named site on IIS7.5.

    And that worked like a charm! Tried again to create a site from proj.manager, using filesystem and bang couldn't publish.

    After some deeper digging Appfabric seems to be the culprit.
    I have Appfabric installed on this system and when running SF v4.2 through IIS it runs smooth, when running through vs2010 or SF proj. manager it bugs.

    Maybe the internal webservers aren't supposed to run smoothly with AppFabric, or maybe there's some arcane hidden switch i need to set so it'll work with the internal webservers but never ran into any issues with other VS2010 projects.

    And since the error (inability to publish pages or upload images directly) seems to be focused on those two areas alone I'm guessing there's a hick up on the SF side. 

    Not to point a finger or blame you guys but pages get saved in automatic draft but can't be saved/published directly and images can be uploaded through eCommerce or editing but not directly. News/content/blog can be saved etc.

    So whether in the end it's a WCF or WF issue, it's a quirk :) I've lost nearly the whole day getting SF v4.2 to work properly but I'll in the weekend I'll add the logging for the web.config and follow up ok?

    Thanks!
  9. Steve
    Steve avatar
    3037 posts
    Registered:
    03 Dec 2008
    11 Aug 2011
    Link to this post
    I've never been able to have SF work side by side with AppFabric either FYI... :)  Which is a shame...I love the analytics
  10. Jochem Bökkers
    Jochem Bökkers avatar
    787 posts
    Registered:
    13 Aug 2007
    15 Aug 2011
    Link to this post
    Hi Teodor,

    Haven't yet done the tracing/logging yet, but came across, which points to a single file at least where the error occures.
  11. Teodor
    Teodor avatar
    52 posts
    Registered:
    24 Sep 2012
    16 Aug 2011
    Link to this post
    Hi Jochem,

         Than you for the reply but this is not helping a lot. The problem seams to be the call of the workflow but there is no additional data why it is failing. We didn't change the way that it is called. It could be environment related issue that we are not aware about. It will be really grate if you provide us with some more additional information like - stack traces , the service logs (IIS,windows you can see them in the windows events viewer) and also if you can say what is the .NET framework that is installed, anything that you think that could be related. Can you confirm that you are not having AppFabric installed on the same machine ? Steve McNiven-Scott say that there is a problem with AppFabric and Sitefinity?

    Greetings,
    Teodor
    the Telerik team
    Do you want to have your say in the Sitefinity development roadmap? Do you want to know when a feature you requested is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items
  12. Jochem Bökkers
    Jochem Bökkers avatar
    787 posts
    Registered:
    13 Aug 2007
    16 Aug 2011
    Link to this post
    Hey Teodor,

    Thanks for the reply. I will do the tracing and logs etc this evening after the webinar. Could you send me an email or care to share your lastname so I drop you a direct email? This way we won't clog up the forum until we've figured out the quirk and post the solution here... 

    Since I've been able to circumvent this issue by running it as an IIS site, it's no priority for me but I'll be glad to try and figure this one out.


    To address initial questions already:
    Yes, I have Appfabric installed. It is turned off for the IIS server and activated for just 2 sites.
    Running IIS 7.5 on Win7 32bit, .NET v4.0.30319 with SQL 2008R2.

    Problem only occurs on either the integrated SF server or running the VS2010 server, doesn't happen when running through proper IIS and only happens when trying to publish a page or or upload an image through content>images.

    (as mentioned when uploading an image through image widget or ecommerce product, it doesn't occur).

    ---

    If I don't hear from you tonight, I'll send the stuff through Tsvetana, just like friday and she'll pass it on...

    Jochem
  13. Jochem Bökkers
    Jochem Bökkers avatar
    787 posts
    Registered:
    13 Aug 2007
    17 Aug 2011
    Link to this post
    After some heavy coffee consumation yesterday evening, I've reinstalled the damn thing from scratch with AppFabric enabled.

    The AppFabric dashboard now neatly tells me there are 'postponed instances' (sorry if it's not the exact english translation, I'm seeing them in Dutch). I've attached the screenshot with one of the postponed operations. The error message is 'missing current principal'.

    After some googling I end up at the Sitefinity forum (what are the odd's) regarding a couple of forum posts regarding the same issues.

    http://www.sitefinity.com/devnet/forums/sitefinity-4-x/general-discussions/workflow-rules-do-not-allow-page-delete.aspx

    The problem still exists, publishing still gives me the SF error, but at least the rest of the workflow now operates smoothly in conjunction with AppFabric.

    Any word on solving the issues from January ?

    ---

    As a final update for now. When AppFabric persistence is activated, WF wipes all authentication information so the Thread.CurrentPrincipal gets removed resulting in the missing principal. Since I'm blonde and wearing a brown belt today, I'm gonna leave it at this and hand it over to regular black belt ninja's...
  14. Ivan Pelovski
    Ivan Pelovski avatar
    43 posts
    Registered:
    24 Sep 2012
    19 Aug 2011
    Link to this post
    Hi Jochem,

    We were able to reproduce the problem with "Missing current principal." under AppFabric. Currently Sitefinity does not support persistence of workflow instances with AppFabric. Can you disable this persistence in the configuration of AppFabric?

    All the best,
    Ivan Pelovski
    the Telerik team
    Do you want to have your say in the Sitefinity development roadmap? Do you want to know when a feature you requested is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items
    Answered
  15. Jochem Bökkers
    Jochem Bökkers avatar
    787 posts
    Registered:
    13 Aug 2007
    19 Aug 2011
    Link to this post
    Hey Ivan,

    Yes I've disabled it. All's working smoothly. 

    All's running fine through IIS. VS or sitefinity proj manager is troublesome but that's probl because of that machine configuration (IIS/SQL/AppFabric & Dev all running on the same box).

    At least we found a solid way to test if people are able to circumvent workflow permissions :)



  16. Daniel Meland
    Daniel Meland avatar
    1 posts
    Registered:
    06 Aug 2005
    13 Oct 2011
    Link to this post
    Did this ever get resolved? I.e. persisted WF in AppFabric?
    Thx
  17. Andres
    Andres avatar
    13 posts
    Registered:
    25 Mar 2011
    08 Nov 2011
    Link to this post
    Any new information about this?
  18. Ivan Pelovski
    Ivan Pelovski avatar
    43 posts
    Registered:
    24 Sep 2012
    09 Nov 2011
    Link to this post
    Hello Andres,

    We have plans to support this feature of AppFabric but we cannot commit to any timeframe.

    Regards,
    Ivan Pelovski
    the Telerik team
    Do you want to have your say in the Sitefinity development roadmap? Do you want to know when a feature you requested is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items
  19. Andres
    Andres avatar
    13 posts
    Registered:
    25 Mar 2011
    09 Nov 2011
    Link to this post
    Thanks for your response. I have voted for this feature request in PITS http://www.telerik.com/support/pits.aspx#/public/sitefinity/7377, so let's hope it will get some attention at some point in time.
    Best regards,
    Andrés.
  20. Ben
    Ben avatar
    35 posts
    Registered:
    24 Jan 2011
    18 Jan 2012
    Link to this post
    Thanks Andres - I voted for that. And thank you Jochem for all the details provided here. I'm experiencing pretty much the exact same problems in another thread here: 
    http://www.sitefinity.com/devnet/forums/sitefinity-4-x/bugs-issues/missing-curent-principal.aspx 

    Thanks to you guys I'm going to try turning off the appFabric workflow persistence next. 
  21. Ben
    Ben avatar
    35 posts
    Registered:
    24 Jan 2011
    18 Jan 2012
    Link to this post
    Update: I stopped the appfabric workflow services for my specific website in IIS then restarted the website & app pool, but still getting the "Missing Principal" errors. I then completely stopped the 2 appfabric services in Admin Tools > Services, restarted the website and still no good. 

    Any other ideas? 
  22. Steve
    Steve avatar
    3037 posts
    Registered:
    03 Dec 2008
    18 Jan 2012
    Link to this post
    Ben,
      In IIS you need to disable appfabric on the site itself.  Right-click on the site and there should be a WCF menu item there somewhere (don't have it infront of me)

    Inside of that dialog go though every screen and turn off\disable every appfabric monitoring option.

    Steve
  23. Ben
    Ben avatar
    35 posts
    Registered:
    24 Jan 2011
    18 Jan 2012
    Link to this post
    Yeah that's exactly what I did. Still didn't work. Then I shutdown the service and it didn't work either. I recycled the app pool and restarted my site each time to try and make sure it was picking up the settings although I'm using IIS 7.5 so I probably didn't have to do that step. 
  24. Ben
    Ben avatar
    35 posts
    Registered:
    24 Jan 2011
    18 Jan 2012
    Link to this post
    I'm also on Sitefinity 4.4 so it's possible it's something else. We're trying to upgrade from Sitefinity 4.0 which incidentally worked fine with AppFabric. 
  25. Jochem Bökkers
    Jochem Bökkers avatar
    787 posts
    Registered:
    13 Aug 2007
    18 Jan 2012
    Link to this post
    @Steve,
    Man you're fast... page was still loading when your reply came in...

    @Ben,
    On the right sidebar once you clicked an instance you'll see a WCF- and WF services configuration option. Current settings on my system:

    Control:
    Checked the write to database.
    Diagnose and message logging status: Turned off

    Workflow persistence:
    Turned off.

    Workflow management:
    Instance management all 3 not checked.

    Limitation and Security everything off.

    Next to that, I remember there was a binding issue somewhere along the way, still have the alternate settings for the default localhost website. Not sure which one it was exactly but maybe the screenshot will help. Good luck!

    Jochem.


  26. Ben
    Ben avatar
    35 posts
    Registered:
    24 Jan 2011
    18 Jan 2012
    Link to this post
    Thanks Steve & Jochem - I found where you are talking about! 

    I was changing the settings in [website name] > AppFabric > Services and disabling the site settings there. Once I followed Jochems directions about picking "Manage WCF & WCF Services" I found a whole bunch of settings I didn't know existed, and none of them were deactivated. 

    The bad news is, even after deactivating those additional settings I'm still seeing the errors. I'll try playing around with the bindings as per Jochem's screenshot. 

    Thanks again! 
  27. Subin
    Subin avatar
    1 posts
    Registered:
    16 Feb 2011
    27 Sep 2012
    Link to this post
    Hi all,

    So we did all or most of the below, and still we have the same problem there 

    did anybody find a definte solution out for this ? all pages cannot be published , images cannot be uploaded upon moving from staging to production 

    Any help will be most appreciated , Thanks 

    Best Regards,
  28. Ben
    Ben avatar
    35 posts
    Registered:
    24 Jan 2011
    27 Sep 2012
    Link to this post
    If I remember correctly, we ended up completely uninstalling AppFabric from our dev machine to fix this issue. :(
  29. Jochem Bökkers
    Jochem Bökkers avatar
    787 posts
    Registered:
    13 Aug 2007
    27 Sep 2012
    Link to this post
    @Subin,

    Well I would have loved to go Ben's route but that wasn't an option.
    So I ended up disabling it on the 'server' level and enabling it on the instance level...

    Jochem
29 posts, 1 answered