This project is read-only.

Definitions Validation

Note: Validation is added in Release 1.1

When you pass definition of a Ribbon tab or contextual tab group into Ribbon Utils, this definitions are first of all will be validated using Ribbon Utils internal validation routines.

Validation is performed at run-time, when your Application Page or WebPart Page is loaded into one's browser. If validation is failed, ValidationException will be thrown, and Error page will be displayed. To get error description, you will usually need to observe your ULS logs, located in "C:\Program Files\Common Files\Microsoft Shared\Web Server Extensions\14\LOGS" folder.

Also you can configure IIS to display error text right in the browser. In this case, you need turn CustomErrors setting to "Off" or "RemoteOnly" value in your web.config file:

 <customErrors mode="Off" />


 <customErrors mode="RemoteOnly" />

RemoteOnly option allows to display errors only to localhost clients.

Actually you need to change two web.config files:

  1. For Application Pages, web.config file is located in "C:\Program Files\Common Files\Microsoft Shared\Web Server Extensions\14\TEMPLATE\LAYOUTS" folder.
  2. For Webpart Pages, web.config file is located inside "inetpub" folder, under your portal virtual directory folder. For instance, if you have portal on the default, 80 port, you will need "C:\inetpub\wwwroot\wss\VirtualDirectories\80\web.config" file.

After these changes, you will see the error message right in your browser, for example:


Last edited Apr 11, 2011 at 1:14 AM by omlin, version 4


No comments yet.