What causes ilmerge error code -2146232576? - ilmerge

Running ILMerge on new PC.
Worked fine on other PC, but now it exits with error -2146232576. Why?

-2146232576 decimal is ‭80131700‬ hex.
Error 0x80131700‬ is "improper installation of .NET framework"
Turns out that ILMerge needs .NET 3.5, which I didn't have installed.
Once I installed the 3.5 framework the error cleared and ILMerge ran successfully.

Related

MVC5 project run Monodevelop, but Mono terminal/command cannot run

I have developed Asp MVC5 project on VS2012.Now i need this projet run on linux with Mono.
I have installed Mono 3.2.3 and Monodevelop 4.2.5.
I successfully build MVC5 project with Monodevelop, and it works smoothly for me when I run with debug/without debug on Monodevelop.
But when i deploy this project using Monodevelop. And using Mono command (xsp4).
Many errors occured. For example:
System.TypeLoadException
Could not load type 'System.Web.UnvalidatedRequestValuesBase' from assembly 'System.Web, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a'.
Anyone have same problem with me ? I think Monodevelop using Mono for running ? This problem took me 3 days. But now, i still cannot solve this problems.
Please let me know why ? and how to solve this problem.
Thanks all.
I am assuming that when you say it runs with MonoDevelop you are running this on Windows and the error only occurs when you run it on Linux using Mono.
Looking at the Mono source code and the status page it seems that the System.Web.UnvalidatedRequestValuesBase is not yet implemented on Mono.

'Forms' is not a member of 'Windows'

I tried to change the Target Framework on my app recently from .NET Framework 4.5 to 4.5.2, but if I do I get the following error when trying to build: "'Forms' is not a member of 'Windows'" (that is, System.Windows.Forms). Changing to 4.5.1 works normally. I'm using Visual Studio 2013 Ultimate.
I had this error when changing to 4.5.2.
In my case the error was related to a MessageBox ... I replaced: "Windows.Forms.DialogResult.Yes" (which caused the same error message) with "System.Windows.Forms.DialogResult.Yes" which did the trick.
I had the same problem, me too with Windows.Forms.DialogResult enumeration values.
The project automatically imports System and System.Windows.Forms namespaces and worked fine up to 4.5.1.
In 4.5.2 I had to remove Windows.Forms. and just leave DialogResult.Ok (or whatever else) in my code, it seems to be a problem with namespaces resolution.
Make sure that you add System in front of the Windows.Form.
I ran into this with an application still targeted to .NET 4.0, where it failed on one (new) build server, but ran on my older ones.
I narrowed it down to the .NET 4.0 Targeting Pack only being installed on the old build servers. Targeting pack is included in Visual Studio, or the Windows 7.1 SDK. It is for some reason not distributed separately, and with support ending for .NET 4, 4.5 and 4.5.1, I don't suspect this is likely to change. Because my older servers have been around a couple years, they've gone through in-place upgrades and so had the targeting pack already.
When you install Windows 7.1 SDK on Server 2012R2, it complains something to the effect of "A pre-release version of .NET 4 is installed, please install the RTM version". As far as I can tell, it's simply because a newer version) is installed -- Server 2012R2 comes with 4.5.1. I tried to uninstall all newer versions, but was unable to get the SDK to install the targeting pack.
So to install:
Download the Windows 7.1 SDK ISO image
Unzip it
Run Setup\MTPack\netfx_dtp.msi EXTUI=1
You should now have a %programfiles(x86)%\Reference Assemblies\Microsoft\Framework\.NETFramework\v4.0\ folder with the 4.0 stuff.
(EXTUI=1 bypasses the restriction that it can't be installed separately).
This allowed me to compile projects still targeting 4.0 (or re-build old revisions/branches that were targeting it at the time).

.Net Reflector crash

I have problem with my .Net Reflector 8.3 application. When I double click it doesn't start and generates error.
.Net Reflector has just thrown an exception: Could not load file or assembly '{a755eaf2-c07e-4b95-b1ee-a3437dfa4635}', PublicKeyToken=3e56350693f7355e' or one of its dependencies. The system cannot find the file specified.
I am using Windows 8.0 x64. I've also enabled .Net framework 3.5 and 4.5.1 installed on my machine. I've searched every where and find nothing to solve.
Thanks in advance.

Unable to install .net framework 4.0

I have cleaned up the .net frame work 4.0 from my system using clean utility. It was uninstalled .net frame work framework 4.0. Then i tried to reinstall 4.0 using the set up file got from below link.
http://msdn.microsoft.com/en-us/netframework/aa569263.aspx
But i am getting installation failed error.
Error msg : Installation failed with error code: (0x80070643), "Fatal error during installation.
I am using windows server 2008 32bit OS.
Can any one please give me a solution?
Regards,
Karthik.
This usually means you already have a .NET installation on your system but it's corrupted.
If this is the case you can try the following:
Go to Control Panel->Programs and Features and open the .NET Framework 4 Client Profile installer.
Select Repair .NET Framework 4 Client Profile to its original state. Reboot afterwards.
After this is done try to reinstall .NET Framework 4 using the offline installer
http://www.microsoft.com/en-us/download/details.aspx?displaylang=en&id=17718

IronPython 2.7/ 2.6 for .Net4 Install Error

I am gettting some really annoying errors while attempting to install IronPython so I can work with .Net4 assemblies.
I have tried both the .Net4 compatible installer versions of IronPython and both give me an error. The 2.7 one says it has had a problem installing assembly error code 2908. The 2.6 for .Net4 installer just says it has encountered an error and rolls back.
I have IronPython2.6 installed and working fine. But I need the .Net4 upgrade, I am running Win7 x64. Think maybe the OS configuration might be at fault? I realise this isn't a straight programming question, but I was hoping some of the SO community might be able to shed some light on this one, where my Google bashing has not.
If you don't need it to be installed, you can use the .zip package to get the files. The only thing the installer really does is add the assemblies to the GAC.