Wednesday, October 9, 2013

SQL Reporting Services report subscription file share issue solved via SharePoint site access via UNC path

On a recent project with a client we had a situation where they were using SQL Reporting Services in SharePoint integrated mode and wanted to create report subscriptions that would output these various reports to a file share so that another application could pick them up from there.

The issue with this solution is that when you are configuring a subscription that will output to a file share you have to specify a username and password that has access to this location. The problem with having to do that is that each time the account password changes, in this case it was 180 days, the client would have to go out and manually update this password for each individual report subscription. With a large number of reports and subscriptions this is just not an efficient or sustainable solution.

There was no way to get around the requirement that you had to supply account information to output this to the file share. So I asked the client how this other application accessed the file locations that were setup in the configuration of this application and found that it used UNC paths.

Once I had this information I knew I had a workaround to the issue. I let the client know that you can access a SharePoint site or library via a UNC path with minimal configuration required and that this would solve the issue at hand.

After I had everything configured I tested accessing the sites and found that I could not. I would just receive the generic error that the network path could not be found. I checked that all required services on the client and server were started and they were. I started looking into the issue a bit further and after some searching found the bit of information that I was missing. These sites were all running SSL and I found that the path used to access an SSL site in this manner was slightly different then if the site was running HTTP. After correcting my path everything worked as I would expect it to and the subscription output issue was solved.

Since I could not find a single place that had all the required information to get things configured as well as how to access the sites on different ports I thought it would be a good time to pull all the information together in one place. Below are all the steps required to get this setup as well as the different paths that are used when accessing sites running on ports other than 80.

In order to make SharePoint sites accessible via a UNC path there are steps that need to be taken on both the client and the server. This will cover what is required in order to make this work on Windows Server 2008 and a Windows client.

Windows Server 2008 Configuration
We need to install desktop experience feature. This feature will also install Ink support. In earlier version of windows the webclient service could be installed by enabling the WebDAV component in IIS.
  • Start the Windows Server Manager.
  • In the tree view, highlight the Features node.
  • In the details pane, click Add Features.
  • In the Add Features Wizard, check the Desktop Experience box, and then click Next.
  • Click Install.
  • When the Add Features Wizard has finished, click Close.
  • Click Yes when prompted to restart the computer. There will be two restarts that will occur during this process ad you will want to make sure you log back into the server after the last reboot as it will bring back up the installation screen and you will need to acknowledge that it has completed.
Windows Client Configuration
  • On the Windows client machine you will just need to start the web client service
  • Go to the run command or command prompt and type in services.msc
  • When this opens find the web client service in the list
  • Change the start up to automatic and then start the service
Accessing the site via a UNC path

The way in which you access a site via the UNC path will differ based on whether you are using HTTP or HTTPS.
The example below provides the format required for each of these scenarios to access a document library named reports. 

HTTP
\\intranet.contoso.com\sites\sales\reports

HTTPS
\\intranet.contoso.com@SSL\DavWWWRoot\sites\sales\reports







Monday, June 24, 2013

SharePoint 2013 - crawler has insufficient permissions to crawl file shares

While setting up an environment for a demo that would be using a search content source that was crawling a file share I ran across this issue.

You are unable to crawl the data in the share regardless of the NTFS or share permissions you set on the directory.

To resolve this issue, assign the Manage Auditing And Security Log permission to the SharePoint 2013 crawler. To do this, follow these steps on the computer that hosts the file shares:
  1. Click Start, click Run, type gpedit.msc, and then click OK.
  2. Navigate to the following location in the Local Group Policy Editor:
    Computer Configuration\Windows Settings\Security Settings\Local Policies\User Rights Assignment
  3. In the right pane, locate and right-click Manage auditing and security log, and then click Properties.
  4. Click the Add User or Group button in the Manage auditing and security log properties dialog box, and then add the crawl account that the SharePoint 2013 crawler uses.
  5. Click OK in the Manage auditing and security log properties dialog box.
Note If you assign the Manage Auditing And Security Log permission by using a Group Policy Object (GPO), add the crawl account to the GPO.

