Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 898643
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 15, 20262026-05-15T15:04:48+00:00 2026-05-15T15:04:48+00:00

Background: We are hosting a .NET 4.0 Windows Workflow activity inside a WCF service

  • 0

Background:
We are hosting a .NET 4.0 Windows Workflow activity inside a WCF service on IIS. The server is a Windows 2008 R2 machine.

Problem:
The ‘Activity’ fails inside the constructor’s InitializeComponent() call with the following stack trace (XamlObjectWriterException). This problem appears to be machine related – i.e. it works on some machines, but fails on others.

Stack Trace :

at System.Xaml.XamlObjectWriter.WriteEndObject() 
at System.Xaml.XamlObjectWriter.Dispose(Boolean disposing) 
at System.Xaml.XamlWriter.System.IDisposable.Dispose() 
at MyActivity.InitializeComponent() in \MyActivityLib\obj\Debug\MyActivity.g.cs:line 81 

Has anybody found a similar problem and/or know the cause? I found this Microsoft Connect bug, which gives the same error, but they don’t seem to have been able to reproduce it reliably, and it was closed before RTM.)

One of our developers could induce this error when hosting on IIS (Windows XP), while the activity ran flawlessly out of a test console app on his machine. He then deleted his source tree and rechecked it out, and the IIS problem appears to have gone away for him. However, trying the same approach (delete source & re-checkout) hasn’t fixed our build server / test environment combination.

Thanks

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-15T15:04:48+00:00Added an answer on May 15, 2026 at 3:04 pm

    It turns out that our server was still running .NET 4 Beta 2. Still doesn’t explain the problems we had on the developers local machine (definitely running RTM), but oh well – at least it’s fixed.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I use IIS web server 7.5 on Windows 7 for hosting my project. I
Background information Let's say I have two database servers, both SQL Server 2008. One
Heres the background -- I want to self-host a WCF service implementing netTcpBinding and
Is it possible to create a Windows Service (background apps accessible in services.msc) application
A little background info - I'm trying to host a RESTful WCF service on
Background: I have a Windows 2008 R2 box set up with SQL 2008 R2
Background: I have a website that has been built with ASP.NET 2.0 and is
I am into shared hosting and they do not allow me to use windows
Background: I am customizing an existing ASP .NET / C# application. It has it's
Background I used to have a standard Linux hosting account for my domain with

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.