I am making some changes to web.config with the SPWebConfigModification class. When you add them to WebApplication and call Update, it throws me a SecurityException, though
SPSecurity.RunWithElevatedPrivileges(delegate() { addProviderProxy(properties); });
where addProviderProxy (SPItemEventProperties properties)
using (SPSite site = new SPSite(properties.SiteId)) using (SPWeb web = site.OpenWeb()) { ensureSectionGroup(web); ... }
where makeSectionGroup (SPWeb website)
SPWebApplication webApp = web.Site.WebApplication; ... webApp.Update(); <--Throws exception here
System.Security.SecurityException was caught Message="Piekļuve liegta." //(Translates to something like "Access Denied") Source="Microsoft.SharePoint" StackTrace: at Microsoft.SharePoint.Administration.SPPersistedObject.Update() at Microsoft.SharePoint.Administration.SPWebApplication.Update() at Balticovo.SharePoint.AdjustWebConfigForOutlook.ensureSectionGroup(SPWeb web) InnerException:
" " SPPersistedObject.Update(), , , , . , SharePoint (, , SP).
, SQL SQL Profiler, , . , , , .
Update:
, " ". db_owner , , , - . ( ), .
, SQL Server Management Studio. SQL Profiler , . WSS_Content_Application_Pools / data_reader data_writer.
WSS_Content_Application_Pools
data_reader
data_writer
PowerShell script, :
$contentService = [Microsoft.SharePoint.Administration.SPWebService]::ContentService $contentService.RemoteAdministratorAccessDenied = $false $contentService.Update()
2010 , , . Paul Kotlyar, .
Source: https://habr.com/ru/post/1717049/More articles:Как я могу заставить TextBlock буквально сказать "{Binding}"? - textStop inserting into table if record already exists - sqlMySQL does not use efficiently use index for ORDER BY queries - mysqlCreate on the fly using jQuery - jqueryDelphi2010 Compiler Error: F2084 Internal Error: L1737 - compiler-constructionHow to kill the process that proc_open spawns - phpString variable value changed - stringBash quoting the current path (pwd) - bashHow to create a server for broadcasting live video? - flashSearch in: normal vim misbehaves - vimAll Articles