Copied to clipboard

Flag this post as spam?

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


  • RefaelAzari 16 posts 86 karma points
    Jun 06, 2022 @ 15:17
    RefaelAzari
    0

    UrlTracker - Object reference not set to an instance of an object

    hii :-)

    Umbraco 9.5 .Net Core

    i installed UrlTracker v9 and configured it and now i getting NullReferenceException: Object reference not set to an instance of an object.

    anyone know why?

    Startup.cs:

    public void Configure(IApplicationBuilder app, IWebHostEnvironment env)
            {
                if (env.IsDevelopment())
                {
                    app.UseDeveloperExceptionPage();
                }
    
                app.UseUmbraco()
                    .WithMiddleware(u =>
                    {
    
                        u.UseBackOffice();
                        u.UseWebsite();
                        u.UseUrlTracker();
                    })
                    .WithEndpoints(u =>
                    {
                        u.UseInstallerEndpoints();
                        u.UseBackOfficeEndpoints();
                        u.UseWebsiteEndpoints();
                    });
            }
    

    appsettings.json:

    "UrlTracker": {
            "IsDisabled": false,
            "IsTrackingDisabled": false,
            "LoggingEnabled": false,
            "IsNotFoundTrackingDisabled": false,
            "AppendPortNumber": false,
            "HasDomainOnChildNode": false,
            "CacheRegexRedirects": true,
            "InterceptSlidingCacheMinutes": 2880,
            "MaxCachedIntercepts": 5000,
            "EnableInterceptCaching": true
          }
    
  • RefaelAzari 16 posts 86 karma points
    Jun 07, 2022 @ 07:44
    RefaelAzari
    0

    anyone please help

  • RefaelAzari 16 posts 86 karma points
    Jun 14, 2022 @ 14:13
    RefaelAzari
    100

    hi

    the solution was to change the relative domain url to full path domain e.g: https://www.example.com/he/ https://www.example.com/en/

    enter image description here

Please Sign in or register to post replies

Write your reply to:

Draft