.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

.Net framework 3.5 SP1 application fails to run on .NET framework 4.0.

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

We have a developed some PowerShell cmdlets in C# using Visual Studio 2008 / .NET framework 3.5 SP1. When we try to execute the cmdlet on a Windows XP or Windows 2003 server that has .NET framework 4.0 installed, we get the following error:


Could not load file or assembly 'System.Core, Version=, Cul

ture=neutral, PublicKeyToken=b77a5c561934e089' or one of its dependencies. The

system cannot find the file specified.


Note that this machine does NOT have .NET framework 3.5 installed on it. .NET framework 4.0 is directly installed without installing 3.5. I do not see System.Core.dll in the GAC.


On the other hand, if we first install .NET 3.5 and then install .NET 4.0, we do see System.Core in GAC and there are no issues.


Is this expected behavior? Doesn't .NET framework 4.0 installer install all the binaries from 3.5 SP1 as well?


Please advise.


Thanks for your help,


View Complete Post

More Related Resource Links

Entity Framework: N-Tier Application Patterns


This article examines n-tier patterns for success and some of the key APIs and issues specific to the Entity Framework. It also provides a sneak peak at features coming in the Microsoft .NET Framework 4 that should make n-tier development significantly easier.

Daniel Simmons

MSDN Magazine August 2009

C# and the Web: Writing a Web Client Application with Managed Code in the Microsoft .NET Framework


When the author wanted to build a middleware Web client to connect to other applications over the Internet, he realized that the XMLHttpRequest COM object was not sufficient for his purposes. In order to build a Web client using managed code, the author had to use the HTTPWebRequest and HTTPWebResponse classes provided by the Microsoft .NET framework. These classes are used in the sample project as a substitute for the less powerful XMLHttpRequest COM object, allowing the author to build a full-featured Web client. They also take advantage of all the benefits that the CLR and managed code have to offer.

Avi Ben-Menahem

MSDN Magazine September 2001

Avoiding DLL Hell: Introducing Application Metadata in the Microsoft .NET Framework


The Microsoft .NET platform uses metadata and assemblies to store information about components, enabling cross-language programming and resolving the infamous DLL Hell problem. This article describes the use of metadata for easy linking and loading of assemblies, the relationship between metadata and concepts such as IDL and type libraries, and the metadata hierarchy. The process of reading metadata from assemblies for easy versioning is also described. Although Microsoft provides the MSIL disassembler, IDLASM, and MetaInfo.exe for accessing metadata, the author provides two sample programs that read metadata using the unmanaged metadata interfaces and the Reflection API.

Matt Pietrek

MSDN Magazine October 2000

Connection to Exchange Server of .NET 1.1 Framework application on Windows 2008 64-bit

I am running Visual Studio 2003 .NET Framework 1.1 application on Windows 2008 64-bit machine. There is only one problem - connection to Exchange Server. The same application is running fine on Windows 7 64-bit machine (not server). I tried to use the same Interop.MAPI.dll I used for Windows 7, but it doesn't work for Windows 2008.   Please help.  

Net Framework Install fails

Reviewed the links and unfortunately that did not help. When my DYMO Stamps program stopped working I contacted them and they suggested I remove Net Framework 2x and download/install 3.5. Uninstall of 2x modules was uneventful. When I try to install 3.5 it goes through the whole install procedure and then reports it failed. I do not know where to look for an error log. Now "updates" is permanently in my tray trying to install 3.5. I get the following message: The following updates were not installed: Microsoft .NET Framework 3.5 Service Pack 1 and >NET Framework 3.5 Family Update for .NET versions 2.0 through 3.5 (KB952847) x86. Operating Windows XP Professional, SP3

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

.NET Framework 4 installs, but .NET4 Applications won't run and verification fails

