Error: The base type 'System.Web.UI.MasterPage' is not allowed for this page
Posted
by Patrick Olurotimi Ige
on Geeks with Blogs
See other posts from Geeks with Blogs
or by Patrick Olurotimi Ige
Published on Mon, 15 Mar 2010 00:22:07 GMT
Indexed on
2010/03/15
0:29 UTC
Read the original article
Hit count: 791
I came across this error when i was trying to ajaxify my sharepoint site.
After adding the AjaxifyMoss from the codeplex developed by Richard Finn.
And tried loading my site i got the error
Error: The base type 'System.Web.UI.MasterPage' is not allowed for this page
So i decided to check the web.config and i noticed the SafeControl tag doesn't have the .Net 2.0 assembly included despite the fact i added both vsersios 2.0 and 3.5.
Its possible the.Net 3.5 assebply overwrote the 2.0.
Anyway after i added the below which is the 2.0 verison
<SafeControl Assembly="System.Web, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" Namespace="System.Web.UI" TypeName="*" Safe="True" AllowRemoteDesigner="True" />
And refreshed my page. It worked
© Geeks with Blogs or respective owner