Misleading Error Message about Trial Period Expiration in MOSS

A very misleading error message that I came across last week.. 

Trial period of my MOSS has expired? No way.. check out the permission and security settings first.

Posted by Colt | with no comments

Microsoft DreamSpark - Free Professional Tools for Students

Just see this DreamSpark program on the Visual Studio home page and it is definitely a good news for students. (Personally, I'm glad to see that this program covers and beneficial to students in China as well :)

Posted by Colt | with no comments
Filed under:

Enable SmartPart with AJAX in SharePoint

I just try SmartPart and enable AJAX functionality in SharePoint tonight, here are few notes:

1. Download and install SmartPart (make sure SmartPart is deployed and affect all WSS sites as shown in the last step of the Setup wizard)
2. Activate SmartPart features (either admin UI or stsadm -o activefeature command)
3. Config AJAX extension in SharePoint (otherwise, you will get an "Unknown server tag 'asp:UpdatePanel' " error)
4. Create a AJAX-enabled website and "user controls"
5. Copy ASCX to UserControls folder to your SharePoint app

All developers are recommended to read the blogs from Jan and Michael first of course.

BTW, I saw another error message "This control does not allow connection strings with the following keywords: ‘Integrated Security’, ‘Trusted_Connection’." in my experimental application. After a quick googling then I change (it's the normal practice BTW) to use a limited rights user account instead of using integrated security in connection string and the problem solved.

Posted by Colt | with no comments
Filed under:

Provisioning User to ADAM in ILM2007

I just finish provisioning a user object to ADAM from AD today, the process is pretty smooth and below is the first piece of codes that I wrote for the metaverse rule extension in ILM2007

// Provision to ADAM
MA = mvEntry.ConnectedMAs["ADAM_MA"];
Connectors = MA.Connectors.Count;
rdn = string.Format("CN={0}", cn);
dn = MA.EscapeDNComponent(rdn).Concat("OU=Alpha Users,DC=ALPHA,DC=COM); 

if (Connectors == 0)   
{
       
  csEntry = MA.Connectors.StartNewConnector(
"user");
       
  csEntry.DN = dn;
       
  csEntry.CommitNewConnector();
   
}
   
else if (Connectors == 1)
   
{
       
  csEntry = MA.Connectors.ByIndex[0];
       
  csEntry.DN = dn;
   
}
   
else
   
{
       
  LogAndThrowUnexpectedDataException(
"Multiple connectors in MA");
   
}

The code is obviously incomplete, but there are lots of useful resources on the net and below are the links that I read today:

If you are new to MIIS / ILM like me, make sure you check out the first article which is extremely useful, easy to read and understand.

Posted by Colt | with no comments
Filed under:

IIS Feature is missing during SQL 2005 Installation

This is not the first time for me to see this message, so I think it may be a good idea to blog about it for future reference.

The error message is:

Microsoft Internet Information Services (IIS) is either not installed or is disabled. IIS is required by some SQL Server features. Without IIS, some SQL Server features will not be available for installation.

Last time I saw this error when I try to install SQL 2005 in my Vista environment. I do have IIS installed in my Vista and I have no idea what's wrong with this error message. (Solution can be found here BTW)

Today, I see this error again in my clean Win2K3 server box. (ha) It is much easier for me to solve this problem because the cause is just because IIS is not enabled by defafult in Win2K3. So I just select and enable IIS in Add/Remove Windows Components then the SQL 2005 installation go well.

Posted by Colt | 1 comment(s)
Filed under:

Install WSS Tools: VS 2005 Extensions on Vista

Windows SharePoint Services 3.0 Tools: VS 2005 extension can improve the productivity of developers because it comes with a lists of useful project and item templates. However, this tool is only limited to OS of either Win Server 2003 or Win Server 2008.. If you are running Vista or develop SharePoint solution remotely, you may want to take a look at the hack from this blog post.

P.S. The latest version of WSS Tools: VS2005 Extension should be V1.1, instead of V1.0 as mentioned in the blog post.

Posted by Colt | 1 comment(s)
Filed under:

Note on Customizing Content Query Web Part

Content Query Web Part (CQWP) is a powerful feature in SharePoint, where users can create custom view of data that is queried from various sources, lists, libraries, and present all in one web part. One of my tasks yesterday is to create a content query web part, and query the contents from two sub-sites. Specifically, I have 2 calendars in 2 sub-sites and I have to query all events and combine into a master calendar in the top site (Of course I can make use of the great filtering, sorting and grouping features in CQWP).

After adding the CQWP, my next step is to customize the layout because the default one is too plain. I google and find all these useful articles:

One of the techniques in customizing CQWP layout is to make use of internal field name and modify CommonViewFields in the exported .webpart file. I follow all steps, modify the .webpart and xsl files as I wish, but I still can't display the content in my CQWP (I can see some other default fields like Title though).

Later, I find the bug is at the key element - CommonViewFields - It does not allow SPACE in the value string. For example:

Wrong:  <property name="CommonViewFields" type="string">Title, Text; Description, Note;</property>

Correct: <property name="CommonViewFields" type="string">Title,Text;Description,Note</property>

My note is that we developers cannot add SPACE when typing the value, or even anywhere in the tag. And, we should not add a semi-colon at the end of the string.

P.S. After customizing the layout and fields on the CQWP, we will most probably need to format the field, such as changing the time format of a DateTime field, number of decimal points etc, and here is a very useful reference article: Customizing the Content Query Web Part XSL

Posted by Colt | 2 comment(s)
Filed under:

Visual Studio extensions for SharePoint - Developer User Guide

I was engaged in a SharePoint workflow project recently, so I prepare and boost my learning in SharePoint technology. I got new laptop and VS2008 (excited), but then I heard that the extension for VS 2008 will only be available in June 2008 (Today is still May!)

So I install VS2005, the extended SharePoint tool and the following "mandatory" components:

Of course, I need to check out the user guide of VS extension that just released yesterday.

Please feel free to drop me any useful resources or website so as to fasten my learning process. :)

Posted by Colt | with no comments
Filed under: ,

Visual Studio 2005 Team Foundation Server Power Tools

If you are a typical TFS user like me, then you must bookmarked these 2 links / tools already:

  1. Visual Studio 2005 Team Foundation Server Power Tools
  2. Visual Studio Team System Web Access (formerly known as TeamPlain)
Colt
Posted by Colt | with no comments
Filed under:

Opening Work Items in Excel/Project Failed with Office 2007 (TF80042)

 I try to open a (collection) work items in Excel today but I got the following error:

I was thinking is it because I am using Excel 2007 instead of  Excel 2003?

No way, it works fine after I read this post and enable .NET programming support!

Posted by Colt | with no comments
Filed under: ,
More Posts Next page »