Showing posts with label Sharepoint. Show all posts
Showing posts with label Sharepoint. Show all posts

11/01/2020

Sign-out in SharePoint

The Sign-Out feature is disabled in SharePoint, and it's very important specially when you are using windows authentication to log-in the site, you can use the below link to clear the current user session:

YourSite/_layouts/closeConnection.aspx?loginasanotheruser=true


Read more...

13/05/2019

The list is too large to save as a template. The size of a template cannot exceed 52428800 bytes.

By default, you can't save the SharePoint list when it's exceed 52428800 bytes, but you can increase the size by power shell as below:

stsadm -o setproperty -propertyname max-template-document-size -propertyvalue 100000000

Read more...

05/05/2019

Microsoft SharePoint Remote Code Execution Vulnerability

A remote code execution vulnerability exists in Microsoft SharePoint when the software fails to check the source markup of an application package. An attacker who successfully exploited the vulnerability could run arbitrary code in the context of the SharePoint application pool and the SharePoint server farm account.


Remediation:
The security update addresses the vulnerability by correcting how SharePoint checks the source markup of application packages.

Security Updates
Product
Article
Download
Impact
Severity
Supersedence
Microsoft SharePoint Enterprise Server 2016
Remote Code Execution
Critical
4462155
Microsoft SharePoint Foundation 2010 Service Pack 2
Remote Code Execution
Critical
4461580
Microsoft SharePoint Foundation 2013 Service Pack 1
Remote Code Execution
Critical
4461596
Microsoft SharePoint Server 2010 Service Pack 2
Remote Code Execution
Critical
Microsoft SharePoint Server 2013 Service Pack 1
Remote Code Execution
Critical
4462139
Microsoft SharePoint Server 2019
Remote Code Execution
Critical
4462171

Read more...

03/02/2019

Internal Server Error 500

When create a new web site, Internal Server Error 500  message appear, the solution is:

  1. Open Front-End server.
  2. open IIS
  3. Select Application Pools
  4. From the right side, select SecurityTokenServiceApplicationPool
  5. Right-Click, Choose Advanced Settings.
  6. Go to Identity, and set the Farm Admin user.
  7. Recycle the Application Pool.

  8.  

Read more...

15/04/2015

How To Know The Site Template In SharePoint

Easiest way to know the site template for any SharePoint site is by view page source, on the page source find about "SiteTemplateId", and now you can show it.

var g_wsaLCID = 1025;
var g_wsaListTemplateId = 850;
var g_wsaSiteTemplateId = 'BLANKINTERNET#0';

Read more...

06/04/2015

WCF With Sharepoint

When using WCF and need to connect with the sharepoint you must do the following:

1- in web.config: Modify aspNetCompatibilityEnabled from false to true.

2- in main service you could add the below:
[AspNetCompatibilityRequirements(RequirementsMode = AspNetCompatibilityRequirementsMode.Allowed)]

EX:
    [AspNetCompatibilityRequirements(RequirementsMode = AspNetCompatibilityRequirementsMode.Allowed)]
    public class TestService : ITestService
    {
    }

Read more...

14/01/2014

Extract WSP file from farm

$spFarm = Get-SPFarm
$spFile = $spFarm.Solutions.Item("test.wsp").SolutionFile
$spFile.SaveAs("c:\test.wsp")

Read more...

14/05/2012

allows a limit of 11 direct dependencies, and that limit has been exceeded.


Parser Error Message: The page '/_catalogs/masterpage/_____.master' allows a limit of 11 direct dependencies, and that limit has been exceeded.

 To solve this error:
Go to web.config of your site collection and modify the value DirectFileDependencies to a larger value.

Read more...

01/05/2012

Sharepoint search as you type with jquery


Read more...

21/04/2012

02/12/2011

Enable the Ajax on MOSS 2007


Read more...

17/11/2011

Permission level cannot be found

Permission level cannot be found. at Microsoft.SharePoint.SPRoleDefinitionCollection.get_Item(String name)

This message happend when you try set permission to user in sharepoint by code with rong spelling.

Such us: you want set "Contribute" for the user, but you write it: "Contributer".

Read more...

29/10/2011

Enterprise Search Case Study


Read more...

07/02/2011

Remove the page title if you use ScriptManager


If you use an ajax, there is problem will appear with sharepoint, the page title will be removed.!!


how??

for example, If you use the ajax with button, and you put the scriptmanager into masterpage, and the user clicked it, the page title will be removed.

To solve this issue:
  1. Open the masterpage of your site using sharepoint designer.
  2. add the scriptmanager direct under form tag.
  3. remove any extra code from title place holder, the title place holder will be appear with the follwoing format:
<title id="onetidTitle"><asp:ContentPlaceHolder id=PlaceHolderPageTitle runat="server" /></title>



save, and check in.

Test now...

Read more...

17/02/2010

Sharepoint Designer Login

If you want from Sharepoint designer ask you about the user name and password every time you open the site, follow the following steps:

1- open IE.

2- From menu choose Tools --> security --> Internet [For Websites outside the network] OR Local internet [For Websites inside the network] --> Custom Level --> User Authentication -->
Logon --> select Prompt for user name and password

3- Click OK

Read more...

10/02/2010

Problem with Response.Redirect in Sharepoint

To solve the problem with Response.Redirect in Sharepoint, use the following code:

Response.RedirectLocation = "Put The Target Page URL";

Response.StatusCode = 301;



Read more...

Handle the 404 error in Sharepoint 2007

How to handle the 404 error in sharepoint 2007?
The Sharepoint include default page for 404 error, but we need to change it to our custom page.

So, follow the following steps:




1- Create a new page under your portal, such us: http://www.____.com/pages/FileNotFound.aspx

2- Go to the following path in your server:
\Program Files\Common Files\Microsoft Shared\Web Server Extensions\12\TEMPLATE\LAYOUTS\1025
For arabic,
OR
\Program Files\Common Files\Microsoft Shared\Web Server Extensions\12\TEMPLATE\LAYOUTS\1033
For english.


3- Copy and past the sps404.html file

4- Rename the new file to any friendly name, such us: Mysps404.html

5- Open Mysps404.html file, and modify the following line:
STSNavigate("/_layouts/spsredirect.aspx?oldUrl=" + requestedUrl);

to:
STSNavigate(http://www.____.com/pages/FileNotFound.aspx);


6- Create a console application, to modify the default 404 error page to new page,
write the following lines:



System.Uri webApplicationUri = new Uri("http://www.____.com");

SPWebApplication webApplication = SPWebApplication.Lookup(webApplicationUri);

webApplication.FileNotFoundPage = "Mysps404.html";

webApplication.Update();





7- Run it in your server, and test the scenario.


Read more...

03/11/2009

SharePoint calculated column and jQuery Highlight row

http://www.sharepointkings.com/2009/04/sharepoint-calculated-column-and-jquery.html

Read more...