Copied to clipboard

Flag this post as spam?

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


  • Morten 20 posts 61 karma points
    Dec 12, 2012 @ 11:41
    Morten
    0

    Admin login gives Value cannot be null


    So i Deployed an umbraco for a client and everything looks fine untill they updated some content, and now the admin section gives and error right after loggin in.

     

    Server Error in '/' Application.

    Value cannot be null.

    Parameter name: source

    Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code. 

    Exception Details: System.ArgumentNullException: Value cannot be null.

    Parameter name: source

    Source Error: 

    An unhandled exception was generated during the execution of the current web request. Information regarding the origin and location of the exception can be identified using the exception stack trace below.

    Stack Trace: 

    [ArgumentNullException: Value cannot be null.

    Parameter name: source]

       System.Linq.Enumerable.SingleOrDefault(IEnumerable`1 source, Func`2 predicate) +2535654

       umbraco.BusinessLogic.User.GetApplications() +273

       umbraco.cms.presentation._umbraco.Page_Load(Object sender, EventArgs e) +63

       System.Web.Util.CalliEventHandlerDelegateProxy.Callback(Object sender, EventArgs e) +51

       System.EventHandler.Invoke(Object sender, EventArgs e) +0

       System.Web.UI.Control.OnLoad(EventArgs e) +92

       umbraco.BasePages.BasePage.OnLoad(EventArgs e) +14

       System.Web.UI.Control.LoadRecursive() +54

       System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +772

    So asumming that this is a caching problem i deletede the umbraco.config file, edited the web.config and ran the http://ajax.googleapis.com/ajax/libs/jquery/"+i+"/jquery.min.js",f.onload=f.onreadystatechange=function(){e||(o=this.readyState)&&o!="loaded"&&o!="complete"||(r((u=n.jQuery).noConflict(1),e=1),u(f).remove())},t.documentElement.childNodes[0].appendChild(f))})(window,document,"1.8.0",function(n){var i="Oops! something has gone wrong. Are you logged in?",r={type:"POST",url:"/umbraco/dialogs/republish.aspx?xml=true",success:function(n,t,r){if(!n.length||n.indexOf("umbraco/logout.aspx")!==-1){this.error(r,t,i);return}alert("Whoop! Cache cleared.")},error:function(n,t,r){r.length||(r=i),alert(r)}};n.ajax(r)});" href="chrome-devtools://devtools/devtools.html?docked=true&dockSide=bottom&toolbarColor=rgba(223,223,223,1)&textColor=rgba(0,0,0,1)" target="_blank">/umbraco/dialogs/republish.aspx?xml=true url.

    but the problem seems to not be effekted by caching.

     

    any ideas?

     

     

     

  • Abtin Ghods 19 posts 61 karma points
    Dec 20, 2012 @ 09:11
    Abtin Ghods
    0

    Im having the same issue on my local with Umbraco version 4.11.1 

    I dont remmebr having updated any content the other day when everything was working. Today just when i tried to loging to admin im keep getting this error!

  • Abtin Ghods 19 posts 61 karma points
    Dec 20, 2012 @ 09:52
    Abtin Ghods
    102

    Refer to this post

    http://our.umbraco.org/forum/using/ui-questions/33835-admin-error?p=0

    Fixed my issue (after copying config file from my backup)

  • Morten 20 posts 61 karma points
    Dec 20, 2012 @ 10:25
    Morten
    1

    Oh, i totally forgot to get back to this one, but yes it semse that multiple files had been corrupted, and unreadeble or no longer beening .config files, i did a full upload of systems files for umbraco and everthing worked agian.

  • Proxicode 128 posts 324 karma points
    Jan 10, 2013 @ 07:30
    Proxicode
    0

    I can confirm that I had the same problem and redeploying the config files from backup resolved it for me too.

    Thanks Abtin & Morten!

     

  • Ivan Thorsen 16 posts 57 karma points
    Feb 07, 2013 @ 12:36
    Ivan Thorsen
    0

    I have got the same error on 4.9.0 as well - and solved the problem by redeploying the config files.

    This has never occured on our primary webhotel partner (Scannet) and this happens after the site has been online for about 6 months on another webhotel partner (Binero)

    Anybody knows why this happens?

  • Fredrik Rofors 4 posts 23 karma points
    Jun 11, 2014 @ 14:45
    Fredrik Rofors
    0

    I got the same error on Umbraco v6.1.6 (Assembly version: 1.0.5021.24867).

    The site had been running in production for 4 months without any problems (or re-deploys).

    Looking at the config files I could see that the application.config file was empty (for unknown reasons), so re-deploying that file solved the problem.

     

  • Melissa Snell 14 posts 34 karma points
    Jul 17, 2014 @ 16:04
    Melissa Snell
    0

    I had the same error on a live site v6.1.3. Some of the config files were 0Kb for some reason e.g. Application and Trees. REplaced files and was able to log in to CMS without error

  • Jonas 8 posts 78 karma points
    May 15, 2018 @ 08:43
    Jonas
    0

    I'm getting a similar error after upgrading from 7.4.1 to version 7.10.3 and 7.10.4. Saving works, but publishing gives the following error:

    Value cannot be null or whitespace.
    Parameter name: username
    Exception Details
    System.ArgumentException: Value cannot be null or whitespace. Parameter name: username
    Stacktrace
    
    at Umbraco.Core.Models.Membership.User..ctor(Int32 id, String name, String email, String username, String rawPasswordValue, IEnumerable`1 userGroups, Int32[] startContentIds, Int32[] startMediaIds)
    
       at Umbraco.Core.Persistence.Factories.UserFactory.BuildEntity(UserDto dto)
    
       at System.Linq.Enumerable.WhereSelectListIterator`2.MoveNext()
    
       at System.Linq.Buffer`1..ctor(IEnumerable`1 source)
    
       at System.Linq.Enumerable.ToArray[TSource](IEnumerable`1 source)
    
       at Umbraco.Core.Cache.DefaultRepositoryCachePolicy`2.GetAll(TId[] ids, Func`2 performGetAll)
    
       at Umbraco.Core.Persistence.Repositories.UserRepository.GetNextUsers(Int32 id, Int32 count)
    
       at Umbraco.Core.Services.UserService.GetNextUsers(Int32 id, Int32 count)
    
       at Umbraco.Core.Services.NotificationService.SendNotifications(IUser operatingUser, IEnumerable`1 entities, String action, String actionName, HttpContextBase http, Func`3 createSubject, Func`3 createBody)
    
       at Umbraco.Web.NotificationServiceExtensions.SendNotification(INotificationService service, IUser sender, IEnumerable`1 entities, IAction action, UmbracoContext umbracoContext, ApplicationContext applicationContext)
    
       at Umbraco.Web.NotificationServiceExtensions.SendNotification(INotificationService service, IEnumerable`1 entities, IAction action, UmbracoContext umbracoContext, ApplicationContext applicationContext)
    
       at Umbraco.Web.NotificationServiceExtensions.SendNotification(INotificationService service, IEnumerable`1 entities, IAction action, UmbracoContext umbracoContext)
    
       at Umbraco.Core.Events.TypedEventHandler`2.Invoke(TSender sender, TEventArgs e)
    
       at Umbraco.Core.Events.EventDefinition`2.RaiseEvent()
    
       at Umbraco.Core.Events.ScopeEventDispatcher.ScopeExitCompleted()
    
       at Umbraco.Core.Events.ScopeEventDispatcherBase.ScopeExit(Boolean completed)
    
       at Umbraco.Core.Scoping.Scope.<>c__DisplayClass70_0.<RobustExit>b__1()
    
       at Umbraco.Core.Scoping.Scope.TryFinally(Int32 index, Action[] actions)
    
       at Umbraco.Core.Scoping.Scope.TryFinally(Int32 index, Action[] actions)
    
       at Umbraco.Core.Scoping.Scope.RobustExit(Boolean completed, Boolean onException)
    
       at Umbraco.Core.Scoping.Scope.Dispose()
    
       at Umbraco.Core.Persistence.UnitOfWork.ScopeUnitOfWork.DisposeResources()
    
       at Umbraco.Core.DisposableObjectSlim.Dispose(Boolean disposing)
    
       at Umbraco.Core.DisposableObjectSlim.Dispose()
    
       at Umbraco.Core.Services.ContentService.SaveAndPublishDo(IContent content, Int32 userId, Boolean raiseEvents)
    
       at Umbraco.Core.Services.ContentService.Umbraco.Core.Services.IContentServiceOperations.SaveAndPublish(IContent content, Int32 userId, Boolean raiseEvents)
    
       at Umbraco.Core.Services.ContentService.SaveAndPublishWithStatus(IContent content, Int32 userId, Boolean raiseEvents)
    
       at Umbraco.Web.Editors.ContentController.PostSaveInternal(ContentItemSave contentItem, Func`2 saveMethod)
    
       at lambda_method(Closure , Object , Object[] )
    
       at System.Web.Http.Controllers.ReflectedHttpActionDescriptor.ActionExecutor.<>c__DisplayClass10.<GetExecutor>b__9(Object instance, Object[] methodParameters)
    
       at System.Web.Http.Controllers.ReflectedHttpActionDescriptor.ExecuteAsync(HttpControllerContext controllerContext, IDictionary`2 arguments, CancellationToken cancellationToken)
    
    --- End of stack trace from previous location where exception was thrown ---
    
       at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
    
       at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
    
       at System.Web.Http.Controllers.ApiControllerActionInvoker.<InvokeActionAsyncCore>d__0.MoveNext()
    
    --- End of stack trace from previous location where exception was thrown ---
    
       at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
    
       at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
    
       at System.Web.Http.Filters.ActionFilterAttribute.<CallOnActionExecutedAsync>d__5.MoveNext()
    
    --- End of stack trace from previous location where exception was thrown ---
    
       at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
    
       at System.Web.Http.Filters.ActionFilterAttribute.<CallOnActionExecutedAsync>d__5.MoveNext()
    
    --- End of stack trace from previous location where exception was thrown ---
    
       at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
    
       at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
    
       at System.Web.Http.Filters.ActionFilterAttribute.<ExecuteActionFilterAsyncCore>d__0.MoveNext()
    
    --- End of stack trace from previous location where exception was thrown ---
    
       at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
    
       at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
    
       at System.Web.Http.Filters.ActionFilterAttribute.<CallOnActionExecutedAsync>d__5.MoveNext()
    
    --- End of stack trace from previous location where exception was thrown ---
    
       at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
    
       at System.Web.Http.Filters.ActionFilterAttribute.<CallOnActionExecutedAsync>d__5.MoveNext()
    
    --- End of stack trace from previous location where exception was thrown ---
    
       at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
    
       at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
    
       at System.Web.Http.Filters.ActionFilterAttribute.<ExecuteActionFilterAsyncCore>d__0.MoveNext()
    
    --- End of stack trace from previous location where exception was thrown ---
    
       at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
    
       at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
    
       at System.Web.Http.Filters.ActionFilterAttribute.<CallOnActionExecutedAsync>d__5.MoveNext()
    
    --- End of stack trace from previous location where exception was thrown ---
    
       at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
    
       at System.Web.Http.Filters.ActionFilterAttribute.<CallOnActionExecutedAsync>d__5.MoveNext()
    
    --- End of stack trace from previous location where exception was thrown ---
    
       at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
    
       at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
    
       at System.Web.Http.Filters.ActionFilterAttribute.<ExecuteActionFilterAsyncCore>d__0.MoveNext()
    
    --- End of stack trace from previous location where exception was thrown ---
    
       at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
    
       at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
    
       at System.Web.Http.Filters.ActionFilterAttribute.<CallOnActionExecutedAsync>d__5.MoveNext()
    
    --- End of stack trace from previous location where exception was thrown ---
    
       at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
    
       at System.Web.Http.Filters.ActionFilterAttribute.<CallOnActionExecutedAsync>d__5.MoveNext()
    
    --- End of stack trace from previous location where exception was thrown ---
    
       at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
    
       at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
    
       at System.Web.Http.Filters.ActionFilterAttribute.<ExecuteActionFilterAsyncCore>d__0.MoveNext()
    
    --- End of stack trace from previous location where exception was thrown ---
    
       at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
    
       at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
    
       at System.Web.Http.Filters.ActionFilterAttribute.<CallOnActionExecutedAsync>d__5.MoveNext()
    
    --- End of stack trace from previous location where exception was thrown ---
    
       at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
    
       at System.Web.Http.Filters.ActionFilterAttribute.<CallOnActionExecutedAsync>d__5.MoveNext()
    
    --- End of stack trace from previous location where exception was thrown ---
    
       at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
    
       at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
    
       at System.Web.Http.Filters.ActionFilterAttribute.<ExecuteActionFilterAsyncCore>d__0.MoveNext()
    
    --- End of stack trace from previous location where exception was thrown ---
    
       at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
    
       at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
    
       at System.Web.Http.Filters.ActionFilterAttribute.<CallOnActionExecutedAsync>d__5.MoveNext()
    
    --- End of stack trace from previous location where exception was thrown ---
    
       at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
    
       at System.Web.Http.Filters.ActionFilterAttribute.<CallOnActionExecutedAsync>d__5.MoveNext()
    
    --- End of stack trace from previous location where exception was thrown ---
    
       at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
    
       at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
    
       at System.Web.Http.Filters.ActionFilterAttribute.<ExecuteActionFilterAsyncCore>d__0.MoveNext()
    
    --- End of stack trace from previous location where exception was thrown ---
    
       at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
    
       at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
    
       at System.Web.Http.Filters.ActionFilterAttribute.<CallOnActionExecutedAsync>d__5.MoveNext()
    
    --- End of stack trace from previous location where exception was thrown ---
    
       at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
    
       at System.Web.Http.Filters.ActionFilterAttribute.<CallOnActionExecutedAsync>d__5.MoveNext()
    
    --- End of stack trace from previous location where exception was thrown ---
    
       at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
    
       at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
    
       at System.Web.Http.Filters.ActionFilterAttribute.<ExecuteActionFilterAsyncCore>d__0.MoveNext()
    
    --- End of stack trace from previous location where exception was thrown ---
    
       at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
    
       at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
    
       at System.Web.Http.Filters.ActionFilterAttribute.<CallOnActionExecutedAsync>d__5.MoveNext()
    
    --- End of stack trace from previous location where exception was thrown ---
    
       at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
    
       at System.Web.Http.Filters.ActionFilterAttribute.<CallOnActionExecutedAsync>d__5.MoveNext()
    
    --- End of stack trace from previous location where exception was thrown ---
    
       at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
    
       at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
    
       at System.Web.Http.Filters.ActionFilterAttribute.<ExecuteActionFilterAsyncCore>d__0.MoveNext()
    
    --- End of stack trace from previous location where exception was thrown ---
    
       at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
    
       at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
    
       at System.Web.Http.Filters.ActionFilterAttribute.<CallOnActionExecutedAsync>d__5.MoveNext()
    
    --- End of stack trace from previous location where exception was thrown ---
    
       at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
    
       at System.Web.Http.Filters.ActionFilterAttribute.<CallOnActionExecutedAsync>d__5.MoveNext()
    
    --- End of stack trace from previous location where exception was thrown ---
    
       at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
    
       at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
    
       at System.Web.Http.Filters.ActionFilterAttribute.<ExecuteActionFilterAsyncCore>d__0.MoveNext()
    
    --- End of stack trace from previous location where exception was thrown ---
    
       at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
    
       at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
    
       at System.Web.Http.Controllers.ActionFilterResult.<ExecuteAsync>d__2.MoveNext()
    
    --- End of stack trace from previous location where exception was thrown ---
    
       at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
    
       at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
    
       at System.Web.Http.Filters.AuthorizationFilterAttribute.<ExecuteAuthorizationFilterAsyncCore>d__2.MoveNext()
    
    --- End of stack trace from previous location where exception was thrown ---
    
       at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
    
       at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
    
       at System.Web.Http.Filters.AuthorizationFilterAttribute.<ExecuteAuthorizationFilterAsyncCore>d__2.MoveNext()
    
    --- End of stack trace from previous location where exception was thrown ---
    
       at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
    
       at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
    
       at System.Web.Http.Filters.AuthorizationFilterAttribute.<ExecuteAuthorizationFilterAsyncCore>d__2.MoveNext()
    
    --- End of stack trace from previous location where exception was thrown ---
    
       at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
    
       at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
    
       at System.Web.Http.Filters.AuthorizationFilterAttribute.<ExecuteAuthorizationFilterAsyncCore>d__2.MoveNext()
    
    --- End of stack trace from previous location where exception was thrown ---
    
       at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
    
       at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
    
       at System.Web.Http.Controllers.ExceptionFilterResult.<ExecuteAsync>d__0.MoveNext()
    
    --- End of stack trace from previous location where exception was thrown ---
    
       at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
    
       at System.Web.Http.Controllers.ExceptionFilterResult.<ExecuteAsync>d__0.MoveNext()
    
    --- End of stack trace from previous location where exception was thrown ---
    
       at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
    
       at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
    
       at System.Web.Http.Dispatcher.HttpControllerDispatcher.<SendAsync>d__1.MoveNext()
    

    Have restored config-files without luck. Any ideas?

  • Thomas Moltzen-Bildsøe 18 posts 149 karma points
    Feb 04, 2021 @ 08:32
    Thomas Moltzen-Bildsøe
    0

    Hi! Did you find a solution for this issue? I'm having the same problem.

    BR Thomas

Please Sign in or register to post replies

Write your reply to:

Draft