Stack Exchange Network

Stack Exchange network consists of 175 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.

Visit Stack Exchange

Questions tagged [hosting-environment]

HostingEnvironment class: which provides access to application-management functions and application services.

2
votes
1answer
450 views

Running SharePoint 2010 on SQL Server 2014 with Compatibility Level 110?

Can anyone confirm if it is supported to run SharePoint 2010 on SQL Server 2014 with Compatibility Level 110? Have seen SQL Server 2014 and SharePoint 2010 is not a supported combination, but not ...
2
votes
0answers
41 views

SharePoint Testing environment

We currently imaged the SharePoint production environment to a new Virtual machine, the problem is that we only imaged the SharePoint Server without the MSSQL server that was attached to SharePoint in ...
3
votes
1answer
1k views

What is the difference between RunWithElevatedPriviledges and HostingEnvironment.Impersonate()?

What is the difference between RunWithElevatedPriviledges and HostingEnvironment.Impersonate()? Both are used to run code with higher priviledges..
1
vote
1answer
179 views

Due to some exceptions with code we added HostingEnvironment.Impersonate(). Is it safe and good practice?

We are trying to access the active directory services using C# on SharePoint webpart. There was COM exception when executing: SearchResultCollection resultCol = search.FindAll(); I got the solution ...