0

I have a SharePoint 2007 publishing portal that started throwing an error when user's click the Sign Out link. This started happening just this week and I can't tell what changes that have been made that caused this error. I've also noticed that links are no longer redirecting to the correct login page. I've set up FBA using the ADMembershipProvider, along with the LdapRoleProvider.

The direct link to the login page displays without error.

http://portal/_layouts/useraccounts/login.aspx?ReturnUrl=%2f

but a link to http://portal/ will redirect to http://portal/_layouts/Authenticate.aspx?Source=%2f and will displays "Unknown Error". Also, if I remove the query string parameter from the above link, http://portal/_layouts/useraccounts/login.aspx, this also throws an "Unknown Error".

Nothing is getting put in any of the Windows Event logs, but the SharePoint logs has this error.

Exception Type: System.Web.HttpException Exception Message: The referenced file '/_catalogs/masterpage/custommaster.master' is not allowed on this page.

This had been working previously, and there hasn't been any changes to the master file. I'm really stumped as to why this stopped working. If anyone has any idea's on what might be failing, that would be greatly appreciated.

2 Answers 2

1

I found the cause of this issue was that someone had entered a master page in the Pages section of the web.config (ok, that someone was me).

<pages masterPageFile="/catalogs/masterpage/custommaster.master" .../>

A few weeks ago, I was trying to change the default error page so it used my custom master page and forgot to take this segment out. Anyways, don't do that.

0

Sounds like the authenticate portion of your web.config has been changed. It should look something like this:

 <authentication mode="Forms"> 
   <forms loginUrl="/_layouts/useraccounts/login.aspx" /> 
 </authentication> 
1
  • That's what I had thought, but the web.config has this exact section (which I should have included in my original post). It's almost like something is causing SharePoint/asp.net to ignore this section. Jun 25, 2010 at 13:13

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge that you have read and understand our privacy policy and code of conduct.

Not the answer you're looking for? Browse other questions tagged or ask your own question.