24 April, 2013

Kerberos configuration known issues (SharePoint Server 2010)

Kerberos authentication and non-default ports

There is a known issue where some Kerberos clients (.NET Framework, Internet Explorer 7 and 8 included) do not correctly form service principal names when attempting to authenticate with Kerberos enabled web applications that are configured on non-default ports (ports other than 80 and 443). The root of the problem is the client does not properly form the SPN in the TGS request by specifying it without the port number (as seen in the Sname of the TGS request).
Example:
If the web application is running at http://intranet.contoso.com:1234, the client will request a ticket for a service with a SPN equal to http/intranet.contoso.com instead of http/intranet.contoso.com:1234.
Details regarding the issue can be found in the following articles:
To work around this issue, register SPNs with and without port number. Example:
  • http://intranet.contoso.com:12345
  • http/intranet
  • http/intranet.contoso.com
  • http/intranet:12345
  • http/intranet.contoso.com:12345
We recommend that you register the non-default port to ensure that if the issue is resolved in some future service pack or hot fix, the applications using the workaround will still continue to function.
Note that this workaround will not work if the following conditions are true:
  • There is more than one web application running on a non-default port
  • The web applications either bind to the host name of the server or bind to the same host header (on different ports)
  • The web application IIS application pools use different service accounts
  • http://server.contoso.com:5000 AppPool Id: contoso\svcA
  • http://server.contoso.com:5001 AppPool Id: contoso\svcB
If these conditions are true, following the recommendation in this workaround will yield duplicate SPNs registered to different service accounts which will break Kerberos authentication.
If you have multiple web sites sharing a common host name running on multiple ports, and you use different IIS application pool identities for the web applications, then you cannot use Kerberos authentication on all web sites. (One application can use Kerberos, the rest will require another authentication protocol.) To use Kerberos on all applications in this scenario, you would need to either:
  1. Run all web applications under 1 shared service account
  2. Run each site with its own host header


    Reference : http://technet.microsoft.com/en-us/library/gg502606%28v=office.14%29.aspx

SharePoint 2010 - Browser Compatibility

This article explains known limitations of some browsers with SharePoint 2010.

For most interactions with SharePoint an internet browser is required and the choice of browser will affect the experience. Most functionality is available in all browsers, however there are exceptions where certain features require Active X technology which is only available in Internet Explorer and means that some of SharePoint's functionality is lost when using non-IE browsers.

Browser support for SharePoint Server 2010 can be divided into three different levels, as follows:
  • Supported - A supported Web browser is a Web browser that is supported to work with SharePoint Server 2010, and all features and functionality work.
  • Supported with known limitations - These are non-Internet Explorer browsers such as FireFox, Safari and Chrome. They are supported for use with SharePoint but some functionality is missing in these browsers such as opening documents directly in Office applications (although viewing and editing office documents within the browser is fully supported, as is downloading and editing). Documentation on how to resolve these issues is readily available from Microsoft.
  • Not tested - A Web browser that is not tested means that its compatibility with SharePoint Server 2010 is untested, and there may be issues with using the particular Web browser. SharePoint Server 2010 works best with up-to-date, standards-based Web browsers.



Thanks Brent for sharing this

URL path length restrictions in SharePoint 2010

There must always be a series of questions –

Is there any solution for URL maximum length restriction?

I am unable to create consecutive subfolders due to URL length exceeding 260 characters
Is there any proper fix to solve this issue?

Can I increase maximum allowed URL length that SharePoint can work with?

How exactly does that affect opening a nested-folder-document in say Word or Excel?

Is the limit also there for the explorer view? 255 chars isn't a whole lot for a directory and filename structure, so if it also affects the explorer view; is there a way around it?

Reason is pretty much simple: SharePoint limits URL length because all relative URL links are stored in the clear forms on the SharePoint content DB and often this links are used as primary keys to link one table with another. Fields which are used to store these links (for instance tp_DirName from the AllUserData table) allow storing only 256 characters.


If you have any questions/queries regarding the mentioned information then please let me know, Thank you.

23 April, 2013

Unable to process the request. Wait a few minutes and try performing this operation again.


Issue: Most of our clients were having issue while opening the Excel files from their SharePoint sites using Excel web access webpart after an upgrade from MOSS 2007 to SharePoint 2010.

Error: Unable to process the request. Wait a few minutes and try performing this operation again




 
Troubleshooting done:

- Adding the URL in trusted file location.

- Change the settings to open the document with client application form document library. .

Resolution:

After some investigation we found this Blog from the technet , which talks about the same problem:


