.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

Compiled Assembly with Framework Targeted to 3.5 will not run without Framework 4.0 installed

Posted By:      Posted Date: October 15, 2010    Points: 0   Category :.NET Framework


I'm working in VS2010, VB.Net, compiling and packaging a dll which is callled from a right click menu.  I was ordered to require .Net 4.0 as the target framework and as a prerequisite for the program, so I did and it everything worked.  A week later, a client complained, so I have to revert to requiring and targeting .Net Framework 3.5.   I went into the solution, changed the Targeted Framework, Launch Condition and Prerequisites back to 3.5.  Everything compiled fine.  

But new installs wouldn't show the right click option until .Net Framework 4 was installed too.  I've tried changing the framework target back to 3.0, 2.5 and 2.0, and reverting the vbproj back to a build where it worked, but same results.  Take a working install, uninstall 4.0 framework and it stops working.   Take a 3.5 targeted install, run the install on a clean machine, and it doesn't work.   Add the .Net Framework 4.0 and it works instantly.   Same results when a compiled dll is dropped into working installation.  (They all require 4.0, despite the selected target environment....)

Any htoughts welcome...  I'm stumped and spent all day yesterday on this.


View Complete Post

More Related Resource Links

CLR Inside Out: Migrating an APTCA Assembly to the .NET Framework 4


The CLR security model in the Microsoft .NET Framework 4 has undergone some substantial changes, including the adoption of "Level2" transparency, similar to the Silverlight security model. Mike Rousos provides an in-depth explanation of how that will likely impact authors of AllowPartiallyTrustedCallers (APTCA) libraries.

Mike Rousos

MSDN Magazine March 2010

How can you tell which version of Net Framework is installed?

How can you tell which versions of Net Framework are installed on the computer. Can you tell from add/remove programs in the control panel? Thanks!

Installed .NET Framework 3.5 SP1 and 4.0 successfully but not detected

Good day, I am trying to install a SPSS Analysis of Moment Structures (AMOS) software v18 on my machine. During setup, the installation failed. An error message popped up "The Microsoft.Net Framework Version 3.5 SP1 or later was not found on your machine. This is required for the Amos installation to continue". Please install the Microsoft.NET Framework 1st. I googled and found the link on Microsoft's website, and installed 3.5 SP1 but the same error message appeared. I then tried with .NET Framework 4.0 and  still getting the same error message. I am a Windows XP User. What can I do now? Regards, Chris

ClickOnce deployment fails if .NET Framework isn't installed

Hi,   I have noticed that installation of my application fails in some cases. If the user has .NET Framework installed the installation works. But if it's not installed then Click Once will install it, after asking the user to accept the EULA, installation will complete and the "Install"/"Don't install"-dialog appears. My application is downloaded and then fails with the error message:     Following errors were detected during this operation. * [2010-09-01 15:22:17] System.Deployment.Application.InvalidDeploymentException (ManifestLoad) - Exception occurred loading manifest from file Stoffi.exe: the manifest may not be valid or the file could not be opened. - Source: System.Deployment - Stack trace: at System.Deployment.Application.Manifest.AssemblyManifest.ManifestLoadExceptionHelper(Exception exception, String filePath) at System.Deployment.Application.Manifest.AssemblyManifest.LoadFromInternalManifestFile(String filePath) at System.Deployment.Application.Manifest.AssemblyManifest..ctor(String filePath) at System.Deployment.Application.DownloadManager.ProcessDownloadedFile(Object sender, DownloadEventArgs e) at System.Deployment.Application.FileDownloader.DownloadModifiedEventHandler.Invoke(Object sender, DownloadEventArgs e) at System.Deployment.Application.FileDownloader.OnModified() at System.Deployment.A

I installed .net FrameWork 4.0 (for Vista/Windows 7) and my Desktop Font is BOLD! (sometimes)

