Pages

31 March 2010

Server Error in '/' Application :: Parser error

Are you getting this error message after solution deployment :

Server Error in '/' Application.
Parser Error
Description: An error occurred during the parsing of a resource required to service this request. Please review the following specific parse error details and modify your source file appropriately. 


Parser Error Message: The base type 'System.Web.UI.MasterPage' is not allowed for this page. The type is not registered as safe.


Source Error: 
Line 1: <%@ Page Inherits="Microsoft.SharePoint.Publishing.TemplateRedirectionPage,Microsoft.SharePoint.Publishing,Version=12.0.0.0,Culture=neutral,PublicKeyToken=71e9bce111e9429c" %> <%@ Reference VirtualPath="~masterurl/custom.master" %>

<German>
Oder auf Deutsch:

Serverfehler in der Anwendung /.
--------------------------------------------------------------------------------
Parserfehler
Beschreibung: Fehler beim Verarbeiten einer Resource, die für diese Anforderung erforderlich ist. Überprüfen Sie folgende Fehlerinformationen und ändern Sie die Quelldatei entsprechend.

Parserfehlermeldung: Bei der Verarbeitung der Seite ist ein schwerwiegender Fehler aufgetreten. Bitte wenden Sie sich an den Administrator dieser Website, um Hilfe zur Behebung des Problems zu erhalten.

Quellfehler:

Zeile 1:  <%@ Page Inherits="Microsoft.SharePoint.Publishing.TemplateRedirectionPage,Microsoft.SharePoint.Publishing,Version=12.0.0.0,Culture=neutral,PublicKeyToken=71e9bce111e9429c" %> <%@ Reference VirtualPath="~TemplatePageUrl" %> <%@ Reference VirtualPath="~masterurl/custom.master" %>

</German>

Well, don't despair, there is HOPE!
Check your web.config for faulty entries - usually safecontrols area
If that's OK, then check the references that your solution needs - if the ones that are expected to be in GAC are actually in GAC and if the paths for referenced DLLs are in the expected folders.

Be sure that you are NOT deploying a solution which includes a reference to Microsoft.SharePoint.ApplicationPages.Administration.dll on publishing sites. You get the error above.

Anyway - this is another proof - if anyone needs an extra one - that error/exception handling in MOSS 2007 needs improvement.

Is the 14th version of MS Office Server better in this respect?
Is MOSS 2010 more clear in the error/exception messages that it throws?

11 February 2010

Blind text extension for Google Chrome is ready to be installed


Idea behind the extension and how it works
As a web developer, when you work with page layouts you would like to see how it performs when content is added. For example you have a comment area where you would like to see how it performs when a lot of text is added. For that you just need to install the blind text extension, then click comments section on the page you work on - the extension badge will show you the tagName of the selected element - and then click on the extension badge to add the blind text to it.

The extension works just for http protocols no https.
In the option page of the extension you can set your own blind text. 
The default is the "Lorem ipsum dolor ...".

I hope you find it useful.


11 January 2010

IDE for php development

I've been trying in the last half a year a lot of IDEs for php development.
I'm working on a project based on cakePHP and I've been looking to have a free - lightweight IDE which assists me along the way.
I tried Aptana Studio, Eclipse PDT, Edit++ and NetBeans.
All but NetBeans are a bit to "heavy" - see Eclipse PDT or the autocompletion is limited to the core php.

Beautiful autocompletion - almost as beautiful as the one from xcode, which btw. can be used for PHP development, but I think is a bit too much for scripting - fast loading and a nice overview of what scripting covers.

So if you're looking for a good IDE for writing your php code, use NetBeans. They offer a package just for PHP about 25MB for free. See all the features here: http://netbeans.org/features/php/index.html

What do you think? Drop a line.