Pages

Splitnut

22 April 2013

Funny error messages

And again, Microsoft Active Directory error messages are funny :




Or MS DEP thinks that Visual Source Safe is evil:



Rock on!


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.

03 December 2009

MOSS Search

It's a crap that the MOSS search is using the IE Language setting to filter out search results.
Really crap! So, if you company is using some default Language setting in the IE and everybody is happy, but when an outsider comes in-house and uses the MOSS search, but with a different language setting in IE than yours - then he's doomed! He finds nothing!

Way to go MS!

12 November 2009

SAP iViews in MOSS

Found this [PDF] - offering a solution for the iframe based standard MOSS iView webpart - causing the "poor" SAP iView to reload itself.

The solution is to use the object tag to load the html of the iView, instead of using iframe.

Drawback of the object html tag is that requires confirmation from the user in IE, but with the help of the GPO policies this can be eliminated.

<object id="iView_container" name="iView_container" type="text/html" data="http://myserver/iview/url" />

25 September 2009

Data Execution Plan galore

Windows wants to protect my computer so it shut down Internet Explorer. Wise I would say - even if it is IE 8.


26 June 2009

Lookup fields in MOSS and the MS IE Javascript error

If the lookup list has more then 20 items(see the reflector code) and you happen to use Internet Explorer to edit a list item having a filed of type lookup, then you might have some problems.
There will be a javascript error and no way for you to pick the value that you want, because MOSS decides to help you by adding a input text field used for looking up your value as you type and emulates an select box picker, by positioning a layer containing filtered values.

The positioning fails because the the input text box is nested in a table and the offsetParent/offsetLeft/offsetTop are failing (known IE bug).

So in the core.js there are two functions AbsLeft and AbsTop which you'll have to override in order to get an aproximate positioning.


03 March 2009

Ebay - This offer cannot be displayed on the mobile device

A few days ago I ran into this:



I wonder why is that ebay? Are the mobile devices so "scarry"? I mean, we are in 2009 with a few strong mobile platforms on the market like Symbian, Windows Mobile, iPhone etc.
Concentrate, will you? Don't loose them from your focus, ok? 

02 March 2009

MOSS 2007 Profile Properties Import Tool

I've used the tool to import, from one development MOSS machine to another, the properties set of the user profile.
It went fine. The only problem is if the servers are having different "custom source" for the profiles import they loose their bindings - and then they are read only - you cannot change the mappings to the other customer source fields.

From Codeplex http://www.codeplex.com/Release/ProjectReleases.aspx?ProjectName=sptoolbox&ReleaseId=8728

The tool "Shared Services Provider Property Creation" http://soerennielsen.wordpress.com looks more complete since it syncs more.

Work-work!