.NET Tutorials, Forums, Interview Questions And Answers
Welcome :Guest
Sign In
Win Surprise Gifts!!!

Top 5 Contributors of the Month
Gaurav Pal
Post New Web Links

"significant whitespace" build errors in workflows with custom designers (with attached sample proje

Posted By:      Posted Date: October 08, 2010    Points: 0   Category :Windows Application
I'm using some custom designers in a workflow and occasionally get a combo of errors that don't make much sense.

On the designer surface, the following error is shown:

Cannot create unknown type '{clr-namespace:HurrDurr.Activities}MyActivity'.
System.Xaml.XamlObjectWriterException: Cannot create unknown type '{clr-namespace:HurrDurr.Activities}MyActivity'.
   at System.Xaml.XamlObjectWriter.WriteStartObject(XamlType xamlType)
   at blah blah yadda yadda...

In the error list, I get the following error:

Error 1 XC1020: Build error occurred in the XAML MSBuild task: 'The value ' ' contains significant white space(s) but "xml:space = preserve" cannot be written down on the member '{clr-namespace:HurrDurr.Activities;assembly=HurrDurr}MyActivity.Variables'.'

So the designer says the type is unknown, and the error list says I have some issue with significant whitespace.  Except I don't, or cannot find it.

View Complete Post

More Related Resource Links

Windows Workflow: Build Custom Activities To Extend The Reach Of Your Workflows


This article covers the core components required for building custom activities in Windows Workflow Foundation.

Matt Milner

MSDN Magazine December 2006

Sample: Creating and Publishing Excel 2010 Documents with Custom SharePoint 2010 Workflows

Explore the code as you learn to generate Excel spreadsheets inside SharePoint workflows and publish them to SharePoint sites.

Errors while Build the "Forms Authentication Sample" using Visual Studio 2010

Hi All,

      While Build the solution Custom Security Project getting Errors

I am using SharePonit 2010 with Sql Server 2008 R2.

1. I configured Reporting Services and able get the reports using with Windows authentication.

2. Now my web application is Claims Based. Using with Claims Based Auth i need to get the reports. Since 5months i had this task in pending.

I need to configure the Reporting Services using with Forms Auth.

For this  recently i read this link http://technet.microsoft.com/en-us/library/aa902691%28SQL.80%29.aspx#ufairs_topic1

After downloading Code file from above link opened .sln file and converted.

Here added reference 'Microsoft.ReportingServices.Interfaces.dll'  from   C:\Program Files\Microsoft SQL Server\MSRS10_50.MSSQLSERVER\Reporting Services\ReportServer\bin this path.

While i am going for build getting these two errors

 1. 'Microsoft.Samples.ReportingServices.CustomSecurity.Authorization' does not implement interface member 'Microsoft.ReportingServices.Interfaces.IAuthorizationExtension.CheckAccess(string, System.IntPtr, byte[], Microsoft.ReportingServices.Interfaces.ModelItemOperation)' C:\Program Files (x86)\Microsoft SQL Server\MSSQL\Reporting Services\Samples\Extensions\FormsAuthe

Form Filler: Build Workflows to Capture Data and Create Documents


Learn how to create a workflow that uses InfoPath forms and other office documents for passing data to targeted activities and for use in Office documents.

Rick Spiewak

MSDN Magazine June 2008

Enterprise Library: Take Exception To Critical Errors With Custom Application Blocks


Enterprise Library is a collection of application functionality blocks that you can re-use in your application for common functionality you'd otherwise have to write again and again. Here Jay Hilyard explains how to use them.

Jay Hilyard

MSDN Magazine September 2006

Inside MSBuild: Compile Apps Your Way With Custom Tasks For The Microsoft Build Engine


Learn how you can use MSBuild to customize your builds. Since it ships as a part of the .NET Framework, you don't even need to have Visual Studio installed on your machine.

Sayed Ibrahim Hashimi

MSDN Magazine June 2006

The Perfect Host: Create And Host Custom Designers With The .NET Framework 2.0


The .NET Framework 2.0 introduces a set of classes that can be used to host designers right out of the box. With the understanding of designers you'll glean from this article, you'll be ready to host them in your own apps.

Dinesh Chandnani

MSDN Magazine March 2006

Office XP: Build a Custom DLL to Expose Your Objects and Services Through Smart Tag Technology


Smart Tags is a new technology delivered with Office XP that makes it easy for users to complete common tasks on familiar and relevant data regardless of the application they are using. Microsoft provides tools to make it easy to roll out simple Smart Tag applications using XML as a backbone. The Smart Tag SDK provides the detail needed to build a COM automation server for Smart Tags in Visual Basic or Visual C++. This article brings the reader through the SDK to outline the process of building a Smart Tag DLL using the tag recognizer and the action provider to create customized user experiences.

Paul Sanna

MSDN Magazine January 2002

Windows UI: Our WinMgr Sample Makes Custom Window Sizing Simple


Programmers using Visual Basic have always had an advantage over C++ programmers when it comes to component and window sizing. There are many third-party Visual Basic-based solutions to this age-old problem, but unfortunately, there are few elegant alternatives for the C++ crowd, short of using a full-fledged windowing toolkit. This article explains how to circumvent the tedious task of hardcoded pixel arithmetic. It starts by introducing a window sizing rules system, and then moves on to show how CWinMgr, a data-driven class, can intelligently manage an MFC application's window sizing.

Paul DiLascia

MSDN Magazine July 2001

Freeform Custom Activity Designers using ICompositeView

Hello,   I'm using code posted here http://blogs.msdn.com/b/tilovell/archive/2009/12/31/freeform-custom-activity-designers-using-icompositeview.aspx hosted in a designer taken from Windows Communication Foundation (WCF) and Windows Workflow Foundation (WF) Samples for .NET Framework 4( UsingWorkflowItemPresenter.sln). However, I can't drag & drop Activity1 given as sample into Canvas or any other kind of activity for that matter. Could you tell me what I'm doing wrong, please? Also, I would like to know how I could make the Canvas activity fill the WorkflowDesigner and not being able to be deleted. Thank you

Should I use WWF for custom document approval workflows?

Before I dive into yet another behemoth MS framework, maybe a little guidance for the simple but dynamic workflows that I will need to be dealing with. Document approval with n approvers both sequential and parallel QA assignment of helpdesk case to check that case was handled properly (needs to add disposition). Collaboration workflow where domain object may pass between several people to complete pieces of the job and result in a fully-qualified dohickey when the workflow ends. My strong impression from some of the other posts I have read here is that WWF would be overkill and possibly even a nightmare compared with a home-grown solution here.  Our use cases primarily will deal with activities going to people to complete and pass to the next level... Thanks a ton! Dave

Sample: Custom BCS Connector Sample

Explore the code as you learn how to create a Business Connectivity Services (BCS) connector to integrate data sources into SharePoint Server 2010.

Custom workflows don't start via user accounts

Hi! Topic started here, http://social.msdn.microsoft.com/Forums/en-US/sharepoint2010setup/thread/a51673e5-ec13-408d-b512-4cc98d84fdd8 As adviced copy it  to this subforum. I have the following problem. Custom workflows dont start. In the log there are following errors: Workflow Infrastructure 72fv Unexpected AutoStart Workflow: System.ArgumentException: New instances of this workflow template are currently disallowed. at Microsoft.SharePoint.Workflow.SPWorkflowManager.StartWorkflowElev(Object context, SPWorkflowAssociation association, DateTime elevationTimeUtc, SPWorkflowEvent startEvent, SPWorkflowRunOptions runOptions) at Microsoft.SharePoint.Workflow.SPWorkflowAutostartEventReceiver.<>c__DisplayClass1.<AutoStartWorkflow>b__0(SPSite superUserSite, SPWeb superUserWeb) Workflow Infrastructure 72fv Unexpected AutoStart Workflow: System.NullReferenceException: Object reference not set to an instance of an object. at Microsoft.SharePoint.Workflow.SPWorkflowManager.GetEngine(SPWorkflowAssociation association) at Microsoft.SharePoint.Workflow.SPWorkflowManager.StartWorkflowElev(Object context, SPWorkflowAssociation association, DateTime elevationTimeUtc, SPWorkflowEvent startEvent, SPWorkflowRunOptions runOptions) at Microsoft.SharePoint.Workflow.SPWorkflowAutostartEventReceiver.<>c__DisplayClass1.<AutoStartWorkflow>b__0(SPSite superUserSite, SPWeb

Trying to build a custom application to crawl SharePoint Search

Hello,      I have been tasked with building a custom application to develop a report dynamically based upon a search ran in a SharePoint site using user-defined keywords. What I need the application to do is this: 1.) Access the results of a search, and do a full fidelity save of each item. 2.)  If the item returned is a document in a library and it has other versions associated with it, access the meta-data of those other versions and group those results with the item found in the search. 3.) Store the results in XML (probably the easiest), and build a custom display for reporting purposes. If anyone has any advice on how I can accomplish this, I would be very grateful, Thanks!