I have the same problem described in following thread: http://social.msdn.microsoft.com/Forums/en/netfxsetup/thread/d8601382-83a4-4039-a71b-3b68dcdc6e26 I'm running Windows 7 x64 Ultimate I installed the .NET Framework 4 Client Profile and even tried installing the FULL/Extended edition the install appears to go in just fine, no errors or anything. Once I try to run a program it fails to work, I tried to verify my .NET4 installation using this tool... http://blogs.msdn.com/b/astebner/archive/2008/10/13/8999004.aspx It ALWAYS fails the verification no matter how many times I uninstall/clean up and reinstall... Here is a snippet from the verifier log... .....[07/22/10,17:35:35] Section [Registry - .NET Framework 4 Full (Wow6432Node)] - stop parsing entries [07/22/10,17:35:35] Processing custom action 'Custom Action - .NET Framework 4.0 test application' [07/22/10,17:35:35] ExecutablePath = 'Netfx40TestApplication.exe' [07/22/10,17:35:35] FriendlyName = '.NET Framework 4 test application' [07/22/10,17:35:35] TimeoutSeconds = '300' [07/22/10,17:35:35] WaitOnExit = 'true' [07/22/10,17:35:35] Silent = 'true' [07/22/10,17:35:35] Launching process 'Netfx40TestApplication.exe' now [07/22/10,17:35:35] Process successfully launched. Waiting 300 seconds for it to complete. [07/22/10,17:35:35] ****ERROR**** Process 'Netfx40TestApplication.exe' exited with return

2.0 application run on a machine with only 3.5 framework?

Hi all, This may be a silly question, but will an application developed in VS2005 and normally running on a machine with version 2.0 of the framework, run OK on a machine with only version 3.5 framework? I'm thinking it will as the 2.0 libraries are unchanged in 3.5??? Thanks John

Redistribute .NET Framework 4 with my application

Hi,   I have just made a custom installer for my project (previously used ClickOnce) and one problem I have is that the user is sent off to a website where s/he has to download and install .NET and then re-run my installation. That's not at all optimal. Also, it requires an internet connection.   I would like to bundle .NET Framework 4 Client Profile with my application, so the user only has to start my installation one time. I have searched around and found some talk about this aimed and .NET 1 and .NET 2.   First, am I allowed to do this? I have VS 2010 Professional, downloaded via DreamSpark using my student account. Second, how do I do this? I have checked "Microsoft .NET Framework 4 Client Profile" in Prerequisites and tried to set it to "Download prerequisites from the same location as my application" but I still get thrown away to a website where I have to manually install .NET.   Please, I need a more user-friendly deployment. :)

.NET Framework 4 installs, but .NET4 Applications won't run and verification fails

I seem to have the same problem as these good people, http://social.msdn.microsoft.com/Forums/en/netfxsetup/thread/58ff584d-e849-49e7-8c17-563296602017 http://social.msdn.microsoft.com/Forums/en/netfxsetup/thread/d8601382-83a4-4039-a71b-3b68dcdc6e26 .NET 4 installs (reporting no overt errors).. but will fail verification with this message. .NET 4 applications fail to run. [07/22/10,17:35:35] Launching process 'Netfx40TestApplication.exe' now [07/22/10,17:35:35] Process successfully launched. Waiting 300 seconds for it to complete. [07/22/10,17:35:35] ****ERROR**** Process 'Netfx40TestApplication.exe' exited with return code -2146232576 [07/22/10,17:35:35] ****ERROR**** Verification failed for product .NET Framework 4 Full I do get this event log error when installing .net 4.0 full version , but not the client. Of course neither one works. ErrorCode 2149842967   ErrorString    CommandLine wusa.exe "G:\e1781735b278c4779d6d\Windows6.1-KB958488-v6001-x64.msu" /quiet /norestart  Steps already taken to troubleshoot this include fully uninstalling .NET 4.0 and reinstalling (both client and full); reinstalling .NET 4.0 over itself with a repair install; installing .NET 4.0 full over a client install; I've also run full disk scans etc., and my system is fully up to date with Windows Updates. Any one know what that error code means? Maybe it can he

.Net Framework 2.0 SP1 fails to install with Error 0x641

