Copied to clipboard

Flag this post as spam?

This post will be reported to the moderators as potential spam to be looked at


  • Ismail Mayat 3431 posts 6629 karma points admin mvp c-trib
    Sep 02, 2010 @ 14:01
    Ismail Mayat
    0

    Exception Details: System.ArgumentException: No User exists with ID -1

    Getting a weird issue i am using content maintenance dashboard package in umbraco 4.5.2 when i try to publish a doc i get error:

      Exception Details: System.ArgumentException: No User exists with ID -1

     

    The code that does the publish is passed 0 as user id which is admin user however in 4.5.2 this does not work.

    Has anyone else had issues trying to get the admin user in 4.5.2.  I updated the dashboard source code so it now does

                Document document = new Document(id);
    
                document.Publish(new User(document.Creator.Id));
                library.UpdateDocumentCache(document.Id);

    and that works.  

    Regards

    Ismail

Please Sign in or register to post replies

Write your reply to:

Draft
Our.umbraco.org is the community mothership for Umbraco, the open source asp.net cms. With a friendly forum for all your questions, a comprehensive documentation and a ton of packages from the community. This site is running Umbraco version 7.3.0-RC