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


Top 5 Contributors of the Month
SP
satyapriyanayak
Subhransu Sekhar Jena
abhays
DotnetUser
Post New Web Links

Could not resolve mscorlib for target framework '.NETFramework,Version=v4.0'

Posted By:      Posted Date: November 20, 2010    Points: 0   Category :Windows Application
 

I have developed a WF4 solution on a 32-bit Windows Server 2008 environment running the .NET 4 framework and Visual Studio 2010 Ultimate. Because also BizTalk is installed on that box, those prerequisites are installed as well (like VS 2008).

Now I had a new 64 bit machine ready with Windows Server 2008 R2 and BizTalk 2010, so with only VS 2010 and all other BizTalk 2010 prerequisites.

I wanted to continue development on that Workflow Service on the new machine. Opening the solution in VS2010 was not a problem, but when I tried to open the XAMLX file on the new server, I ran into this error. Strange thing is that if I create a new Workflow Service in VS2010, it runs just fine.

Can anybody help me with this? The solutions presented in other discussions couldn't help me.

System.InvalidOperationException: Could not resolve mscorlib for target framework '.NETFramework,Version=v4.0'.  This can happen if the target framework is not installed or if the framework moniker is incorrectly formatted.

Server stack trace:
   at Microsoft.VisualStudio.Shell.Design.VsTargetFrameworkUniverse..ctor(IDesignTimeAssemblyLoader assemblyLoader, IVsDesignTimeAssemblyResolution projectAssemblyResolution, IVsSmartOpenScope dispenser)
   at Microsoft.VisualStudio.Shell.Design.VsTargetFrameworkUniverse.GetUniverse(IDesignTimeAss


View Complete Post


More Related Resource Links

Windows Forms: Developing Compelling User Controls that Target Forms in the .NET Framework

  

In the beginning, writing controls meant dealing with Windows messages. Then came Visual Basic controls, which introduced methods, properties, and events. Later, ActiveX controls, which ran atop COM, became popular. While each innovation in control writing brought more flexibility, nothing has matched the versatility of the new .NET Windows Forms controls and Web Forms controls. This article, the first of a two-part series, introduces the reader to Windows Forms, beginning with their inheritance from one of the .NET CLR base classes, which makes control creation much faster than before. Control programming is illustrated through the development of a login control. The equally flexible Web Forms controls will be covered in Part 2.

David S. Platt

MSDN Magazine April 2002


supportedRuntime version in config for .Net Framework 3.5

  
We have an application built on .Net Framework 2.0 using VS2005. Now we would like to support .Net Framework 3.5 using VS.Net 2005 without upgrading to VS 2008( I read online at many places that this can be done without upgrading to VS2008).Out app.exe.config file looks like this currently:<?xml version="1.0" encoding="utf-8" ?> <configuration> <startup>  <supportedRuntime version="v2.0.50727"/> </startup></configuration>Should we need to modify this to support .Net Framework 3.5? If Yes what should it look like.FYI - We are having .Net Framework SP1I am bit confused with .Net Framework version and Runtime Version. Please clarify.

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!

Regarding .Net framework version and Visual Studio version

  
Hi all,         I have done my project in Visual Studio 2008 and .Net Framework 3.5. Now is it possible to compile and run the same project in Visual Studio 2005 and .Net Framework 2.0 without any problems. Should anything be taken care of??? Thanks for any help

Problem with ASP.NET Ajax, Framework version 4.0 and the SeaMonkey browser...

  
I have a site that I'm upgrading to the 4.0 framework and I've come across an issue with asp.net ajax and the SeaMonkey browser. It seems like the script manager is not registering the scripts on the page in seamonkey (but it works fine in IE, Firefox, Chrome, Opera, and Safari). Now, if I change the user agent string in SeaMonkey to use the user agent string from any of those other browsers, it works fine. So I guess my question is does ASP.NET Ajax check the browser's user agent to determine what scripts to register and, if so, is it possible that SeaMonkey is not included in the list in the 4.0 framework (I should add that it's working fine in the 3.5 framework so it seems to me like this is a difference between the two framework versions).

