.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

Referencing framework 4 assemblies from Visual Studio 2008

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

Hi all,

I read a lot about Visual Studio 2008 and framework 4, and I have understood that it is not possible compiling framework 4 with Visual Studio 2008. By the way, I cannot find a definitive answer to a sibling question: it is possible, within a Visual Studio 2008 project (say 3.5), to reference a framework 4 assembly?

Trying to do so, I get the following error

[...] This assembly is built by a runtime newer than the currently loaded runtime and cannot be loaded.




View Complete Post

More Related Resource Links

Visual Studio 2008 Framework 3.5 Project Referencing DLL built in Visual Studio 2010 Framwork 4


I am trying to add a DLL file that was compiled in Visual Studio 2010 with Framework 4 to my project that is in Visual Studio 2008(Framework 3.5), but I am getting a warning after I have added the reference that says "The referenced component 'dll name' could not be found." What is causing VS2008 give this warning? I can not compile the code as this DLL is a required component. Thank you.



.Net Framework 4 with Visual Studio 2008 and use it in vs 2008


What I am asking is this:

I want to use visual studio 2008 and code against .net framework 4.0 and be able to continue using 3.5 sp1 in other solutions...

Is this possible?

Can not establish a connection to SQL Server 2008 R2 via Visual Studio 2010 Framework 4.0


Hello All, I would appreciate any help with this.

I believe my problem exists within the web.config which already had code in it to connect to SQL Server Express 2008.

I uninstalled the SQL Server Express that came with Visual Studio 2010.

I installed SQL Server 2010 R2 Developer, and I'm able to connect via Management Studio and through Visual Studio's Server Explorer's Data Connections I am connected.

I did run aspnet_regsql.exe within the 4.0 folder in order to create the database with Microsoft Service Providers.

Here is the ServerName: USER-5529234649 

Here is the name of the DataBase:  StepByStepChapter9

Here is the name of the Connection within Visual Studio's Server Explorer's Data Connections:  user-5529234649.StepByStepChapter9.dbo

Here is the code I changed in the web.config:

      <!--<add name="ApplicationServices"
            connectionString="data source=.\SQLEXPRESS;Integrated   Security=SSPI;AttachDBFilename=|DataDirectory|\aspnetdb.mdf;User Instance=true"
            providerName="System.Data.SqlClient" />-->
      <add name="ApplicationServices" connectionString="data source=user-5529234649\Step

Utilizing Entity Framework 4.0 in MOSS 2007 with Visual Studio 2008



I am trying to create a webpart using VSeWSS 1.3 in VS 2008 and utilize Entity Framework 4.0 .

I am able to do it in .NET 3.5 but i am unable to create a 4.0 solution in VS 2008 to replicate steps for 4.0 .

Can this be done, if yes then how?

Your help will be really appreciated.


I cannot get visual studio 2010, SQL Server 2008, and .NET Framework 3.5 or 4.0 to deploy a very sim


Creating [SqlClassLibrary]...

C:\Projects\SqlClassLibrary\bin\Debug\SqlClassLibrary.sql(39-39): Deploy error SQL01268: .Net SqlClient Data Provider: Msg 6218, Level 16, State 3, Line 1 CREATE ASSEMBLY for assembly 'SqlClassLibrary' failed because assembly 'SqlClassLibrary' failed verification. Check if the referenced assemblies are up-to-date and trusted (for external_access or unsafe) to execute in the database. CLR Verifier error messages if any will follow this message

An error occurred while the batch was being executed.


Time Elapsed 00:00:06.23

========== Build: 1 succeeded or up-to-date, 0 failed, 0 skipped ==========

========== Deploy: 0 succeeded, 1 failed, 0 skipped ==========

Referencing SQL Server 2008 R2 SMO from Visual Studio 2010


Hello.  We read a number of things about referencing SQL Server SMO from Visual Studio but still don't have the definite answers we need.  So, here it goes...

A number of years ago we created a C# application using Visual Studio 2005 and SQL Server 2005.  In that application, we added .NET references to a number of SQL Server SMO objects, and everything worked fine.  Those references were:

Microsoft.SqlServer.ConnectionInfo    GAC
Microsoft.SqlServer.Smo            GAC
Microsoft.SqlServer.SqlEnum        GAC

We have now migrated to Visual Studio 2010 and SQL Server 2008 R2.  However, when we try to reference those same SMO objects for SQL Server 2008 R2, they don't appear in the .NET references tab.  We're wanting to reference the SQL Server 2008 R2 version of those same SMO assemblies for our upgraded C# application.

