Click on this icon to open the XML page.Tom Van Gaever - Blog
Search:   

Public Key Token from signed assembly 
Friday, July 17, 2009, 11:46
Posted by Administrator
This is something I stumbled upon recently and most of you already have this option already in their tools menu in VS. this post is especially to those that just like me did not know it.

While developping a custom layouts page, you need to specify the assembly name where the asp page his code behind class can be found.

something like: Namespace, Version=1.0.0.0,Culture=neutral, PublicKeyToken=****************

To retrieve this token you could drag and drop your assembly in the gac and copy the token from there. Sn.exe combined with external tool in visual studio offers you a simple menu that displays the public key token of the current signed assembly in no time.

In Visual Studio 2005, click Tools -> External Tools...
Click Add and enter the following into the different fields as displayed in the following screenshot:
Title: Get Public Key
Command: C:\Program Files\Microsoft Visual Studio 8\SDK\v2.0\Bin\sn.exe
Arguments: -Tp "$(TargetPath)"
Uncheck all options, except Use Output window\



add comment ( 4 views )   |  permalink   |  related link   |   ( 3 / 685 )
AfterProperties.PercentCompleted: Input string was not in correct format. 
Wednesday, July 15, 2009, 12:14
Posted by Administrator
A small tip while using the OntaskChanged activity, if you want to check if the assigned has completed his task don't use the AfterProperties.PercentComplete property .

Problematic situation:
A user modifies the task and the OntaskChanged_Invoked eventhandler is triggered. In this eventhandler the system checks is the user completed the task by setting the PercentCompleted formfield.
When the user doesn't uses the PercentCompleted field, but he uses the Status field. The workflow will crash because the code that is written behind the PercentComplete property of the AfterProperties object uses the StringToNumber(...) method.

//This will crash if the user leaves percentcomplete empty
string perComp = AfterProperties.PercentComplete;


Solution
AfterProperties contains a hashtable called ExtendedProperties, this hashtable has a guid as key(these guids can be found here ) and the current value as a string.By using this hashtable the system can first check if the Guid is available and if the stringvalue is valid.

//Get the percentcompleted value of the task by using the hashtable   
string perComp = AfterProperties.ExtendedProperties(Microsoft.SharePoint.SPbuiltInFieldId.PercentComplete);
if(String.IsNullOrEmpty(perComp)){
...

You should also check if the user didn't use the status combobox to set his task as completed.

//Get the status value of the task by using the hashtable
string status= AfterProperties.ExtendedProperties(Microsoft.SharePoint.SPbuiltInFieldId.TaskStatus);
if(status == "Completed"){
...

2 comments ( 27 views )   |  permalink   |   ( 2.9 / 558 )
How to download Internet Explorer 8 for Windows 7 E without any Web browser?  
Wednesday, July 15, 2009, 11:08
Posted by Administrator
Windows 7 RTM will be available in the next days and for all European users there will be no Internet Explorer 8. I’m not sure if there will be an option to install Internet Explorer from the setup DVD or if we can simple add this as a Windows feature in control panel.

Michael Schwarz has written a nice batch to help you.
add comment ( 3 views )   |  permalink   |   ( 3 / 522 )
SharePoint 2010 : 2010 (Technical Preview) Developer Documentation 
Tuesday, July 14, 2009, 19:05
Posted by Administrator
New information available about the new SharePoint version 2010.

Summary: The Ribbon is now included in the user interface for Windows® SharePoint® Services “14” and Microsoft® SharePoint® Server 2010. It can be extended by using a combination of XML and ECMAScript (JavaScript, JScript). Customizations to the Ribbon are created by using the Feature infrastructure and can be deployed by using the Windows PowerShell™ command-line interface, a solution package, or a user custom action.


Customizing the Ribbon in Windows® SharePoint® Services 14

SharePoint Products and Technologies: 2010 (Technical Preview) Developer Documentation
Microsoft SharePoint Products and Technologies Protocol Documentation

add comment ( 5 views )   |  permalink   |   ( 3 / 594 )
SharePoint 2010 : Sneek Peek 
Monday, July 13, 2009, 20:59 - SharePoint
Posted by Administrator
http://sharepoint.microsoft.com/2010/Sn ... fault.aspx


add comment ( 3 views )   |  permalink   |   ( 3 / 556 )

<<First <Back | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | Next> Last>>