Sharepoint 2010 - AAM - SPSite(SPContext.Current.Site.ID) RootWeb.Url is from wrong zone
- by user2026343
I have a sharepoint 2010 web application with 2 different zones, default zone with windows login (for search crawl), internet with Claims (FBA) for users to login.
I have custom webparts that uses
using (SPSite mySite = new SPSite(SPContext.Current.Site.ID))
using (SPWeb web = mySite.RootWeb)
{ string url…