This information was pulled from the following technet article
http://support.microsoft.com/kb/2817731

SharePoint 2013 - MySite Newsfeed displays "There was a problem retrieving the latest activity. Please try again later"

As I continue to go into more configuration around 2013 it is bringing back the memories of all the strange things that were encountered when deploying 2010 farms not long after it released. Fortunately 2013 has been out for a little while now and there are a lot of good folk's out there that started digging in early and have posted a lot of really good information on the issues they have run across during their configurations.

This is another one of the many issues that I have run across and was fortunate to find someone else out there that posted a good article on the issue and the resolution.

This error was due to the service account that is used to run the UPA service application not having permissions on the UPA it self. After adding the service account that the UPA application pool runs under to the UPA the My Sites news feed's begain showing up correctly.

Thanks to Andy Dawson for posting his detailed article on the issue with the details of the fix. He also provides a handy powershell script so you can automate this more in your farm configurations.

Article for doing it via Central Admin
http://blogs.blackmarble.co.uk/blogs/adawson/post/2012/10/30/SharePoint-2013-MySite-Newsfeed-displays-There-was-a-problem-retrieving-the-latest-activity-Please-try-again-later.aspx#id_0034c967-d124-45ac-a539-1e710d5f2391

Article on powershell script
http://blogs.blackmarble.co.uk/blogs/adawson/post/2012/11/23/Setting-SharePoint-2013-User-Profile-Service-Application-Permissions-Using-PowerShell.aspx

SharePoint 2013 My Site tasks not updating and show old updated date - Last updated at 1/1/1901 12:00AM

While working through some SharePoint 2013 configuration for an upcoming demo I ran across an issue where when you go to your my site and click on the tasks link you will get the error below

Sorry, we are having trouble refreshing your tasks
or
Last updated at 1/1/1901 12:00AM

After doing some research I ran across the following article that described the issue and provided a fix. It seems that the UPA security setup in 2013 has changed from 2010 as adding additional accounts to the UPA was not required.

For me the issue ended up being that the account I used for the work management service application had not been added to the UPA. After doing this and running an incremental crawl the tasks were showing up from other site collections for the user.

Thanks to Hong Gyem for publishing the information on the issue and the fix
http://honggyem.blogspot.com/2013/05/my-tasks-not-updating-seen-following.html

Tuesday, May 14, 2013

SharePoint 2013 - Central Admin site prompts for authentication over and over and fails to load from remote server

Noticed something on a recent 2013 farm build where Central Administration site opened correctly from the server it was running on, but when you tried to open it from another server in the farm or a workstation you were prompted for authentication three times and it never succeeded.

This seemed like a behavior I have seen in the past when working with Kerberos based web applications that did not have the SPN's configured correctly. I checked the authentication provider on Central Admin and found it was set to Kerberos instead of NTLM. Since the client is not utilizing Kerberos I changed to NTLM, saved changes, and after this could access CA from other servers in the farm.

I looked again at my script and realized that I had not set the authentication provider switch correctly so this is why it had been set to Kerberos

Monday, May 13, 2013

Microsoft SQL Server 2012, 2008R2, 2008, 2005, 2000 and 7.0 Builds

Ran across this site and it has all the needed SP build numbers for multiple versions of the product. Also has some other helpful links on how to get build numbers, etc.

Microsoft SQL Server 2012, 2008R2, 2008, 2005, 2000 and 7.0 Builds
http://sqlserverbuilds.blogspot.com/

March and April CU for 2013

It seems that the CU's for 2013 are coming quicker than they did for 2010. The March CU was launched and now has to be installed in order to apply any future updates.

April 2013 CU also released and looking through the details for SP Server it appears that most of the issues are around sites and service applications that were migrated from 2010.

March CU
http://blogs.technet.com/b/stefan_gossner/archive/2013/03/21/march-public-update-for-sharepoint-2013-available-and-mandatory.aspx

April CU
http://blogs.technet.com/b/stefan_gossner/archive/2013/04/27/april-2013-cu-for-sharepoint-2013-has-been-released.aspx

Hopefully we don't see the same issues that we did with 2010 where CU's are released, pulled, and then released again.