- Rebooting the server will remedy this, but that is not realistic.

- You can run IISReset /noforce that too should remedy the issue.

- To avoid a complete IISReset, you can manually recycle the Application Pool Running Excel Services. (Please check the blog for additional info)

22 April, 2013

How to overwrite or disable the List View Threshold value for particular list in SharePoint 2010 Using PowerShell


If you want to overwrite or disable the threshold limit of List View items for particular list then execute the following cmdlets in Powershell.

$WebApplication = Get-SPWeb http://<SiteCollectionName>

$List = $WebApplication.Lists["List Name"]

$List.EnableThrottling = $false

$List.Update()

There is one property of SPList called "Enable Throttling" which has to be set to false to overwrite the threshold limit set on Web Application for all the lists.

I hope this is helpful and If you have any questions then please let me know, Thank you.

Applies to SharePoint Server 2010.

21 April, 2013

Error while opening excel files after upgrade your SharePoint site to 2010

Error Message: The workbook cannot be opened because it is not stored in an excel services.

Cause: By default the setting in the library is set to "open the file in browser".

Resolution: Change the Library settings to open files in Client application.

Steps: 

-Open your document Library

-Click on "Library" under "Library tools" (See screenshot)
 

-To the extreme right on the ribbon, please click on "Library settings".


-Click on Advanced settings under General settings.

-In the settings for "Opening Documents in the Browser"

-Change the radio button and select Open in the client application.

-Click OK

You must change this setting in all the document libraries.
 

Applies to: SharePoint Foundation 2010/SharePoint Server 2010.


 
 

Attachments doesn’t open when attached with a discussion boards.

The lists can be configured to open documents in client mode but this doesn’t happen with discussion boards and other collaborative lists which do not have a special provision for attachments.
Error messages may say that the features included in the files are not supported by web browser.

Reason: Uploaded excel files may contain macros or other calculations which needs an excel client. In SP 2010 all the office documents open in client by default so ether make the settings suggested below or turn on a feature to open all documents in client by default.

Steps to do this:

  • Go to Site Actions 
  • Site settings 
  • Site collection Features 
  • Open documents in Client Applications by default


Applies to: SharePoint Server 2007/2010.

Windows Server and Virtualization Bulletin.

18 April, 2013

This workbook is larger than the maximum workbook size allowed to be opened in the browser.

Problem: Whenever client wanted to open the attached Excel file from a discussion board. He gets the below error.  

Error message: This workbook is larger than the maximum workbook size allowed to be opened in the browser.
 
Reason: By default the Maximum workbook upload size allowed in SharePoint is 10mb (this was 100mb in 2007 environment) increase this to 50 MB the issue goes away.

How to do this:

1.   In Central Administration, in Application Management, click Manage service applications.

2.   Click Excel Services Application.

3.   Click Trusted File Locations.

4.   Click the location. This will be an added trusted file location for the site collection or a new file location.

5.   Scroll to Workbook Properties.

6.   In Maximum Workbook Size, increase the file size from 10 to 50

Reference Article: http://technet.microsoft.com/en-in/library/ff487972.aspx

Applies to: SharePoint Server 2010

                  SharePoint Foundation 2013.

Online interview SharePoint professional – 4 pragmatic questions I asked

Finding and getting right people to work for your company isn’t as easy as you think even you find many awesome things in resumes. To SharePoint field, the difficulty of recruitment becomes more true because of complexity of SharePoint platform and different uses of it. Have you ever been responsible for interviewing SharePoint professional working for your company? Which questions would you like to ask your candidates?

Recently, I’ve been assigned to be part of recruiting team in my company, responsible for online interviewing some candidates whose good-looking resumes on my table. I, although, did quick search on Google using keyword “SharePoint Job interview questions” but I never used any of them to ask the candidates. I didn’t ask something like “What is the X method?” or “Is there any difference between X and Y?” or “How does execution of X code impact on Y environment?” because I did know someone could readily put his fingers on the Google search box and then quickly found good results. So what did I ask when doing an online interview? In this post, I would like to share only 4 pragmatic questions I asked for SharePoint Solution Director candidates.

Can you tell me about two most favorite projects you have worked on?

A brilliant candidate should get started with brief introduction, his role and responsibilities, project size and duration. Through his answer, you probably know he has hands-on experience, especially his passion on those projects. Candidates can’t find the answer to my question on Google or another search engine.