So at first, I installed the below: http://www.microsoft.com/downloads/details.aspx?FamilyID=9cfb2d51-5ff4-4491-b0e5-b386f32c0992&displaylang=en Which is .net framework 4 (web installer), then I believe I tried the standalone. But then after I did the Redistributable 2.0 installer for Windows XP SP2, but I have SP3, does that just mean its included already? (http://www.microsoft.com/downloads/en/details.aspx?FamilyID=0856EACB-4362-4B0D-8EDD-AAB15C5E04F5&displaylang=en)   My friend told me I needed this before I install Office 2010... I dont know!! So after I installed these different .net frameworks and then office. I have Mozilla crashing me, I disabled the framework assistant plug-in and still happens. Then, my FONT for desktop and start menu icons turns (larger/bold) but not within folders, only what shows without clicking into anything.... so.. 1.System Restore is not an option, that restore point is overwritten now... 2. This is not an appearance tab/settings issue with a larger DPI set or anything like that... Because, sometimes I click on my computer to restart and the font is all fine and will continue to be, othertimes, some program or something causes this to happen, I restart the PC and then its fine again... Can anyone tell me what I did wrong and how to fix it, easily.. if possible :) I have searched all over and while I've noticed people with simila

Framework error:Could not load file or assembly 'Microsoft.AnalysisServices, Version=

Hi,I use sql clr sp's to load data in to database using .net framework 2.0. I never had aproblem using this and it went well for months.I recently updated to net framework 3.5 sp1 and sqlserver sp3 on 32-bit sql server and win 2003.I am facing an error which i could not resolve.Error:System.IO.FileLoadException: Could not load file or assembly 'Microsoft.AnalysisServices, Version=, Culture=neutral, PublicKeyToken=89845dcd8080cc91' or one of its dependencies. Assembly in host store has a different signature than assembly in GAC. (Exception from HRESULT: 0x80131050)System.IO.FileLoadException:    at StoredProcedures.checktable(String paramComponent, String paramParameters)I have gone through different forums, and trie different options,but did not help. I am using 'unsafe'  option.I also tried to alter assembly which is mentioned in http://support.microsoft.com/kb/949080/pt But when i tried to alter the assembly using the above link or try to change the permission to external access on the assembly, i get the below error.Alter ASSEMBLY AccessibilityFROM 'C:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\Accessibility.dll'Cannot alter the assembly 'Accessibility', because it does not exist or you do not have permission.I am an admin on the server/sqlCan some one suggest how to alter assembly with permissions or solve this issue or am i missing anything important.Do i

How do I test if the .NET Framework is installed on the customer's computer?

Hello, I have a WPF .NET 4 program that will be running off of a USB flash drive.  And it is set to auto-start when the flash drive is inserted into the port.  The problem is, if the customer does not have .NET 4 installed,the ugly message below pops up: Title bar: MyProgram.EXE - .NET framework Initialization Error Body: To run this application, you first must install one of the following versionse of the .NET Framework: v.4.0.30319 Contact your application publisher for instructions about obtaining the appropriate version of the .NET Framework. Button: OK This is very unacceptable.  I need to present a much better message to the user as well as buttons to click that will automate the installation of the appropriate .NET framework. How do I test if the .NET Framework is installed on the customer's computer? I'm hoping that I don't need a separate program for this test, for then I'd have to have that program start first each and every time and if the appropriate .NET framework is present, it will start MyProgram. Regards, Robert

Getting .net framework 2 not installed, when setup sql server 2005 express, though framework 4 is in

My platform is windows xp professional sp3, on a dell pc.  I want to install sql server 2005 express edition. sql server 2005 express edition service pack 3, download page, published date 12/15/2008, states "Install .NET Framework 2.0 or later", note the "or later".  It also states windows xp. .NET Framework 2.0 download page states windows xp sp2, and I have seen forum postings about a problem when it is xp sp3. .NET Framework 4 (Standalone Installer) download page, date published 4/12/2010, states windows xp sp3. I download .NET Framework 4, i.e. dotNetFx40_Full_x86_x64.exe, and install it. I download sql server 2005 express edition service pack 3, i.e. sqlexpr32.exe, and run it, and it does some file extractions, and then message "The Microsoft .Net Framework 2.0 is not installed. Please install before running Setup." Is this the expected behaviour?  Would I be better using sql server 2008 express edition? Other info: There was a .net framework 1.1 on the pc to begin with, but I removed it, and ran the sql exe again and still the message. There was and is a sql server desktop engine on the pc, though it's never been used.  Thank you for any help you can give with this. ----Philip

