Deploying to Windows Server 2003 - visual-studio

Using visual studio 2013 on a windows 8 machine I created a F# console application. The app runs fine on the dev machine. But when I build a debug release and export it to a windows 2003 server and attempt to run, I continually get the error: not a valid win32 application even though the build configuration is set to "any cpu". Does anyone know how to solve this error? Thanks.

You are probably using .NET Framework 4.5 wich is not compatible with Windows Server 2003.
If you are not using anything from .NET 4.5 you can change on Visual Studio the framework targeted by the application to 4 and then run it on Windows Server 2003.
Also, here is the list of requirements for .NET Framework 4.5
https://msdn.microsoft.com/en-us/library/8z6watww%28v=vs.110%29.aspx

Related

Developing in Visual Studio 2005 for Windows Server 2012

Is it possible to install an ASP.net website developed with Visual Studio 2005 in a server with Windows Server 2012? Our client is planning to upgrade the server from Windows Server 2003 to Windows Server 2012. Will the application (already developed with VS 2005) run in a 64 bits operating system?
It is possible. Two things to make sure you do is to have the correct .Net version installed on the windows server and when you setup the new site in IIS (assuming IIS) that the application pool is set to allow 32-bit applications.
This will take you through how to enable 32-bit app pools (it is for IIS7 but IIS 8 is the same)
https://help.webcontrolcenter.com/kb/a1114/how-to-enable-32-bit-application-pool-iis-7-dedicatedvps.aspx
Visual Studio is just a development environment and is intendant of the target server type/version. You can use Visual Studio to develop any .Net application/website no matter where you want to run it. It is all about the server being configured to run a 32-bit .Net application.

How to enable teamcity agent for Build Tools 2013

Im trying to make a build of asp.net mvc 4 application on my teamcity server.
The server is Windows Server 2012 R2. with 64bit OS.
Teamcity version is 8.1 (build 29879).
If I set MSBuild version to MSBuild Tools 2013 agent is incompatible.
The reason is: Unmet requirements: MSBuildTools12.0_x64_Path exists
I made sure I install .net sdk, and as its a Windows Server 2012, .net 4.5 is already installed there (4.5.2 in my case). What should I do to make it work?
Have you installed the Build Tools? They no longer come with the .NET framework, part of Windows or not, but with the Studio or as a standalone installer. Don't forget to restart afterwards.

How to run windows application on client machine having service pack -1

I had developed a window application in visual studio 2012 using .net frame work 4.5
now i want to run that application on client machine having windows xp sp1
so i m stuck how to proceed ahead
what is requirement of client machine.
any help will be appreciated.
.NET 4.5 does not support XP.
http://msdn.microsoft.com/en-us/library/8z6watww%28v=vs.110%29.aspx
You'll need to rebuild with a lower .NET version.

Getting error trying to deploy a sharepoint 2010 workflow package from Visual Studio 2010 in Windows 7

I'm trying to deploy a Nintex Sharepoint workflow from Visual Studio 2010, on a Windows 7 Ultimate x64 machine, running Sharepoint 2010, and I keep getting this error:
Error occurred in deployment step 'Recycle IIS Application Pool': Microsoft .NET Framework 3.5 SP1 is not installed on this system. It is required to perform this operation.
Any ideas what the problem might be or how to fix?
I kind of stumbled across the answer. I found a couple people who addressed similar issues by disabling .NET Framework 3.5.1 in Windows Features.
I turned the feature off, rebooted and it works. No more error.
I think that as the error states, you need to install Microsoft .Net Framework 3.5 SP1 on you machine. You can download it here: http://www.microsoft.com/download/en/details.aspx?id=22

How can I program an application on the for the .net framework 1.0?

I have a Windows 7 machine and I see that Microsoft does not recommend Visual Studio 2003 on the computer (Windows 7). How can I develop an application for the .net framework 1.0 then? I currently have visual basic express 2010.
EDIT: 1.0 runs on older machines that require administrator to update.
VS 2010 will only let you target back to 2.0 Framework. You can either put XP on your development machine, or use a virtual machine with XP to put VS 2003 on it.
There seems to be a way to do it. It does not seem to be supported but you can give this a try.
Installing 1.X Framework on Win7

Resources