Let’s see a sample answer: “One of the most favorite projects done was to build a logistic management application built on top of SharePoint platform. I worked as Lead Architect, responsible for planning and designing architecture covering infrastructure, capacity, storage, security and development. We had 6 team members working within 4 months to complete the project.”
After getting such a clear answer, you can possibly have a few extra questions such as:
  • Can you concisely describe features of the logistic management you completed developing? Using this question, you can figure out how complex this project is.
  • How many roles in this project? Which was the most important role you think? I know this question should be focused for SharePoint project manager but if he actually has good mindset, he should probably get to overall picture of the project.
  • Can you describe a little bit of the environment? You may get an overview of SharePoint farm maybe with a staging farm. It looks really cool, isn’t it?
Which challenges/issues did you get in the two projects?

A real experienced SharePoint professional has to note challenges and issues or at least remember during his project. The reason I ask is to know how he solves problem if occurred, and more details in solution architecture and probably soft-skill he has. Sometimes you expect to see soft-skill a candidate has rather than technical skill used to solve complexity of SharePoint project. That said, when asking an Indian candidate, I was expecting to get more of X management challenge such as risk management, change management or so on. However, he mostly focused on answering code stuffs, e.g, “They didn’t have the latest code available for the custom code solutions deployed in SharePoint 2007”, or “We had to update the existing code and then build it on x64 platform before upgrading to SharePoint 2010.” At this point, you can see this guy can fit developer role rather.
I know code related issue is one of the most common challenges in SharePoint project but I need to know if there is something else that keeps me asking in more details because of my curiousness.

Let’s see a sample answer: “Although we used Microsoft Solution Framework to manage SharePoint project, we still had problem with customer requirement that were changes of functionality. We had to deal with that, and built a SharePoint site collection used to track changes and manage the problem. Another issue was that we didn’t have a Team Foundation Server professional so our collaboration process got some times delayed.“

The Indian guy I interviewed worked with a customer that had SAP system and they wanted to pull data from it to push to SharePoint. He had to write a custom web service. I know he is really good at customization but what I was expecting to see from his answer should be like: “The customer had SAP system and they wanted to pull data from it and then push to SharePoint. We knew that Duet enterprise was an epic but the customer didn’t have enough budget so we had to customize web service to meet the business requirement and fit the budget.” Duet Enterprise was my focused point that would denote his breadth knowledge.

What are different/same things between any two projects you have done?

I don’t need candidates to elaborate differences, or list all different/same things. What I expect is to see if candidates have good brain to remember what they have done, and how they response in systematic way, and their brain be organized logically.

Let’s see a sample answer:  “We had two SharePoint document management projects (A and B) but A had document processing workflow but B didn’t. Conversely, B required digital signature issued by a PKI (Public-key Infrastructure) but A didn’t. One of the same things were the functionality of search based managed metadata.”

What do you think about the concept of SharePoint Out-of-the-box (OOTB)?

There are many .NET geeks turned SharePoint developers often do many customization on SharePoint-based application because they think they can do everything on such a platform built .NET framework. I really expect to see how much candidates are familiar with SharePoint OOTB in order to reduce effort of customization. There are many business solutions that can be done very quickly by using OOTB but folks often go with really hard ways. Workflow that has multiple approval processes is an example. Building dashboard by Dashboard Designer and PerformancePoint without writing code is another one. I’m not talking about complex dashboard. By the way, I strongly recommend reading “Microsoft SharePoint 2010 – Creating and Implementing Real-World Projects” book and “Professional Workflow in SharePoint 2010 Real World Business Workflow Solutions” and “Beginning SharePoint 2010: Building Business Solutions with SharePoint“. The books cover real-world no-code business solutions.

When having a blueprint in your hand, take a glance at SharePoint OOTB to see if it can meet business needs without code, or write a little code putting in Content Query web part to trigger something, for example.  At this point, you can supposedly bring out a scenario, e.g., ABC is the marketing company that helps customer in promotion of products and services by organizing conference. Each conference has its own a set of documents that likely consists of marketing plan, budget plan, program plan and other documents related to the conference. ABC is using SharePoint and wonder if it can help manage such a set effectively. As an experienced SharePoint professional, what would you like to suggest them? I’m guessing many of you immediately propose Document Set feature that actually addresses to the concern. Ironically, you might forget asking which SharePoint version the marketing company is using, right?

Conclusion

In my opinion, these questions do qualify someone who indeed has much experience on SharePoint platform and he has done many real-world SharePoint projects whether those are big or not. These questions are connected logically so if you don’t really have much SharePoint experience, you could get stuck at any of the questions. Besides, candidates can’t find good answers from Google or even they refer to friends of theirs.
When you do an online interview, try to avoid your candidates doing search by asking intelligent questions. You shouldn’t ask kind of “How-To” question or technique focused. Having good technical skills is really good these days but it’s not enough for working in the harsh world.

