Solved

.net framework 4 client profile targeting issues

Posted on 2015-01-08
4
127 Views
Last Modified: 2015-01-16
Hi
When attempting to retarget our vb.net application from .net 2.0 to .net 4.0 we tried two available target framework options...
1.      .net framework 4
2.      .net framework 4 client profile
If we select option 1 then our application retargets without issue. However option 2 results in VS2010 crashing immediately when switching from Debug to Release (using the VS toolbar combo).
Please note we have already considered...
http://msdn.microsoft.com/en-us/library/vstudio/cc668079%28v=vs.100%29.aspx
How can we identify what’s causing VS2010 to crash when option 2 is selected?
Thanks
0
Comment
Question by:antonms
  • 2
  • 2
4 Comments
 
LVL 40
ID: 40543011
Your application probably references assemblies that are not in the Client Profile. In such a case, Microsoft advise to target the full Framework (http://msdn.microsoft.com/en-us/library/vstudio/cc656912(v=vs.100).aspx).

Note also from the same page, that starting with Framework 4.5, the client profile is no longer available. Unless you have very good reasons to use the client profile, I would thus suggest that you drop it now.
0
 

Author Comment

by:antonms
ID: 40543100
Thank you for your reply,  we also believe the problem relates to referencing an assembly that's not available in the Client Profile, however we are trying to establish what reference is causing VS2010 to crash.
0
 
LVL 40

Accepted Solution

by:
Jacques Bourgeois (James Burger) earned 500 total points
ID: 40543179
I do not know of a way to do it automatically, but you can try the following.

Load the project for the full version of the Framework. Compare the list of referenced libraries with the list provided at http://msdn.microsoft.com/en-us/library/ff462634(v=vs.100).aspx. Those in the project that do not make it in the list on the web page are the ones.
0
 

Author Comment

by:antonms
ID: 40553818
Hi
Apologies for my late reply, the only .net related reference, not available in the Client Profile list, I could find was Microsoft.VisualBasic.PowerPacks.Vs

C:\Program Files (x86)\Reference Assemblies\Microsoft\VBPowerPacks\v10.0\Microsoft.VisualBasic.PowerPacks.Vs.dll

However when I remove the reference VS still crashes - I think we will stick with the full framework option. Thanks.
0

Featured Post

6 Surprising Benefits of Threat Intelligence

All sorts of threat intelligence is available on the web. Intelligence you can learn from, and use to anticipate and prepare for future attacks.

Join & Write a Comment

This article shows how to make a Windows 7 gadget that extends its U/I with a flyout panel -- a window that pops out next to the gadget.  The example gadget shows several additional techniques:  How to automatically resize a gadget or flyout panel t…
With most software applications trying to cater to multiple user needs nowadays, the focus is to make them as configurable as possible. For e.g., when creating Silverlight applications which will connect to WCF services, the service end point usuall…
This is Part 3 in a 3-part series on Experts Exchange to discuss error handling in VBA code written for Excel. Part 1 of this series discussed basic error handling code using VBA. http://www.experts-exchange.com/videos/1478/Excel-Error-Handlin…
You have products, that come in variants and want to set different prices for them? Watch this micro tutorial that describes how to configure prices for Magento super attributes. Assigning simple products to configurable: We assigned simple products…

757 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

21 Experts available now in Live!

Get 1:1 Help Now