Bulat
Bulat

Reputation: 361

ServerContext.Current is null

I am facing strange issue.

I have wep-part that reads data from user's profile. Everything is fine than I use short server name say http://server but I keep ServerContext.Current returning null then I access the same page with fully qualified server name say http://server.zone.local where zone.local is DNS suffix of the zone.

Did anyone faced the same issue?

Upvotes: 2

Views: 671

Answers (1)

Bulat
Bulat

Reputation: 361

And again I found solution myself.

I just mapped fully qualified URL http://server.zone.local to http://server in Central Administration > Operations > Alternate Access Mappings and everything works as expected.

Upvotes: 2

Related Questions