Thuan Nguyen - SharePoint MVP

17 April, 2013

The Business Card As A Career Tool: by Jim Adcock

After talking with a job seeker the other day, I asked for his card so I could keep in touch with him. He replied that his company didn't give its employees business cards. He didn't have a personal business card either.
I was asking for his card because I had spoken with him a couple of months before, and he took my card and said he would contact me so I could pass job leads to him. But I didn't hear from him, and I had no way to initiate contact with him, so he missed a couple of good leads.
I realized that not everyone has been taught the value of a business card - their own personal business card - to their career.

Quick Fix: “The document could not be opened for editing. A Microsoft SharePoint Foundation Compatible application could not be found to edit the document” by Jim Adcock

Problem:
A user tries to open an InfoPath form in the application instead of the browser, and get an error message:
The user can open in the browser just fine, and has been able to open the forms previously with no problem. User is able to download the form to their desktop and open the form in InfoPath. But when they try to open the form in the application from the context menu, the above error is shown.
In researching the error, I found a support posting that provided a clue to the problem. In it, the user is instructed to enable Add Ons in their Internet Explorer:
  1. Go to Tools in IE, click Internet Options
  2. Click Programs at the top
  3. Click “Manage add-ons” near the bottom
  4. Click Publisher, then you can see all of Microsoft Corporation together
  5. Scroll to SharePoint names (May be one or several)
  6. Make sure they are all enabled by clicking on the name; the Enable button is towards the bottom.
  7. Then click OK and OK and restart IE
Can you guess what the problem was?
Read more of this post

Migrate managed metadata from one environment to another in SharePoint 2010

What will be the requirement?
Your user will be raising a ticket for to create a replica of the production site in development environment.

Quite easy - correct? You can easily implement this by using PowerShell but now the problem starts from here. If your site collection admin has created a term store in production site then you will not get those in development environment. Hmm- seems to be difficult now, isn’t it?

Reason: Managed metadata terms and term sets each have a unique guid and the guids don't match up

Nothing to worry about as we have a solution for that :)

Let me brief some details as local terms can be created by 2 ways:
-centrally i.e. @Central Administration Level
-Locally i.e. @site collection level

Let me talk about ‘Centrally’ first: There are some ways by which you can implement this.
-By using Export and Import
-By using Database method

Let’s discuss about the first method i.e. Export and Import

Export Example:
$mmsAppId= "e1c96163-7767-4497-8e92-51eb154f0c70"
$mmsproxy = Get-SPServiceApplicationProxy -Identity "4d4b3094-a9ad-4cee-99f4-392d489a1657"
Export-SPMetadataWebServicePartitionData -Identity $mmsAppId -ServiceProxy $mmsproxy -Path "E:\backups\SP2010_Backups\mms.bak"
You must be wondering as how to get this App ID Guid Placeholder and Proxy ID Guid Placeholder. It’s very easy-please refer the following steps:
How to get App ID Guid:
-Central Administration
-Application Management
-Manage Service Applications
-Managed Metadata Service Application
-refer the browser now and copy the guid which is after tsid=

How to get Proxy ID Guid:
-Open the PowerShell console
-execute this command-  Get-SPServiceApplicationProxy
-You will see a list of proxy id’s and you need to copy ID that belongs to managed metadata.

Follow the same process in Import also and get the guids. Obviously they will be different as they belongs to different farm i.e. target farm.
Import Example:
$mmsAppId= "d7b7b20c-aed1-4cag-ba6a-45baa9d6adf2"
$mmsproxy = Get-SPServiceApplicationProxy -Identity "df8606f1-cfca-4283-89db-9270e0a5adec"
Import-SPMetadataWebServicePartitionData -Identity $mmsAppId -ServiceProxy $mmsproxy -Path "\\SP2010_SQL\SP2010\mms.bak" –OverwriteExisting
Database approach:
-Backup the managed metadata database in your source farm
-Delete the MMS service in your target farm
-Restore the managed metadata database to your target farm
-Create a new MMS service in your target farm
-Ensure correct service accounts have full control of MMS

How to move local term stores?
We can easily move the local term stores by using the following tool:
Documentation is already provided on the above site only so I will not go much deeper in reference to this tool but it’s very easy and user friendly too.
If you have any queries/questions regarding the above mentioned information then please let me know, thank you.