Skip to content

GitLab

  • Menu
Projects Groups Snippets
    • Loading...
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
    • Contribute to GitLab
  • Sign in / Register
  • S SharePoint Automatic Signin
  • Project information
    • Project information
    • Activity
    • Labels
    • Members
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributors
    • Graph
    • Compare
  • Issues 49
    • Issues 49
    • List
    • Boards
    • Service Desk
    • Milestones
  • Deployments
    • Deployments
    • Releases
  • Monitor
    • Monitor
    • Incidents
  • Packages & Registries
    • Packages & Registries
    • Infrastructure Registry
  • Analytics
    • Analytics
    • Repository
    • Value stream
  • Wiki
    • Wiki
  • Activity
  • Graph
  • Create a new issue
  • Commits
  • Issue Boards
Collapse sidebar
  • CodePlex
  • SharePoint Automatic Signin
  • Issues
  • #11

Closed
Open
Created Apr 25, 2018 by Laurent Sittler@lsittler©Owner

Site collection Host header

When we are using an web application without host headers and use site collection host headers we get an Object reference not set to an instance of an object.

After looking at the code of the file 'autosignin.aspx.cs' there are 2 rows to get the zone of the current url. but this one is empty. So instead of using these 2 rows

            SPAlternateUrl u = app.AlternateUrls[Request.Url];
            SPUrlZone zone = u.UrlZone;

We can get the zone from the SPContext.Current.Site.Zone. so the 2 rows above can be replaces by the following row

            SPUrlZone zone = SPContext.Current.Site.Zone;
To upload designs, you'll need to enable LFS and have an admin enable hashed storage. More information
Assignee
Assign to
Time tracking