On our development machines, we have SQL Server 2008 R2 Developer installed with all options, including the SDK such that the assemblies are found in C:\Program Files (x86)\Microsoft SQL Server\100\SDK\Assemblies.

So, my first questions are: Are we supposed to do file references to the SMO assemblies instead

Visual Studio 2008 Memory problems


My memory in task manager reaches about 900,000K  and I don't know why it does this. Definately slows everything down, especially when I rebuild my tableAdapters, takes about 30 seconds sometimes to rebuild the project.

is it possible to convert whole visual studio 2008 web site project to visual studio 2010 web site p


is it possible to convert whole visual studio 2008 web site project to visual studio 2010 web site project


my current project references




i have a very annoying iis problem

iis server stops working until app pool is recycled


i am hoping that new visual studio (net framework 4.0) may solve this very annoying unsolveable problem


Business Intelligence Reports Project in Visual studio 2008 ?



I wonder how to add a project template called  Intelligence Reports, something like that, to Visual studio 2008. I have SQL 2008 installed. Do I need to install some updates to get Intelligence Reports template to Visual studio 2008 ?

Thank you..

Visual Studio Web Deployment Project for VS 2008


What is the latest version of Visual Studio web deployment project which I can use with  VS 2008 ?

Can I use VS 2010 Web Deployment Project with  VS 2008 ?


crystal report -visual studio 2008 dual axis chart (bar & line)


dear all, 

i use crystal report integrated with  vs.2008, and i want to make chart with dual axis (bar & line).

i have used bar chart and input the data with 2 values..

then in chart options > template, i activated the dual axis..

my question is, how i can change the 2nd value with line chart not bar chart??

i'd tried to find the right settings in "chart options" but still can't find the solution.

for information in "chart options" there are 4 sub menu : template, general,titles,grid..

i read in a tutorial there's more sub menu called "series" in crystal report (stand alone version)..

is it possible doing it in Crystal Report VS. 2008?

please,, i need your advice and solution..

Thanx before..


VS 2010: Entity Framework 4.0 and WCF Data Services 4.0 in Visual Studio 2010


Elisa Flasko takes you through a sample weblog application to demonstrate how new improvements in Entity Framework and WCF Data Services work together to simplify the way data is modeled, consumed and produced in Visual Studio 2010.

Elisa Flasko

MSDN Magazine April 2010

VSTO 3.0: Developing Office Business Apps with Visual Studio 2008


With custom form regions in Outlook you can pull in data from designated data sources and truly customize your users' Outlook 2007 experience.

Steve Fox

MSDN Magazine Launch 2008

Foundations: What's New for WCF in Visual Studio 2008


Visual Studio 2008 and the .NET Framework 3.5 provide new tools and support that extends Windows Communication Foundation (WCF). Visual Studio 2008 also automates a number of manual WCF tasks for the developer as well.

Juval Lowy

MSDN Magazine February 2008

Windows CE: Develop Handheld Apps for the .NET Compact Framework with Visual Studio .NET


Smart Device Extensions (SDE) for Visual Studio .NET allow programmers to develop applications for the .NET Compact Framework, a new platform that maintains many of the features of the .NET Framework in a version optimized for handheld devices. This article shows how SDE provides access through Visual Studio .NET to a variety of .NET classes for devices running Windows CE, including classes for creating user interfaces. Data access classes and Web Services for the .NET Compact Framework are also explained. Following that overview, a sample Web Service called XMLList is built. Then the UI-the XMLList client-side application-is created.

Larry Roof

MSDN Magazine March 2002

Speed Up Visual Studio 2008

The article Speed Up Visual Studio 2008 was added by tmorton on Monday, August 09, 2010.

1- Disable toolbox populate from the mainmenu open Tools->Options Select the general tab under Windows Forms Designer Set AutoToolBoxPopulate to false. Although the setting is under Windows Forms Designer, it is just as effective for ASP.Net developers

The Weekly Source Code 56 - Visual Studio 2010 and .NET Framework 4 Training Kit - Code Contracts, P

Do you like a big pile of source code? Well, there is an imperial buttload of source in the Visual Studio 2010 and .NET Framework 4 Training Kit . It's actually a 178 meg download, which is insane. Perhaps start your download now and get it in the morning when you get up. It's extremely well put together and I say Kudos to the folks that did it. They are better people than I. I like to explore it while watching TV myself and found myself looking through tonight. I checked my blog and while I thought I'd shared this with you before, Dear Reader, I hadn't. My bad, because it's pure gold . With C# and VB, natch. Here's an outline of what's inside. I've heard of folks setting up lunch-time study groups and going through...(read more)
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