ASP.NET MVC - Menu error "Argument cannot be null"

0 Answers 133 Views
AJAX and Web 2.0
Balaji
Top achievements
Rank 1
Balaji asked on 03 May 2023, 04:00 PM

I have an MVC 3 application that has been running well so far on a Windows 2012 web server. We are in the process of upgrading the application, AS IS, to a Windows 2022 server. And are running into the following error:

 

 

[ArgumentNullException: Value cannot be null.
Parameter name: value]
   System.Web.Caching.CacheEntry..ctor(String key, Object value, CacheDependency dependency, CacheItemRemovedCallback onRemovedHandler, DateTime utcAbsoluteExpiration, TimeSpan slidingExpiration, CacheItemPriority priority, Boolean isPublic, CacheInternal cache) +11948326
   System.Web.Caching.CacheInternal.DoInsert(Boolean isPublic, String key, Object value, CacheDependency dependencies, DateTime utcAbsoluteExpiration, TimeSpan slidingExpiration, CacheItemPriority priority, CacheItemRemovedCallback onRemoveCallback, Boolean replace) +141
   System.Web.Caching.AspNetCache.Insert(String key, Object item, CacheInsertOptions options) +107
   Telerik.Web.Mvc.Infrastructure.Implementation.CacheProvider.Insert(String key, Object value) +54
   Telerik.Web.Mvc.Infrastructure.Implementation.Cache.Get(String key, Func`1 defaultValueFactory) +146
   Telerik.Web.Mvc.Infrastructure.Implementation.ControllerContextCache.GetControllerContext(RequestContext requestContext, String controllerName, String areaName) +204
   Telerik.Web.Mvc.Infrastructure.Implementation.AuthorizationContextCache.AuthorizationContextFactory(RequestContext requestContext, String controllerName, String actionName, String areaName) +52
   Telerik.Web.Mvc.Infrastructure.Implementation.<>c__DisplayClass1.<GetAuthorizationContext>b__0() +44
   Telerik.Web.Mvc.Infrastructure.Implementation.Cache.Get(String key, Func`1 defaultValueFactory) +95
   Telerik.Web.Mvc.Infrastructure.Implementation.AuthorizationContextCache.GetAuthorizationContext(RequestContext requestContext, String controllerName, String actionName, RouteValueDictionary routeValues) +346
   Telerik.Web.Mvc.Infrastructure.Implementation.ControllerAuthorization.IsAccessibleToUser(RequestContext requestContext, String controllerName, String actionName, RouteValueDictionary routeValues) +151
   Telerik.Web.Mvc.Infrastructure.Implementation.NavigationItemAuthorization.IsAccessibleToUser(RequestContext requestContext, INavigatable navigationItem) +367
   Telerik.Web.Mvc.UI.NavigationItemContainerExtensions.WriteItem(TItem item, TComponent component, IHtmlNode parentTag, INavigationComponentHtmlBuilder`1 builder) +315
   Telerik.Web.Mvc.UI.<>c__DisplayClass4.<WriteHtml>b__3(MenuItem item) +36
   Telerik.Web.Mvc.Extensions.EnumerableExtensions.Each(IEnumerable`1 instance, Action`1 action) +159
   Telerik.Web.Mvc.UI.Menu.WriteHtml(HtmlTextWriter writer) +352
   Telerik.Web.Mvc.UI.ViewComponentBase.Render() +87
   Telerik.Web.Mvc.UI.ViewComponentBuilderBase`2.Render() +15

 

At this point, I am fairly certain this has to do with some dll mismatch between the 2 servers. The 2022 server has MVC3 installed on it.

Any ideas what I should be looking at?

Georgi
Telerik team
commented on 08 May 2023, 07:05 AM

Hello,

Are you able to reproduce the issue locally, or it only replicates after deployment?

Balaji
Top achievements
Rank 1
commented on 30 May 2023, 06:59 PM

Hello! Thanks for your response. Didn't see this until today. I cannot reproduce this locally, and neither on the old Windows server, but only on the new Windows 2k22 server. Thanks!
Georgi
Telerik team
commented on 02 Jun 2023, 11:54 AM

I can see that the used version is quite outdated, could you please test if the same reproduces with our latest version?
Balaji
Top achievements
Rank 1
commented on 02 Jun 2023, 02:01 PM

Thanks for your response Georgi! I am currently working on getting licenses transferred or whatever it takes, will check this out as soon as that is taken care of. Thanks again!
Georgi
Telerik team
commented on 07 Jun 2023, 11:33 AM

Please let us know once you get the license sorted if any further assistance is needed.

No answers yet. Maybe you can help?

Tags
AJAX and Web 2.0
Asked by
Balaji
Top achievements
Rank 1
Share this question
or