Dec 04

While working with Visual Studio 2008 / VseWSS projects I occasionally see the following COM exception preventing the VS project from packaging or deploying to SharePoint:

Error: System.Runtime.InteropServices.COMException
System.Runtime.InteropServices.COMException (0×80004005): Error HRESULT E_FAIL has been returned from a call to a COM component.

It turns out, at least in my experience, that this is caused by an error within the manifest.xml file which typically is due to a renamed file or a change in the project’s directory structure.

To resolve:

  1. Manually edit the manifest.xml correcting any errors and save.
  2. Close Visual Studio 2008 and then re-open the project.

The VseWSS project should now package/ deploy without error.

Tagged with:
Nov 30

On a fresh install of Windows Server 2008, MOSS 2007, Visual Studio 2008, and the Visual Studio Extensions for Windows SharePoint Services I received the following error when trying to deploy or package a solution with VseWSS:

The content type text/html; charset=utf-8 of the response message does not match the content type of the binding (text/xml; charset=utf-8). If using a custom encoder, be sure that the IsContentTypeSupported method is implemented properly. The first 1024 bytes of the response were: ‘<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">

Apparently the VseWSS CTP 1.3 uses the WCF in the deployment process and requires the Windows Server 2008 WCF HTTP Activation feature to be activated. To activate the WCF feature in Windows Server 2008 use the following steps:

  1. Open ‘Server Manager’ from Administrator Tools.
  2. Highlight the ‘Features’ node under Server Manager.
  3. Click the ‘Add Features link on the right-hand side of the screen.
  4. Expand the ‘.NET Framework 3.0 Features’ node.
  5. Expand the ‘WCF Activation’ node.
  6. Check ‘HTTP Activation’ (required). Optionally you mat wish to check the ‘Non-HTTP Activation’ feature if you will be using WCF projects that utilize this, but it is not required for the VseWSS to work.
  7. Click Next to install.
Tagged with:
preload preload preload