If you ever run into this condition, where the width of the tabs in the SharePoint 2010 Ribbon are not being sized properly.

For example:


You can easily workaround this issue by:

In IE8, change Zoom factor to something other than 115 or 125%, like this:

View –> Zoom –> 100%


Problem resolved:


Microsoft has confirmed this is an known issue with IE8 and a Browser zoom factor of 115/125%,

and provided me the above workaround. But good news I verified the tabs view correctly when

browsing with the IE9 release candidate with a zoom factor.

 
 

HTH someone.

Tom

Posted by: tchmiel | February 2, 2011

70-576 Study Materials

Last week, I passed my 70-576 PRO: Designing and Developing Microsoft SharePoint 2010 Applications exam.

When studying for this exam, I found very little in term of guidance on how to study for this exam.

I see that Coskun Cavusoglu, Geoff Varosky, Mark Rackley, Shannon Hill and Darrin Bishop are working on the

SharePoint 2010 Developer’s Certification: Certification Toolkit for Exams 70-573 and 70-576, but it won’t be published until September of 2011. Unfortunately, a little too late for me to take advantage!

I could only find one study guide and that was Pedro Pinto’s 50-576 Study Guide, so I thought I would share my study materials:

Besides that, understanding the Microsoft SharePoint 2010 SDK, as well as some experience designing solutions on SharePoint, and you should be ready to pass.

To give you some incentive to go do it now, see the second shot and save up to 20% on your exams offer. Hurry, both exams must be completed by June 30, 2011.

Good Luck on your exam.

–Tom

Posted by: tchmiel | February 2, 2011

70-573 Study Materials

Back in November, I passed the 70-573 TS: Microsoft SharePoint 2010, Application Development exam. Becky Bertram, Mike Smith, and Wesley Hackett have some great study guides for the 70-573. I found that all three of these study guides had valuable, but slightly different material, I would definitely recommend them.

Becky Bertram’s Study Guide

Mike Smith’s Study Guide

Wesley Hackett’s Study Guide 

Thanks Becky, Mike, and Wesley for putting these together.

In addition, I also went thru the following materials:

Professional SharePoint 2010 Development – a great study guide, as week as a good developer reference book

Microsoft SharePoint 2010 SDK – of course, the MSDN documentation on the SDK

Getting started Development on SP2010 videos

Channel 9 videos – SharePoint Developer 2010

SharePoint 2010 Hands-on Labs in C#

I also participating in a SharePoint 2010 developer course taught by Microsoft, when SharePoint 2010 was still in Beta.

Hope this helps you pass your exam.

–Tom

Problem Statement

When creating a custom content type, derived from the Document Content Type with one additional text field, using Visual Studio 2010 and deploying via F5, the first time deployment will work fine, second time failed with this error:

Error occurred in deployment step ‘Activate Features’: The field with Id {a6a841d7-4067-4519-b794-e25ac438e9cf} defined in feature {a6192d76-512f-48de-9284-251b49902345} was found in the current site collection or in a subsite.

 Microsoft has acknowledged this as a problem, and is working on a fix.

 Workaround

 To workaround this problem and to continue to enjoy your Visual Studio 2010 debugging experience, you will need to follow these steps.

1. F5 (Deploy the solution)

2. Shift +F5 (Retract the solution)

3. Again F5. This time it will fail.

4. Open the task manager and kill VSSPHost4 process.

(Ideally we need to kill the VSSPHost4 process any time you see the error message during the F5 deployment.)

To make it easier on myself, I kill the VSSPHost4 process from an SharePoint 2010 Management Shell, run as Administrator, like this:

stop-process -processname vssphost4 -force

5. Now F5 and the solution will get deployed successfully.

 You could also avoid this error, but installing and deploying the feature outside the Visual Studio 2010 debugger, either thru STSADM or thru PowerShell!

Hope this saves you some time.

Tom

 
 

