We want piece of code which we can paste in the code behind and get the username under which code runs for:- (usually .NET code runs under account of application pool) Timer job. Event receiver. ...
Changing the user account of the SharePoint applicaton pool returns the error “Cannot connect to the configuration database”
I am trying to debug an issue regarding the proxy setting in web.config. Currentley it is set to: <system.net> <defaultProxy enabled="true" useDefaultCredentials="true"> ...