.NET Tutorials, Forums, Interview Questions And Answers
Welcome :Guest
Sign In
Win Surprise Gifts!!!

Top 5 Contributors of the Month
Gaurav Pal
Post New Web Links

Question regarding having multiple versions of the .net framework

Posted By:      Posted Date: September 19, 2010    Points: 0   Category :.NET Framework

Hi guys,

Sorry if this sounds silly, but it's been getting to me for quite a while now.  I've been having some issues installing both .net framework 3.5 and 4.0 on my computer since I have certain software that either requires one or the other to run.  I've tried over and over again to install framework version 3.5 from your web site, but each time, the result is the same.  I always get the error that I mustconfigure the framework from the control panel.  Yet I see nothing about that in the control panel.  Maybe it would help you to know that I had first found .net framework through IIS when I went to put that in there, and so I've been trying to install it from there.  Every other framework version works fine except for version 3.5.  I unfortunately cannot provide any logs since my computer is currently with the Gordon college techs due to another issue, but any help on this would be appreciated.  Thanks. 



View Complete Post

More Related Resource Links

Multiple .net framework versions



In my server i am observing multiple versions of .net framework.

Our server is sql server 2005.with .net framework 2.0.

But i am observing more versions like 3.0,3.5 also

Can anyone help me why these many versions are there.

 And recently i got one error

Event id: 5000

Error .net runtime 2.0 error




event type clr20r3,P1 sacsclient.exe,P2,P34c0f1a1a,P4mscorlib,P5,P6471ebc5b,P716f8,P822,P9 system.invalidoperation exception,P10NIL.

Is this error due to above multiple versions .


Do I need to keep multiple versions of the .NET Framework installed in my system?


I realize that this may sound like a bit of a dumb question, but here goes anyway...

 Several months ago, I downloaded and installed the Visual Basic trial thinking that that was the program that I needed.  As it turns out I have decided farm this part of my project out to a professional, rather than spending countless hours frustrated with attempting to do it myself.  At the time that I installed Visual Basic I was asked to .NET Framework 2.0  I have since installed two updates, version 3.0 & 3.5.  These programs are quite memory intensive and take up a great deal of hard drive space!  I am currently running WinXP on my Intel-based MacBookPro under Bootcamp.  Unfortunately, the way that the original Bootcamp beta version partitioned my hard drive, it only allows for 32 GB of my hard disk to be allocated to running WinXP This includes any & all applications, documents, etc... that you would by definition have on your computer!  As it stands currently, the .NET Framework applications are occupying 0.5 gigabytes of my hard drive.

Do I need to keep version 2.0 as well as versions 3.0 and 3.5?  Also, since I had no longer using Visual Basic, do I even need to keep the .NET framework on my system at all?

Thank you so much for your help!!!


Multiple database support with Entity Framework

One of the features introduced in Entity Framework is being database independent. Which mean each database provider can support Entity Framework by implementing its provider.

This feature allows you build applications independent from the underplaying database provider. In this post I'm going to show how to build an application that support multiple databases using same conceptual model made by Entity Framework.

Error: Encountered multiple versions of the same assembly with GUID...try pre-importing...TlbImp


Hi!  Can someone tell me how I can troubleshoot the following error: "Encountered multiple versions of the same assembly with GUID...try pre-importing one of these assemblies".

The website developed in VS 2010 (.Net 3.5). This error is only received on my workstation.  Another person developing the site does not experience this issue at all.  Also, not sure if this matters, but on my workstation the 'Assembly Information...' dialog contains no values even though the 'AssemblyInfo.vb' file does specify values for the title, desc, etc.  The GUID being referenced in the error is the main project of the three projects within the solution.

I tried looking through the GAC, but do not see any references to the projects or DLLs in the VS solution and am not sure what else/where to look.

If I delete the copy of the solution on my local machine and pull down a copy from source control (AnkhSVN) the solution will build with no error.  Once I make any changes, such as adding a new aspx file, then the error is received.

I can provide any additional information needed.

Advanced Serialization: Format Your Way to Success with the .NET Framework Versions 1.1 and 2.0