We have a SBS 2003 server that has automatically installed updates just fine for several years.  Now it is failing to install Microsoft .Net Framework 2.0 Service Pack 1 (KB110806).  The only error that I can find is Error Code: 0x641The server's C: drive has 5.2 GB free and the other hard drive (D:) has 61 GB free.  It has 2 GB of RAM and a 3GB paging file.I posted this in Microsoft's "Windows Update Newsgroup" and I was told to come here.  I was told to download the collect.exe file to collect the .NET logs, but when I run that, I get the error "No log file exists."I would appreciate your help.

Framework 1.1 Application errors when run over network




I recently picked up a project for a client that is stuck on the 1.1 framework. The application in itself is fairly straight forward. A few datagrids and pic boxes to display data from an mdb file.


When run from the host machine it works a treat and has no problems whatsoever, but when it is run from a network folder it crashes as soon as it tries to connect to the mdb file. This is running on a dev machine to match the clients so is sat on the 1.1 framework. When I run it on my machine which has all frameworks it works fine.


So does anyone know what I have to do to make this work as it's proving to be a show stopper with the client. And before you ask, they won't move frameworks, I tried getting them to do that and they said no.


Just to add as well, I have very good error trapping throughout the app and it doesn't return anything. All message returned are blank which is making it an even bigger pain in the asre. Considering it's such a simple app.





WCF (.Net framework 3.5) Call from Windows Application (.net framework 2.0) is too SLOW!!!

WCF (.Net framework 3.5) Call from Windows Application (.net framework 2.0) is too SLOW!!!

It gives more frustration when the new technology means the performance drawbacks. Do I've to dump .Net 3.5 ??????

We've a web service that is being called from the Windows Application and it is loading the initial screen after 30 seconds. The binding is done through coding:


ET2Service service = new ET2Service();
service.Url =

Testing WPF Application w/ UIAutomation Framework


Hi All,


I have a pretty complex WPF application, but for simplicities sake, let's suppose I have a very simple WPF application with a Button on it.


I have a separate console application that I want to invoke the button on the WPF application. Using UIAutomation I'm having a little trouble finding the intuitive way to do this.


So far the steps for doing so look like:

  • Use Process.Start to launch WPF application
  • Use Process Id from above step to get Window handle for UI Automation framework
  • Once Window handle is obtained, find Button child element of Window
  • Invoke Button
This seems pretty straightforward, and I'm understanding the first 4 steps. The 5th step (invoking the Button), is where I'm having some trouble.

Anyone have experience with something like this?

deployment of .Net framework based application




I want to make setup of .net framework based application in which following components must be included within setup file.


- .Net framework 2.0

- Windows Installer 3.1

- MDAC 2.8


I don't want to provide the link and let user manually download it and install it.

Setup should check whether this components are installed or not.

I tried Inno Setup maker but it requires internet to download .net framework then it installs.


My application is for india and internet is not widely spread in india till now.


Please help me ....

Can we freely distribute .NET framework 3.5 SP1 with our application?



Is the .NET Framework 3.5 SP1 free to distribute without obtaining a license?

I don't see a redistributable package for .NET Framework 3.5. Can I still redistribute it?


Installation of .NET Framework 2.0 SDK fails with error #1935 (HRESULT 0x800700C1)


I tried to install the .NET Framework 2.0 SDK on Windows 7 Pro x64 since I need some of those tools to localize files. Unfortunately, the installation soon fails with the following error

Error 1935. An error occurred during the installation of assembly 'Microsoft.VisualStudio.Zip,Version="",Culture="neutral",ProcessorArchitecture="MSIL",FileVersion="8.0.50727.42",PublicKeyToken="b03f5f7f11d50a3a"'. Please refer to Help and Support for more information. HRESULT: 0x800700C1.

Sometimes, this error appears before the one mentioned above (but not always):

The installer has encountered an unexpected error installing this package. This may indicate a problem with this package. The error code is 2908.

 I have no idea why this happens and I could not find any answer to this problem on the web.



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