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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 13, 20262026-06-13T12:37:17+00:00 2026-06-13T12:37:17+00:00

I have a .NET app which works well with .NET 4.0 – I don’t

  • 0

I have a .NET app which works well with .NET 4.0 – I don’t have its source though the app exposes its app.config

But.

I have installed the Visual Studio 2012 with .NET 4.5. Suddenly, the .NET 4.0 application is throwing exceptions at some places – I analyzed with Reflector that the exceptions are thrown in InitializeComponent() in the WPF part of the application.

   Uri resourceLocator = new Uri("/Some.Assembly;someuri/someuri/somefile.xaml", UriKind.Relative);

And the exception is:

The invocation of the constructor on type 'DevExpress.Xpf.Grid.GridControl' that matches the specified binding constraints threw an exception.

at System.Windows.Markup.WpfXamlLoader.Load(XamlReader xamlReader, IXamlObjectWriterFactory writerFactory, Boolean skipJournaledProperties, Object rootObject, XamlObjectWriterSettings settings, Uri baseUri)
at System.Windows.Markup.WpfXamlLoader.LoadBaml(XamlReader xamlReader, Boolean skipJournaledProperties, Object rootObject, XamlAccessLevel accessLevel, Uri baseUri)
at System.Windows.Markup.XamlReader.LoadBaml(Stream stream, ParserContext parserContext, Object parent, Boolean closeStream)
at System.Windows.Application.LoadComponent(Object component, Uri resourceLocator)

Unfortunately I’m unable to tell if there’s any inner exception.

If I uninstall .NET 4.5 and install .NET 4.0, the exceptions are not thrown but I can’t work with VS 2012.

I’ve tried to add these lines into the app.config but without success.

<startup useLegacyV2RuntimeActivationPolicy="true" >
    <supportedRuntime version="v4.0.30319" sku=".NETFramework,Version=v4.0" />
    <requiredRuntime version="v4.0.30319" />
</startup>

How does one force an app to use 4.0 and 4.0 only? Is it even possible? Is the .NET 4.5 somehow mingling with the 4.0 assemblies?

  • 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-13T12:37:17+00:00Added an answer on June 13, 2026 at 12:37 pm

    Take a look at this article. http://www.west-wind.com/weblog/posts/2012/Mar/13/NET-45-is-an-inplace-replacement-for-NET-40. It describes what is actually happening when you install .net 4.5
    You may ask the vendor of the program to recompile it using the latest version of DevExpress controls.

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

Sidebar

Related Questions

Have an ASP.net web app which works fine for a few days, but then
I have a .NET app which works in 32 and 64 bit. I would
I have an ASP.NET MVC4 app which uses DotNetOpenAuth 4.0.1 to authenticate users with
I'm developing a ASP.Net MVC3 app which will have few hundred videos. I want
I have a Silverlight web app which uses ASP.net Website administration tool for user
So, here's what I'm working on. I have an ASP.NET web app, in which
I have a web app (.NET 3.5) which is sending notifications by email to
I have an ASP.NET MVC server app and client code which uses jquery. I'd
The thing I have a web app (asp.net) which needs to have a feed.
I have built a web setup project in VS2008 which installs my ASP.NET/Silverlight app

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.