While .NET offers adequate support for the simple serialization cases, issues arise when you're attempting to support delegates and subscribers, versioning, and class hierarchies. . In addition, the introduction of generics in The .NET Framework breaks new ground in the complexity of the serialization task and the power of serialization tools. This article discusses these issues and related pitfalls, suggests techniques and workarounds that address them, and recommends when and how to best use the new serialization abilities.

Juval Lowy

MSDN Magazine October 2004

Entity framework simple question




First I am newbie using EF - so sorry on this basic question


I have a Project Table that relate to Company Table


When I Map with EF I Do not have property of CompanyId in the Project Object

But I have related Company Object


For example

Project p = new Project();

p.CompanyId è does not exist!

When I try addingit myself I get this error:

If I need just the Company id, and I don't want get it like

p.Company.CompanyId - because than the application try connect again to the DB and I don't want this, because I need just the CompanyId.

What the best regular way to get it?


Educational question: How server objects are accessed from multiple client threads?

I will appreciate it if someone can help me to undestand how the following scenario works:   There is remoting server that is registered as WellKnownObjectMode.Singleton. Server implementation: It instantiates a class TestServer that implements interface IFoo interface IFoo { IHelper GetHelper() }   interface IHelper { void StoreString(); }   Implementation of TestServer: internal sealed class TestServer: System.MarshalByRefObject, IFoo { private IHelper> helper = new Helper(); public IHelper GetHelper(string helper){return helper;} }   Implementation of Helper: internal sealed class Helper : System.MarshalByRefObject, IHelper { public void StoreString (string val) {}; }   Implementation of a client (simplified; shown to illustrate the question only): static class Program { public static IFoo TestService; public static IHelper Helper; public TestThreads testmultiplecalls; [STAThread] static void Main() { TestService = (IFoo)Activator.GetObject(typeof(IFoo),"ipc://Channel"); Helper = TestService.GetHelper(); testmultiplecalls.Start(); } }   internal class TestThreads { public Start() { for (int i = 0; i < 20; i++) ThreadPool.QueueUserWorkItem((new TestCall(i.ToString())).DoWork); } }     internal class TestCall { private string m_str; public TestCall (string str) {m_str = str;} public void DoWork() { Program.Helper.StoreString(m_str); } }     Que

Entity framework noob question