VS 2010 Isolated Shell, WPF Designer & Custom Controls produces some assembly reference errors

Hello, i currently try to use the VS 2010 isolated shell for providing a custom WPF editor.As described in the headline the WPF designer is 'partly' not able to find all assemblies (details below). After some research the only similar problem description i found here . Unfortunately I could not find any solution for my problem there. These are the steps i have successfully finished: - create a vs isolated shell application with some basic extensions (some tool windows) - create a Custom Project template based upon the MPFProj project (as describe at: here ) - Add the needed reference for custom control in project template - Create and edit XAML markup (no code behind, only markup) - Compile and run XAML Now, the following problem occurred (as a step by step description): - I add a custom control to the toolbox using the context menu "Choose Items..." (ok ) - I drag this custom control from the toolbox into the WPF designer view (ok ) - The custom control is rendered correctly and no assembly reference errors occurred (ok ) - I hit the F5 button in order to execute the XAML markup -> The application is starting correct and looks as exspected (ok ) - I close the running application (window) -> Now the WPF designer view seems to refresh and 'tells' me that an assembly (the one of the custom control) could not be found (error!!! ): There error text is: "Th

Using the FindMatchingFiles activity when creating Team Build 2010 workflows

Has anyone figured out how to create complex pattern matches for the FindMatchingFiles activity that duplicate MSBuild's use of ItemGroup inclusion and exclusions? I want to be able to select all the assemblies in a folder, but not the debug symbols or XML files, but it seems to me that FindMatchingFiles's MatchPattern only supports basic inclusions and not exclusions.

How to create one instance of COM object that can be accessed from custom fields/workflows

Hi, Ive got a COM-object that is used to perform some actions on another server, and i can use only one instance of it ... But : 1. my custom fields must interact with it for fetching data 2. my custom workflows must interact with it for posting data So the question is : How to create only one instance of COM-object which can be fully accessible from custom fields/workflows ( custom too ) Thanks :)
ASP.NetWindows Application  .NET Framework  C#  VB.Net  ADO.Net  
Sql Server  SharePoint  Silverlight  Others  All   

Hall of Fame    Twitter   Terms of Service    Privacy Policy    Contact Us    Archives   Tell A Friend