Newbie-Can I remove older version of .NET Framework

  
Hey,Got different versions on my Windows XP; 1.12.0 Service Pack 22.0 SP 2 - Language Pack3.0 SP 23.0 SP 2 - Language Pack3.5 SP 11- For obvious reasons these take a lot of space, can I remove any of them and which?  2- Are they a built up or separate?  3- If I can only use the latest 3.5 SP1;  is there a language pack with it?4- I have not been able to update anything for over a year.  It keeps telling me, Windows has some new installs for me but won't download properly.  Sorry I can't tell you the specific error it gives me, but I believe it has to do with a previous version as it is related to a Service Pack 2.  Sorry I know it's vague, but it takes for ever before I get the error message.  If you can't give me any idea, I'll try it again and post more info.In the meantime I'd appreciate any help you people can give me.Sunshine

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

  
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=9.0.242.0, 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

VS2010 seems to target wrong framework

  
I have a simple website which is fine if I target .Net 4, but if I select the target framework as 3.5, it seems to incorrectly target .Net 2.0? Switching back and forth between 3.5 and 4.0 targets actually results in the pages (via showing System.Environment.Version.ToString()), and the Dev Webserver itself (via double-clicking on the system tray icon), reporting 4.0 when targetted for 4.0, and 2.0 when targetted at 3.5. All versions of .Net are installed on my machines, and I have reproduced this on 2 separate machines, one with VS2010 Pro, and the other with Visual Web Developer 2010 Express. Is this a bug, or am I missing something? Thanks for any help Ade

Security Update for Microsoft .NET Framework, Version 1.1 Service Pack 1 (KB928366)

  
I have been trying to install   Security Update for Microsoft .NET Framework, Version 1.1 Service Pack 1 (KB928366)   since it was released but downloads ok but it will not install. Everytime installation of this update fails!   Help...

Problem Installing .Net Framework Version 4.0

  
I am trying to install .net 4 on my Vista business machine SP2. It however continually fails with "class not registered" error. No matter what i try and do i cannot get it to install. Has anyone come across this error before, was there a resolution? I need this to be able to install VS2010 on my machine.   Thankyou

Unrecognized attribute RequirePermission, not because of incorrect framework version in IIS...

  
So I have been struggling with this error for a while and normally i get around it by removing the attribute and all is good, not quite simple this time. Based on my research on this error, this is usually caused by incorrect .net version selected in IIS but for me this is usually not the case.  For the app i am working on, it is a 4.0 app, the asp.net version in IIS is set to 4.0, and the error is caused by the RequirePermission attribute in the 4.0 machine.config.  Since it is calling the 4.0 machine.config, that only tells me the version is set correctly.  So what is wrong, why is it not recognized? I have tried removing all the requirePermission attributes in the machine.config, then something else is not recognized, I believe it was the configProtectedData section.  Endless error messages.  It seems to be happening only on one machine.  I did try uninstalling and reinstalling 4.0 and it didnt help, very frustrated!!! Suggestion any one? Thanks in advance!

Windows 7 message at start up:microsoft.net framework version 2.0 is required to continue

  
It always displays this at start up, which is weird since it has these versions installed. Any suggestions?

System.Security.Permissions.SecurityPermission, mscorlib, Version=2.0.0.0, Culture=neutral, PublicKe

  

Hi,

I am currently working on SQL server reporting. I have created custom assemblies. I am loading the custom assebly in the rdl file.

I am getting following exception

 

An error occurred while executing OnInit: Request for the permission of type 'System.Security.Permissions.SecurityPermission, mscorlib, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089' failed. (rsErrorInOnInit)

 

 

Please let me know if anyone knows the reason.

Thanks in Advance.


Installing .NET Framework Version 1.1 Redistributable and .NET framework 2.0

  

Hi,

I am trying to install .NET Framework Version 1.1 Redistributable or .NET framework 2.0 packages, but both of them are sending an error. My OS is Windows 7 with 64-bit. Version 1.1 says it can't be installed due to incompatibility and version 2.0 rejects 64-bit OS.

I am keen on installing especially these packages in order to run EditVoicePack for Flight Simluator 2004. Is there any options I can install it or it simply doesn't work with Windows7 64-bit system?

Thanks.

Anna


Categories: 
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