I have written a windows service in c# using ide visual studio 2012.
When I tried to install it on a windows server 2003 I got this error message:
Prerequisite check for system component Microsoft .NET Framework 4.5 (x86 and x64) failed with the following error message:
"Installation of the Microsoft .NET Framework 4.5 is not supported on this operating system. Contact your application vendor."
So I went back into my project and set the target framework to 4.0. I then rebuilt the solution, re-added the installer and published again. However, when I try to install I get the exact same error.
For some reason it is not detecting that I have changed the framework to 4.0. Any ideas where I have force this change or where even to look??
Extra Info: It seems to be using click-once deployment.
The only solution I came up with was to create a new project with the correct .NET version. Copied all my code across and it worked... shrug
.NET Framework 4.5 is not supported on Windows XP, Windows Server 2003 and similar.
Supported Operating Systems (as per System Requirements page):
Windows 7 Service Pack 1, Windows Server 2008 R2 SP1, Windows Server 2008 Service Pack 2, Windows Vista Service Pack 2
Windows Vista SP2 (x86 and x64)
Windows 7 SP1 (x86 and x64)
Windows Server 2008 R2 SP1 (x64)
Windows Server 2008 SP2 (x86 and x64)
If you're using Wine to install it, run winecfg and change your Windows version to higher.
Otherwise install lower version of .NET Framework such as 3.0. If you're compiling the project, change it in Target framework.
Related
I have asp .net 4 application running in development (local) on windows 8.1 & Visual Studio 2013, installed .net framework version 4.5, IIS Express
The production server is setup with windows server 2003 and installed .net framework version 4.0, IIS 6
The web application Target Framework is .net framework 4
Lately i have encountered SqlException (0x80131904): "Some part of your SQL statement is nested too deeply".
This exception occurs only in production (on windows server 2003) where the runtime version is 4.0.30319.1022
In development (local on windows 8.1) where the runtime version is 4.0.30319.34011 this exception does not occur.
The SQL generated by LINQ in the server is different than the SQL generated in the local.
After a little research i found that different version of .net is causing this behavior.
As far as i know, the difference between the two versions is:
version 4.0.30319.1022 is built on .net framework 4.0 and version 4.0.30319.34011 is built on .net framework 4.5
Since .net framework 4.5 is not supported on windows server 2003, I would require targeting the older version on my dev machine.
Is there a way to target my dev instance to use the exact same .NET framework version or entities dll that is used in order to receive the same behavior in both dev & prod instances?
Thanks in advance,
Shai
I was trying to install Windows SDK which supports .NET 4.5 in a Windows 2008 server. But I couldn't find any link for the same. All I could find was this:
Windows SDK for Windows Server 2008 and .NET Framework 3.5
Can't we install SDK which supports .NET 4.5 in a Windows 2008 server, do I have to upgrade to Windows 2012 server? I could see that .NET 4.5 framework supports Windows 2008 server but not sure about the SDK. The reason I am looking for this is because, I am trying to install an assembly using GACUTIL, but when I install Windows SDK and try running GACUTIL, it states that the version is different.
Any ideas?
Got it. I was installing wrong SDK, I was installing SDK for 7.1, I should actually install SDK for 8.1. Silly mistake.
I have an application whose deploy process builds the source code on the server I'm deploying to. My production server is Windows 2k8 (not 2k8 R2). My app is not compiling as the reference assemblies for .NET Framework 4.5 are not present.
I've tried installing the Windows 8 SDK and the option to install the reference assemblies isn't there. I've also tried installing Visual Studio Express 2012, which supposedly has the assemblies, but no luck there. So....
How do I get .NET Framework 4.5 applications to compile on a Windows Server 2k8 R1 machine?
There are manual instructions to install .NET 4.5 Reference assemblies of Windows Server 2008. Refer to following link:
http://msdn.microsoft.com/en-us/windows/hardware/hh852363.aspx#rn
I've installed the reference assemblies from:
The Microsoft .NET Framework 4.5.1 Developer Pack for Windows Vista SP2, Windows 7 SP1, Windows 8, Windows 8.1, Windows Server 2008 SP2, Windows Server 2008 R2 SP1, Windows Server 2012 and Windows Server 2012 R2
http://support.microsoft.com/kb/2878632/en-us
I have developed a desktop application in vb.net using visual - studio 2010.
I want to run that application in different pc every time. For that I have created a build of that application.
But I am not able to run this application other than my pc.
I also installed the dot net framework 4.0 in other pc but it gives error "WIC component not installed".
What should I do to run my application in different computer systems every time? , what are the pr-requisites for running the application.?
Please help. Thanks in advance.
Googling that error would seem to suggest you need to install the Windows Imaging Components on the other machines.
64 bit downloads
32 bit downloads
Judging the by the system requirements I'm guessing Windows 7 onwards includes this by default.
Supported Operating Systems: Windows Server 2003
Windows Server 2003 R2 Datacenter Edition (32-Bit x86)
Windows Server 2003 R2 Enterprise Edition (32-Bit x86)
Windows Server 2003 R2 Standard Edition (32-bit x86)
Windows XP Service Pack 2 Windows XP SP2 Windows
Server 2003
We have built an app with Visual Studio 2012 and it runs beautifully on any Windows 7 or Vista machine, 32 or 64 bit. However, when I try to run the app on an Win XP machine, I get this:
**
Prerequisite check for system component Microsoft .NET Framework 4.5
(x86 and x64) failed with the following error message:
"Installation of the Microsoft .NET Framework 4.5 is not supported on
this operating system. Contact your application vendor."
**
And then of course, when I try to install .NET 4.5 on the Win XP machine, I find out it's not supported.
At this point, I'm just wanting to know what can be done to get this app to run on Win XP. It's a calculator application written in visual basic.
Thanks Guys!
.Net framework 4.5 is not supported in Windows XP. If you're not using any .Net 4.5 features you can rebuild your app using .Net Framework 4 (In the Project properties).
I always hate these kind of answers, but a quick google search indicates that you can't get .net 4.5 to run on Windows XP.
IF you really really need your application to run, you can always use earlier versions of the framework
you can do this by
Right click on your project and go to
properties
application
target framework
and change that to something elxe