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

  • SEARCH
  • Home
  • 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 566393
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 13, 20262026-05-13T12:58:21+00:00 2026-05-13T12:58:21+00:00

Environment Visual Studio 2008 SP1 Visual C# WPF Application Project .NET Framework 3.5 Problem

  • 0

Environment

  • Visual Studio 2008 SP1
  • Visual C#
  • WPF Application Project
  • .NET Framework 3.5

Problem

You have a user control in the same assembly as another user control or window, and you are using it in this new user control or window. It compiles and runs fine, however the designer doesn’t work and gives an exception “Could not create an instance of type ‘x’.“. This prevents the designer from rendering and the project from compiling while the designer is visible.

Workaround

While by hiding the designer on these controls and windows it allows the code to compile this is not an expectable solution as it prevents me from viewing and using the designer completely for these controls and windows.

Code Examples

xmlns:local="clr-namespace:Foo.Bar.MyWpfApplication"

...

<Grid>
    <local:MyUserControl Grid.Row="1" x:Name="myControl" />
</Grid>

Also tried this namespace statement with not change to the issue:

xmlns:local="clr-namespace:Foo.Bar.MyWpfApplication;assembly="

Question

Has anyone had this issue and solved it?

For reference I have tried the solutions posted in this thread and they didn’t work.

http://social.msdn.microsoft.com/Forums/en-US/wpf/thread/56f933c8-a093-4c47-8e1a-cde4bb1864e9

  • 1 1 Answer
  • 1 View
  • 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-13T12:58:21+00:00Added an answer on May 13, 2026 at 12:58 pm

    This is a bug in the VS 2008 SP1, and only in large and/or complex projects. This has reportedly been corrected in Visual Studio 2010 Beta 2 which from my testing appears to be correct. Because 2010 seems to be fixed with regard to this issue I doubt they will fix this in 2008.

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

Sidebar

Related Questions

I use entity framework with Visual Studio 2008, sure it was SP1 both .NET
Environment: Visual Studio 2008 SP1 I have the following line in my text file:
Environment: Team Foundation Server 2005 Visual Studio 2008 I have a reasonably large project
Environment: Windows 7 SP1 Visual Studio 2010 Ultimate SP1 .NET 4.0 I have a
Environment: Visual Studio 2008 SP1 What's the regex to get that integer between parenthesis,
We have Visual Studio 2008 Team System (SP1) installed on Windows 7 on a
I have a problem with my Visual Studio 2008 debugger not attaching to the
I have simple C# console application developed in Visual Studio 2008, which writes information
Environment: Visual Studio 2008 SP1 How can I write the following regex? I'm trying
I have created a strongly signed assembly in Visual Studio 2008 against the .NET

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.