Details on How to Reproduce, if you care.

 
 

  1. In Visual Studio 2010, create a new “ContentType” project,

     
     


 
 

  1. Specify the site and solution type.

    The site should be a site collection, not a subsite.

    The solution should be a farm solution.

  2. Inherit this new content Type from the Base Content Type of “Document”
  3. Replace the contents of Elements.xml with this contents:

     
     

    <?xml version=”1.0″ encoding=”utf-8″?>

    <Elements xmlns=”http://schemas.microsoft.com/sharepoint/“>

    <!– Parent ContentType: Document (0×0101) –>

     
     

    <Field ID=”{D6A841D7-4067-4519-B794-E25AC438E9CF}”

    Name=”MyCustomField”

    StaticName=”MyCustomField”

    DisplayName=”MyCustomField”

    Description=”MyCustomField”

    Group=”abc”

    Type=”Text”

    SourceID=”http://schemas.microsoft.com/sharepoint/v3” />

     
     

    <ContentType ID=”0x010100b19e17b94ee044778dcffe8f92ce18e6″

    Name=”ContentTypeProject2 – ContentType1″

    Group=”Custom Content Types”

    Description=”My Content Type”

    Inherits=”TRUE”

    Version=”0″>

    <FieldRefs>

    <FieldRef ID=”{D6A841D7-4067-4519-B794-E25AC438E9CF}” Name=”MyCustomField”/>

    </FieldRefs>

    </ContentType>

    </Elements>

     
     

  4. Hit F5 to compile and deploy this Content Type.

 
 

  1. After the SharePoint site is displayed, verify the content type exists.

 
 

  1. Back in VS2010, hit Shift-F5 to stop debugging.

     
     

  2. Hit F5 to redeploy this Content type and it will fail with the following error:

 
 

Error occurred in deployment step ‘Activate Features’: The field with Id {a6a841d7-4067-4519-b794-e25ac438e9cf} defined in feature {a6192d76-512f-48de-9284-251b49902345} was found in the current site collection or in a subsite.

 
 

  1. Now edit the elements.xml file, by changing the GUID, and set the Overwrite attribute to TRUE, you will not be able to deploy and reploy over and over again.

     
     

    <?xml version=”1.0″ encoding=”utf-8″?>

    <Elements xmlns=”http://schemas.microsoft.com/sharepoint/“>

    <!– Parent ContentType: Document (0×0101) –>

     
     

    <Field ID=”{A6A841D8-4067-4519-B794-E25AC438E9CF}”

    Name=”MyCustomField”

    StaticName=”MyCustomField”

    DisplayName=”MyCustomField”

    Description=”MyCustomField”

    Group=”abc”

    Type=”Text”


    Overwrite =”TRUE”

    SourceID=”http://schemas.microsoft.com/sharepoint/v3” />

     
     

    <ContentType ID=”0x010100b19e17b94ee044778dcffe8f92ce18e6″

    Name=”ContentTypeProject2 – ContentType1″

    Group=”Custom Content Types”

    Description=”My Content Type”

    Inherits=”TRUE”

    Version=”0″>

    <FieldRefs>

    <FieldRef ID=”{A6A841D8-4067-4519-B794-E25AC438E9CF}” Name=”MyCustomField”/>

    </FieldRefs>

    </ContentType>

    </Elements>

I tried to download and install the standalone version of SQL Server 2008 R2 Management Studio Express on my Windows 7 64bit development box that I use for SharePoint development, but no matter what I tried I couldn’t get it installed.

 
 

Then I vaguely remembered reading a blog article, a while back on the Microsoft Web Platform Installer 2.0, and wondered if this would help me. I [ googled |binged] and found Scott Hanselman’s blog article, WebPI20 and VSWebDeveloper2010Express. Well, and look at that – Scott had almost the same problem.

 
 

To reiterate:

  1. Download the Microsoft Web Platform Installer 2.0
  2. Select the Web Platform tab, the Customize link under the Database heading.

 
 


 
 

  1. Click the “SQL Server R2 Management Studio Express ” Option and click Install.

 
 


 
 

It took the installer about 20 minutes, and a reboot was necessary, but it works like a champ.


 
 

 
 

One thing I did notice is that the web installer was smart enough to figure out that I had SQL Server Express R2 and it should SQL Server 2008 R2 Management Studio Express, whereas Scott’s had SQL Server Express 2008 w/ SP1 installed, thus the web installer install the SQL Server 2008 Management Studio Express version.

 
 

Thanks, Scott – your blog is a great!

Tom

Posted by: tchmiel | June 28, 2010

Windows Update fails with 8007000D

If you noticed that Windows Update fails w/ the Code 8007000D ERROR_INVALID_DATA – The data is invalid,

 
 


 
 

For Windows 7, 64bit, I installed the System Update Readiness Tool for Windows 7 for x64-based Systems (KB947821) [April 2010] . The download links for all other Oses can be found here. This tool didn’t resolve the issue by itself.

 
 

I then located this quite old post on the forum: Windows Auto update problem Error 8007000D

