Tips: Authentication Prompt for SharePoint sites

by Steve Sofian 25. August 2009 17:40

Recently, I have just setup my new company laptop to run Windows 2008 as a desktop and reinstalling SharePoint in Hyper-V.  Upon completion of the installation and while accessing the Shared Services Provider, I was prompted continuously with authentication prompt, even I have entered the correct user and password.  Subsequently, I am just presented with a blank page.

There is a KB article at http://support.microsoft.com/kb/896861 that describes the same scenario.

This is more of a note to myself to remember to set the DisableLoopbackCheck in the registry:

Steps:

  1. Open your registry editor by going to Start –> Run and enter regedit and click OK.
  2. Go to HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Lsa in the registry editor.
  3. Right-click Lsa, click on New and select DWORD value.
  4. Enter DisableLoopbackCheck and press Enter.
  5. Right-click DisableloopbackCheck and select Modify.
  6. In the Value data box, enter 1 and click OK.
  7. Restart your server.

I would recommend that you do this on at least the Central Administration server, if not all WFE servers.

Be the first to rate this post

  • Currently 0/5 Stars.
  • 1
  • 2
  • 3
  • 4
  • 5

Tags: ,

Tips

Tip: Visual Studio Extensions for WSS on Windows 2008

by Steve Sofian 21. August 2009 07:43

When you install the Visual Studio Extensions for WSS, you are prompted to select a web site or create a new web site, and select an application pool to be used for the new site.  This site will be used for deploying your SharePoint artifacts into SharePoint.

However, if you are doing this on a Windows 2008 server, which is running IIS 7, there is an additional features that will need to be activated.  Otherwise, you will an encounter the following error:

The content type text/html; charset=utf-8 of the response message does not match the content type of the binding (text/xml; charset=utf-8). If using a custom encoder, be sure that the IsContentTypeSupported method is implemented properly. The first 1024 bytes of the response were: '<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">…

Go to your Features in the Server Manager, click on “Add Features”

image

Expand the .NET 3.0 Framework  Features and under the “WCF Activation”, select the “HTTP Activation” and click “Next” to install the feature.

image

So if you are trying to install the 10 SharePoint free themes, you will need to enable the WCF Activation in order to deploy them.

Cheers

Be the first to rate this post

  • Currently 0/5 Stars.
  • 1
  • 2
  • 3
  • 4
  • 5

Tags: ,

Tips

XSLT Tip: Get Current Page URL

by Steve Sofian 21. July 2009 12:18

Quite often we will be writing custom XSL to customize the display of a Content Query Web Part (CQWP) and at times we would want to get the current page URL where the CQWP web part lives.  For example, providing a link to a custom page to display your item as shown below, where the “Details” link is pointing to a custom page.

image

However, you would like to be able to get back to the origin page where the link is clicked.  You could achieve this by doing the following in your custom XSL:

Step 1:  Add the following namespace to your custom XSL:

xmlns:ddwrt=”http://schemas.microsoft.com/WebParts/v2/DataView/runtime

image

Step 2:  Add a parameter name “PageUrl” right after XSL Stylesheet declaration:

<xsl:param name=”PageUrl” />

image

Step 3:  Add a query string to the link:

image

Step 4:  Add a link or button on your custom page and the following OnClick event:

image

Be the first to rate this post

  • Currently 0/5 Stars.
  • 1
  • 2
  • 3
  • 4
  • 5

Tags: ,

Tips

Optimizing SharePoint Sites Checklist

by Steve Sofian 23. June 2009 10:40

Chris O'Brien has compiled a detailed checklist on optimizing SharePoint sites, it is a great reference if you are tweaking performance on site.

Click here to read his article.

Be the first to rate this post

  • Currently 0/5 Stars.
  • 1
  • 2
  • 3
  • 4
  • 5

Tags:

Tips

Tip: Access denied on Publishing Infrastructure

by Steve Sofian 8. April 2009 08:41

This is mainly a note to myself since I keep forgetting this.  If you have deployed SharePoint using least privileges service accounts for your SharePoint, you would be encountering “Access denied” error message when activating the Office SharePoint Server Publishing Infrastructure.

image

You can manually activate Publishing Resources via stsadm

stsadm –o activatefeature –name PublishingResources –url http://website

Currently rated 5.0 by 1 people

  • Currently 5/5 Stars.
  • 1
  • 2
  • 3
  • 4
  • 5

Tags:

Tips

Disclaimer
The opinions expressed herein are my own personal opinions and do not represent my employer's view in anyway.

© Copyright 2010 Steve Sofian
Locations of visitors to this page