I have been struggling to understand how this works. In the image above i have these db tables generated by Entity Framework. Problem is it seems that when i use the code below to assign the location values obtained from a listbox to the division being created/edited EF creates a new location and then enters that locations id and the divisions is into the DivisionLocation table thus creating multiple locations unnecessarily, as depicted below. using (FRLEntities context = new FRLEntities()) { for (int i = 0; i < lstPicked.Items.Count; i++) { var lpn = cm.GetLocation(Convert.ToInt32(lstPicked.Items[i].Value)); Location cLocation = new Location { LocationId = Convert.ToInt32(lstPicked.Items[i].Value), LocationName = lstPicked.Items[i].Text, LocationParentName = lpn.LocationParentName }; //CurrentDivision.Location = new EntityCollection<Location>(); CurrentDivision.Location.Add(cLocation); } } Division Divisionid            DevisionName 1                            1st Division 2    &nb

WCF and Entity Framework Design question

Should we be using Entity Framework entities as data contracts across the WCF Layer? If yes when why have the POCO support and code only been added to the Entity Framework? I was assuming it was with the purpose to remove the dependancy that the client will have on the database if the client depends on the Entities. If No, then does that mean we need to create Business Objects for each entity that exists in the entity framework model? Please advise. Thanks.Nilotpal

Framework Wrapper of Multiple SDK'S

Hi Guys,   I have multiple biometric SDK of different vendors made in .NET, i must wrap all SDK in one framework wrapper with the common functions of every SDK, and no common functions too. that must implement in an application we will develop , and an app will implement depending de fingerprint scanner detect wich SDK in FRAMEWORK WRAPPER must use.   Is any pattern or idea for this job? and any architectural software pattern to accomplish this?   Thank you for any idea   José Abad.

Installer to verify and install multiple versions of .NET (3.5 SP1 and 4.0)

I'm running VS2010 and have built an installer that checks for the .NET 4.0 dependency. If the installer can't find .NET 4.0, then it is installed from disk (my client machines are not connected to the internet). However, I also require .NET 3.5 SP1 to be installed. Although both .NET 4.0 and 3.5SP1 are both checked in the "Prerequisites" box within my installer. Only .NET 4.0 shows up in the Launch Conditions panel. Right clicking on the "Requirements on Target Machine" box shows a fly out with several options but the "add .NET Framework Launch Condition" is grayed out, because one already exists. Any ideas?

Mixing Assembly Runtime Versions Question


I'm building an application targeted at the .NET Framework 4 and want to use the Logging Application Block and notice that the 5.0.414.0 version installed by the MSI is targeted at the 2.0.50727 runtime.  If this 2.0 version of the Logging Application Block is used, are there any performance problems or other issues which would suggest that I install the Logging Application Block source code and compile it targeted at .NET Framework 4 and use that DLL??




Net Framework Question

Why if I have net framework 4, 64 bit on my windows 7, when I boot up my computer it says it's missing net framwork 2?

Data Flows in SSIS - Mapping Multiple source tables to Destination table **Newb question**

Hi I am new to SSIS and had a basic question. I have around 30+ tables in a db that needs to be migrated to a newer schema in the DB. The data flow task seems to be ideally suited for my requirement. My question is do I need to create 30+ different data flow tasks for this which will get executed one after the other or is there a better way to migrate large number of tables. Also how are referential constraints taken care of during such migration. Thanks and Regards, Ganesh Ranganathan
Ganesh Ranganathan
[Please mark the post as answer if it answers your question]

Using Multiple Entity Framework Entities in MVC2


I need help getting data from multiple Entities models into an MVC controller.  Most of the examples I have seen for using EF in an MVC2 app only use a single entitiy.

I have just started using MVC2 in C# using the Entity Framework models (CIOps.model) created from an SQL database.   I can create the controller and views using single tables of the model in MVC2, but I just cannot get my head around how to get data from multiple entity tables into the controller (similar to joins in T-SQL).  I have included an example below of the controller code that works with a single entity table, tbl_tours (tbl_tour in DB).

Could someone please illustrate how this code would be changed to include additional columns from FK tables in addition to tbl_tours columns.  E.g. the clients name from the tbl_clients, the coordinators name from the tbl_employees, and costs from tbl_costs entities?  Is it possible to do this directly using the EF model entities/classes that are already created and not use LINQ, POCO, Repositories, etc.? The FK relationships are already in the EF models. 

I have included the whole controller code, but I just need a few examples of how to join the multiple entities, not rewrite every CRUD function function in the controller.  I think this will get me over the hump in using EF in an MVC2 App.  Also i

Entity Framework Inheritance Question



I have two tables in my EDMX, I'll call them table A and table B.  I would like for table B to be inherited from table A, so A is the base type and B is derived from A.  I have set this up in my EDMX file as such by removing the association between the two tables, adding the inheritance and deleting the duplicate columns in B.  All fields are mapped properly and I have mapped the insert/update commands to stored procedures.  When I run run a test to save changes to B, I get no errors.  However, none of the fields in my base table, table A, are updated.  And when I try an insert, I get an error saying there is a foreign key violation.  When I checked with SQL profiler, I found that only the stored procedure to insert into table B is called.  I would need for the insert to table A to happen first, then table B.  But this is not happening and my update is not even touching table A.  Is there anything special I need to do to make sure that both tables are updated properly and the inserts are done for both (and in the correct order)?

Any tips would be greatly appreciated.


Running multiple versions of the same workflow

I wanted to know how I can have have multiple versions of the same workflow running at the same time.  Currently the issue I have is if there is a workflow (version 1.1) which in an IDLE state and then I change the workflow (version 1.2).  Then the IDLE workflow is not able to run. 
ASP.NetWindows Application  .NET Framework  C#  VB.Net  ADO.Net  
Sql Server  SharePoint  Silverlight  Others  All   

Hall of Fame    Twitter   Terms of Service    Privacy Policy    Contact Us    Archives   Tell A Friend