where is .net framework 3.5 sp1 gets installed?

I have already VS 2008 installed in my system. Then i have installed .NET Framework 3.5SP1 in that system. I kept the downloaded file(.NET Framework 3.5 SP1) in my E:\ drive, and previous .NET 3.5 Framework is installed  in C:\ drive. Now after installing .NET 3.5 SP1 a arbitrary name folder is created in E drive, having two sub folders having name - amd64 and i386.So, what is the purpose of these folders? Can i delete these folders without having any loss? Where is my new .NET Framework 3.5 SP1 installed,means in which directory?

.Net Framework-I have different versions installed but none appear in the Registry.

I am currently having problems installing postgresql and Microsoft Visual Basic 2008 Express Edition on Windows Vista.
I get the following error messages while installing postgresql:
1.    "Error 1935: An error occurred during the installation of assembly. 'Microsoft .VC80.ATL.type="win32".version="8.0.50727.4053".publicKey Token="1fc8b3b9a1e18c3b".processorArchitecture="x86". Please refer to Help and Support for more information."

2. "An erro occured executing the Microsoft VC++ runtime installer."

And when installing VB i hav the following error message:
"Error occured during setup." "Visual C++ Runtime pre-requisites" could not be installed.

I have on my computer .Net Framework versions 2.0,3.0,3.5 and 4.0 installed but none appear in the Registry. Could it be that the above-mentioned problems stem from that?

Install issues with WebStudio- .NET framework 4.0.3 not installed

I downloaded a trial version of WebExpression and it won't install XSetup.exe - NET Framword Initializaiton Error. To run this application you first must install one of the following versions of the .NET framework: v 4.0.30319.  I have .NET  Framework 4 Extended installed.  What more do I need to do?  Can anyone help?  I am running on  Vista Home Premium 2007 - Service Pace 1

mvc2 framework...not installed



  Im just new to ASP.NET. And I wanted to do the tutorial on this site.
Problem is when I installed Visual Studio 2008, thero's no mvc2 framework whick requires in the tutorial.

 I need to have installed on my Studio the MVC2 Framework., but seems doesnt work for me.

 I aleady installed VS2010 but still I can't find the ASP.NET MVC2 Framework.

 Please help me get started in the tutorials..

 How do I get that MVC2 Framework in the V.Studio?

Is there any instructions....

 Many thanks in advance

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!!!


****ERROR**** File C:\WINDOWS\Microsoft.NET\Framework\v1.0.3705\assemblylistLoc.txt is not installed

I am having trouble with some updates after a repair install of a Windows XP Media Center system. Many of the updates that fail to install are updates to .Net rameworks. I ran rhe net framework verification utility for .Net v 1.0 because it is supposed to be part of the OS. It gave the error in the title. How should I proceed?

.net framework 3.5 SP1 redistributable package was not installed sucesfully HELP PLEASE!


IM trying to install a new game and it keeps giving me a " ERROR: the .net framework 3.5 SP1 redistributable package was not installed sucesfully. Set up cannot continue."  Any advice.. I dont know what to do?????

Please Help...

.Net Framework 4 on Windows Server 2003/IIS6: where is the assembly folder ??

I installed and configured Framework4 on a Windows Server 2003 Standard SP2
following this guide:


Trying to access the website, I received this error:


Server Error in '/' Application.

Access to the path 'C:\Program Files (x86)\Reference
Assemblies\Microsoft\Framework\' is denied.
Description: An unhandled exception occurred during the execution of the
current web request. Please review the stack trace for more information
about the error and where it originated in the code.

Exception Details: System.UnauthorizedAccessException: Access to the path
'C:\Program Files (x86)\Reference Assemblies\Microsoft\Framework\' is

ASP.NET is not authorized to access the requested resource. Consider
granting access rights to the resource to the ASP.NET request identity.
ASP.NET has a base process identity (typically {MACHINE}\ASPNET on IIS 5 or
Network Service on IIS 6 and IIS 7, and the configured application pool
identity on IIS 7.5) that is used if the application is not impersonating.
If the appli

.NET Framework 4 installed but not working



I run Windows 7 Professional 64bit and I have installed .NET Framework 4 from this link:


I cleaned up the %temp% folder and disabled by Avast Anti-

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