Note: don’t bother using the ToggleMUURl.vbs to the beta site as it quite old.

 
 

Rather look at the registry change half way down the page.

You can find a downloadable copy of the registry here:

http://www.technipages.com/vista-error-8007000d-during-windows-update.html

 
 

Apply this registry change, and restart your machine, and run Windows Update again.

It resolved my issue.

 
 

Hope it helps someone else.

– Tom

Applies to: SharePoint 2010 RTM, Visual Studio 2010 RTM

 
 In Visual Studio 2010, SharePoint 2010 project require you be running Visual Studio 2010
as an Administrator, but VS2010 doesn’t tell you until you try to actually create this
project and then you will get the following message:
 


To avoid this issue each time you create a SharePoint project, you can always
start Visual Studio 2010, but right clicking on the Microsoft Visual Studio 2010
program on the Start Menu, select Properties, and the Compatibility tab and
click the “Run this program as an administrator”, click Apply, then OK.


Posted by: tchmiel | January 25, 2010

Blogging Again on SharePoint 2010

Haven’t blogged for a while. Most of the issues I have found with SharePoint 2007 have already been blogged about elsewhere, and since I could easily google or bing the answer, I haven’t felt the need to repost. However, I am back and hope to blog more about SharePoint 2010 and we identify issues and workarounds w/ the beta.

 
 

–Tom

Applies to SharePoint: 2007

Repost from: 12/2007

 
 

I thought as the new year approaches I would rebuild one of our test wssv3 virtual machines

using the latest bits available thru my MSDN subscription.

 
 

I installed Windows 2003 Server R2, with Service Pack 2,

ran Windows Update to get the latest updates

then configured my server to be an Application server,

Click “Enable ASP.NET”

Then tried to install Windows SharePoint Services v3 with Service Pack 1 (slipstream)

 
 

This installer complained that I didn’t have ASP.NET 2.0 installed.

A quick check of IIS Manager, web service extensions and sure enough

ASP.NET v2.0.50727 was listed not there.

 
 

A quick call to:

C:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\Aspnet_regiis.exe -i

Installs ASP.NET 2.0 on the machine and the Windows SharePoint Services v3 with Service Pack 1 (slipstream)
installed properly.

Posted by: tchmiel | January 25, 2010

Bizarre CHM file bug

Applies to CHM Files:

Repost from: 12/2007

 
 

Background

For the last several months, I have not been able to open .chm files that I copied down to my local box. Not sure exactly when it started happening, but my guess is after a windows update in the last couple of months. I am familiar of the changes to the .chm file behavior in XP SP2, (security update 896358 or Windows Server 2003 Service Pack 1) as described in KB 90225. Didn’t see to be related to this.

 
 

When I would click on the file and tried to open it, I would get the HTML Help window up and a File Download – Security Warning dialog asking me to Open, Save, or Cancel.

If I click Open, 

I get a File Download dialog, then it goesback to the HTML Help and File

Download -Security Warning dialogs. An infinite loop.

If I Click Save,

I get the standard Save As dialog, and I save to another

location and try to open it there, I get the infinite loop above again.

 
 

No one else was seeing it in the office, then I narrowed the problem down as it looked as if it followed me around with my AD account. If I logged on to any other machine, I could not open at .chm files. All other users w/ accounts on the machine could as long as they were not in any of my directories. Happens on XP and Vista Operating Systems.

 
 

Finally, it dawned on me. My domain account is Domain\Tom.Chmielenski, notice the .chm characters. Tried my wife’s account. Wha La! She has the same Problem. With the help of my colleague, Jason, we were are able to narrow the problem down to a simple problem. The problem has been sent to Microsoft.

 
 

Summary of the problem

.CHM files can not be opened if the filepath includes the [.chm] characters within it.

 
 

Very easy to reproduce the problem

  1.     Make a directory C:\TEST_CHM,

    [Syntax is TEST {UnderScore} CHM]

  2.     Copy any .chm file to this new directory.
  3.     Launch the .chm file (it will work fine)
  4.     Rename c:\TEST_CHM to be c:\TEST.CHM

    <!– Syntax is TEST {Period} CHM] –>

  5.     Try to open the .chm file. (it causes an infinite loop).

     
     

Workaround

Copy the .chm file to a different directory where the .chm is not in the path.

 
 

 
 

 `

 
 

Older Posts »

Categories

Follow

Get every new post delivered to your Inbox.