07 November, 2012

SharePoint list 'show filter choices' mystery


When we face any product limitation issue or call it as default SharePoint behavior then it’s difficult to conclude or explain to the customer that this is by design.
Filter Web Parts connect to Web Parts containing one or more sets of data to change the view of the data. The filter Web part can be visible on the page, to ask for user input, such as a date or text, or they can be invisible, as is the case with the Current User filter, which filters data based on the user who is logged on to the computer.
Problem Description:  Some of SharePoint list’s which are present on my site collection are not displaying the list of content types; instead they are showing an option “show filter choices
While researching on the issue, I found one article which clearly suggested that this happens because of increase in the number of items in the list.
Million Thanks to Nauplius for publishing this article: http://sharepoint.nauplius.net/2010/09/sharepoint-list-filter-problems-or.html
In the above mentioned article, it clearly mentioned that when the list items crosses beyond 500 items then it will the option “show filter choices” and Microsoft place this option because of performance problems.
Please let me know in case of any queries/questions regarding the above mentioned information.
Thank you.

06 November, 2012

You may be trying to access this site from a secured browser on the server


Problem Description:
When you try to open a Microsoft SharePoint Server 2013 site, you receive the following error message:

You may be trying to access this site from a secured browser on the server. Please enable scripts and reload this page.

Troubleshooting/Analysis:
This problem occurs because the JavaScript feature is disabled in Windows Internet Explorer.

Resolution:
To resolve this problem, enable the JavaScript feature in Internet Explorer.
To do this, follow these steps:
1.   Open Internet Explorer,
2.   Go to the SharePoint Server 2013 site,
3.   Press Alt to reveal the Menu bar,
4.   Click Tools
5.   Then click Internet Options. 
6.   On the Security tab, click Custom level.
7.   Scroll down to the Active scripting section,
8.   And then select Enable.

If you have any queries/questions regarding the above mentioned information then please let me know. I would be more than happy to help you as well as resolves your issues, Thank you.

How to find which w3wp.exe belongs to which application pool and Find correct w3wp ProcessId for Web Application in IIS: IIS 6.0 and IIS 7.0 .

Today we see some performance issue on two of our webservers and I was supposed to the analysis of the it.
I know this is tuff Job but work is worship so no compromise.
We had similar problem in the past as well; however, our Search 2008 server has contributed to the server CPU utilization to 100 %. We stopped all search crawls in the past and issue was resolved.
Today is another scary day when we saw the search was stopped and still CPU is at 100 % of it utilization on two of our servers.
I noticed from the task manager that multiple instances of w3wp.exe was running and some of them was eating up the completed memory.
Enabled the PID from Process Tab -> View -> Select Columns -> Select PID.
PID is a unique process ID associated with each process running on the server or client.
Why this PID was required?
To compare the PID associated with each and w3wp.exe. Now questions comes to mind is how we can know which web application or which application pool is binded with which worker process. Below is the answer…J
How to find which w3wp.exe belongs to which application pool: Applicable to Server 2003
Introduction
If you have multiple application pools on your IIS 6.0 web server you have certainly already noticed (in Task Manager) that you have multiple w3wp.exe processes running. If you notice a problem with one of these processes (for example consuming much memory, or taking too much CPU power) the following question arises: How do I know which application pool this process belongs to, so I know what application is causing this? It may sound like an easy to answer question, and it is, if you know the solution!
iisapp.vbs
The command-line script iisapp.vbs can be used to view which application pool a worker process belong to (a w3wp.exe process in Task Manager). This script is stored in the systemroot\system32 folder. To run this script open a command prompt.
C:\WINDOWS\system32>cscript.exe iisapp.vbs
Microsoft (R) Windows Script Host Version 5.6
Copyright (C) Microsoft Corporation 1996-2001. All rights reserved.

W3WP.exe PID: 1188 AppPoolId: DefaultAppPool
The example above tells us that the w3wp.exe with PID 1188 belongs to the application pool called DefaultAppPool. The syntax for this script is:

iisapp [/a AppPoolName | /p PID]

So you can also search for a specific application pool by specifying the PID, or vice versa (search for a PID by specifying the application pool name).
Find correct w3wp ProcessId for Web Application in IIS: Applicable to Server 2008.
To debug SharePoint assets such as web control (.ascx) in development environment, it’s very important to attach correct w3wp processId to visual studio.
Following is the process to find correct w3wp ProcessId for specific web Application in IIS, Please note that the step below is applied only to Windows 2008  and IIS 7
1.      Go to Start >> RUN >> cmd
2.      Copy following command >> %windir%\system32\inetsrv\appcmd.exe list wp
3.      This will list all web applications w3wp process with id as follows
5.      From the list you can find the processId of particular web application and attach it to visual studio for debug.
Ref:  sohilmakwana.wordpress.com
To know more about this:
If you have any queries/questions regarding the above mentioned information then please let me know. I would be more than happy to help you as well as resolves your issues.

An amazing find: List user group permissions from Client machine SharePoint.

Have you ever thought of searching for a user account in an enormous list of SharePoint permission groups?  Nightmare isn’t it?

I bumped into this amazing utility which lists the SharePoint groups for a user account in a SharePoint site collection.  Thanks to the black knight!

Run it off a command line from any client computer and you do not absolutely need to be on a server.

Parameters:

ListUsersGroups
Site-url: Url of site collection including protocol (example http://localhost)
username: Full username including domain (example MOSSWORK\user)


05 November, 2012

"Sign in as Different User" menu option is missing in SharePoint Server 2013


Problem Description:
In Microsoft SharePoint Server 2013, you notice that the Sign in as Different User menu option is missing.

It’s really a shocked that this option has been completely removed from SharePoint Server 2013 but after debugging, I am able to find out workaround on this issue and I am pretty much sure that this will helps you to overcome this problem.

Workaround:

1.      Access the SharePoint site by using the following URL:
http://<site url>/_layouts/closeConnection.aspx?loginasanotheruser=true

2.      Manually add the Sign in as Different User menu option to the SharePoint site. To do this, follow these steps:

·         Locate and then open the following file in a text editor: 
               C:\Program Files\Common Files\Microsoft Shared\Web Server
               Extensions\15\TEMPLATE\CONTROLTEMPLATES\Welcome.ascx 

·         Add the following element before the existing "ID_RequestAccess" element:
                                                                                                   
<SharePoint:MenuItemTemplate runat="server" ID="ID_LoginAsDifferentUser"
Text="<%$Resources:wss,personalactions_loginasdifferentuser%>"
 Description="<%$Resources:wss,personalactions_loginasdifferentuserdescription%>"
 MenuGroupId="100"
 Sequence="100"
 UseShortId="true"
/>

Save the file. 

If you have any queries/questions regarding the above mentioned information then please let me know. I would be more than happy to help you as well as resolves your issues…