Blog Home  Home Feed your aggregator (RSS 2.0)  
.Net Jonesie - Publising a MasterPage and Anonymous Access
A simple programmers blog
 
# Friday, March 14, 2008

I truly wish you haven't been wasting as much time as I have this week with SharePoint anonymous access and a custom master page.

I have a site that uses a custom membership provider, forms authentication, anonymous access and a custom master page.  My problems were many but in the end the main one was getting anonymous access to the home page.  This would always give me an ugly 401 error.

After a good nights sleep and with a clear head, I finally realised that the problem was not with Pages/default.aspx but with it's masterpage which as not deployed correctly.  I had missed putting type="GhostableInLibrary" into the file node of the module:

  <Module Name="MasterPages" Url="_catalogs/masterpage" Path="" RootWebOnly="TRUE" >
    <
File Path="mine.master" Url="mine.master" Type="GhostableInLibrary" IgnoreIfAlreadyExists="FALSE" />
 
</Module>

It's the little things that can really screw you!

TGIF.

Friday, March 14, 2008 9:28:49 AM (New Zealand Daylight Time, UTC+13:00)  #    Comments [1]   Sharepoint  | 
Friday, March 14, 2008 12:34:08 PM (New Zealand Daylight Time, UTC+13:00)
And they wonder why no-one's clamouring to build websites with MOSS as the platform - it should be easy!
Comments are closed.
Copyright © 2010 Peter G Jones. All rights reserved.
DasBlog 'Portal' theme by Johnny Hughes.
Pick a theme: