Getting null value in live site, but in local it is working

Former Member
Former Member

Hi Team,

I have created the widget extension to get the tagged content list.

When we call this method in my local. It is working fine.

But in live site, it is throwing the following issue

threw exception NVelocity.Exception.VelocityException : Value cannot be null. Parameter name: g

But there is no parameter in the name of g

Parents
  • Could you provide your full version number (from Administration > About) and the full stack trace for this issue as logged in the Exception Log? That may provide more context to allow us to help.

  • Former Member
    0 Former Member in reply to Ben Tiedt

    Hi Ben,

    In Local,

    In Live,

    Invocation of method 'List' in TaggedContent.Widget.Extension.TaggedContentListMethods threw exception NVelocity.Exception.VelocityException : Value cannot be null. Parameter name: g

    UnknownException: An error occurred while rendering the 'inBGTaggedMainWrap.vm' script from the 'Tagged Content List' widget (ec913ce1-a28f-4602-af49-8bf572f374e1). (An error occurred while trying to render a widget. Details of the issue were logged for review by the administrator.) ---> NVelocity.Exception.MethodInvocationException: Invocation of method 'List' in  Lenovo.TaggedContent.Widget.Extension.LenovoTaggedContentListMethods threw exception System.ArgumentNullException : Value cannot be null.
    Parameter name: g ---> System.ArgumentNullException: Value cannot be null.
    Parameter name: g
       at System.Guid..ctor(String g)
       at TaggedContent.Widget.Extension.Api.TagServiceCustom..ctor(ITagService coreService, IMapper`2 tagMapper, IContextService contextService, IPluginManager pluginManager, IEncode encode, IDecode decode, ICacheService cacheService, IProfiledSqlCommandFactory commandFactory)
       at TaggedContent.Widget.Extension.Api.TagServiceCustom..ctor()
       at TaggedContent.Widget.Extension.TaggedContentListMethods.List(IDictionary options)
       --- End of inner exception stack trace ---

  • It appears you are attempting to parse a guid with a null value within the constructor of your TagServiceCustom class.

Reply Children
No Data