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 7831801
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 2, 20262026-06-02T11:53:23+00:00 2026-06-02T11:53:23+00:00

I recently installed Visual Studio 11 Beta with .Net Framework 4.5 on mine production

  • 0

I recently installed Visual Studio 11 Beta with .Net Framework 4.5 on mine production machine (but left Visual Studio 2010 side-by-side). It worked fine for me for couple of days, but then it started throwing InvalidOperationException in this section of code:

ItemDB itemDB = new ItemDB();
ItemDetails item = itemDB.GetItem((int)Session["itemId"]);
string code = item.Code;
Control html = ParseControl(code);
placeholderPage.Controls.Add(html);

Exception happens on line where I ParseControl, in string code I have regular html. The strangest thing is that this code worked perfectly before I installed new Visual Studio, and it still works on colleges machine where he has VS2010 on .NET Framework 4.

After exception it shows me this message: Cannot instantiate type 'TracedLiteralControl' because there is no public parameterless constructor.

  • 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-06-02T11:53:40+00:00Added an answer on June 2, 2026 at 11:53 am

    I had the same annoying problem, but when using Page.ParseControl.
    Here are details:
    System.InvalidOperationException occurred
    Message: Cannot instantiate type ‘TracedLiteralControl’ because there is no public parameterless constructor.

    Then looking at the CallStack I found the following interesting line:
    Microsoft.VisualStudio.Web.PageInspector.Loader.dll!Microsoft.VisualStudio.Web.Runtime.WebForms.TracedLiteralControlBuilder.BuildObject() + 0x2f bytes

    Looks like, for the purpose of new PageInspector feature, VS 11 plugs an assembly in my web app runtime. I didn’t for sure added that assembly, so the obvious place to look for was in the .NET Framework configuration and in particular in web.config

    In my case the file is placed under C:\Windows\Microsoft.NET\Framework\v4.0.30319\Config\web.config and “Bingo” – on line 88 I found next:

    <add assembly="Microsoft.VisualStudio.Web.PageInspector.Loader, Version=1.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" />
    

    I commented out the line and my apps are working fine again.

    Hope that helps,
    Velio

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

Sidebar

Related Questions

I recently installed the Visual Studio 11 Beta alongside Visual Studio 2010. After that
I recently installed Visual Studio Professional 2010 Beta 1 and noticed that most of
I recently installed windows 7, visual studio 2008, and .net framework 3.5. With these
I recently updated Visual Studio 2010 to SP1 and noticed the .NET 4 framework
I just recently installed Server 2008 R2 and Visual Studio 2010 Beta 2. Then
I recently installed Visual Studio 2010 Pro. There might have been a link to
I recently installed Visual Studio 2010 Professional RC to try it out and test
I recently installed Visual Studio 2010 (Ultimate edition, final version released in April), and
I recently installed Visual Studio 2010 and copied and converted an old VS2005 solution
Recently I installed in Visual Studio 2010 the Power Tools Extension It's working great,

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.