Backup
stsadm -o backup -url http://sharepointsite -filename D:\Backup\backup.bak
Restore
stsadm -o restore -url http://sharepointsite -filename D:\Backup\backup.bak -overwrite
Backup
stsadm -o backup -url http://sharepointsite -filename D:\Backup\backup.bak
Restore
stsadm -o restore -url http://sharepointsite -filename D:\Backup\backup.bak -overwrite
$siteUrl = "http://URL_of_your_SITE";
$site = New-Object Microsoft.SharePoint.SPSite($siteurl);
$web = $site.OpenWeb();
$enumPerms = [Microsoft.SharePoint.SPBasePermissions];
Write-Host $web.AnonymousPermMask64;
$web.AnonymousPermMask64 = $web.AnonymousPermMask64 -bor $enumPerms::OpenItems
$web.Update();
Write-Host $web.AnonymousPermMask64;
$web.Dispose();
$site.Dispose();
http://support.microsoft.com/kb/2498047
ERROR:
Assemblies that implement ASP.NET Web Parts and are installed into a partially trusted location, such as the bin directory, must be compiled with the AllowPartiallyTrustedCallersAttribute set for import to succeed.
SOLUTION:
Add [assembly:AllowPartiallyTrustedCallers] to AssemblyInfo.cs
In Powershell:
Set-SPuser -identity “DOMAIN\accountname” -DisplayName “Name Surname” -web <URL of Site>
USE SharePoint_Config
GO
ALTER DATABASE SharePoint_Config SET RECOVERY SIMPLE
DBCC SHRINKFILE(N'SharePoint_Config_log', 1)
ALTER DATABASE SharePoint_Config SET RECOVERY FULL
GO
xpath: /root//node[not(@y <= preceding-sibling::node/@y) and not(@y <=following-sibling::node/@y)]
XmlDocument doc = new XmlDocument();
doc.Load("data.xml");
XmlNodeList nodeList = doc.SelectNodes("/root/node[not(@score <= preceding-sibling::node/@score) and not(@score <=following-sibling::node/@score)]");
StringBuilder output = new StringBuilder();
output.Append("<b>");
for (int i = 0; i < nodeList.Count; i++)
{
output.Append("<b " +
nodeList[i].ParentNode.Attributes["parentAttribute1"].OuterXml + " " +
nodeList[i].ParentNode.Attributes["parentAttribute2"].OuterXml + ">");
output.Append(nodeList[i].OuterXml);
output.Append("</b>");
}
output.Append("</b>");
I solved my problem :)
if (HttpContext.Current.Request.Cookies["FedAuth"] != null)
{
HttpCookie requestCookie = new HttpCookie("FedAuth");
requestCookie.Secure = false;
requestCookie.Expires = DateTime.Now.AddYears(-1);
}
FederatedAuthentication.SessionAuthenticationModule.SignOut();
FormsAuthentication.SignOut();
Response.Redirect("~/redirecturl");