C# Winforms program runs on one computer and not another
<p>I wrote a program in C# for the place I work and as stated in the title, its working on one computer (my main work computer) but not on another (my spare work computer).</p>

<p>Here are the detail of the two computers:</p>

<p>My main computer, which I have local admin rights to and is the computer I used to create this program in Visual Studio 2015 Express, has these .NET Frameworks installed and the version I used on this program specifically. (I had to combine the two screenshots into one because I don't have enough reputation to attach more than 2 files):</p>

<p><a href="http://i.stack.imgur.com/lDmsX.png" rel="nofollow">Main Computer .Net Frameworks Installed &amp; Used</a></p>

<p>My spare computer I do NOT have admin rights to has these .NET Frameworks installed:</p>

<p><a href="http://i.stack.imgur.com/ApdmO.png" rel="nofollow">Spare Computer .Net Frameworks Installed</a></p>

<p>I used Visual Studio's built in Publish functionality on my main computer  to deploy this program to my spare computer, but when I try run the setup.exe, I get an error that creates this output:</p>

<pre><code>PLATFORM VERSION INFO
    Windows             : 6.1.7601.65536 (Win32NT)
    Common Language Runtime     : 4.0.30319.17929
    System.Deployment.dll       : 4.0.30319.17929 built by: FX45RTMREL
    clr.dll             : 4.0.30319.17929 built by: FX45RTMREL
    dfdll.dll           : 4.0.30319.17929 built by: FX45RTMREL
    dfshim.dll          : 4.0.41209.0 (Main.041209-0000)
SOURCES
    Deployment url          : file:///C:/Local%20Files/Temp/QTC%20251.1%20Data%20Verification%20Tool.application
    Application url         : file:///C:/Local%20Files/Temp/Application%20Files/QTC%20251.1%20Data%20Verification%20Tool_1_0_0_0/QTC%20251.1%20Data%20Verification%20Tool.exe.manifest
IDENTITIES
    Deployment Identity     : QTC 251.1 Data Verification Tool.application, Version=1.0.0.0, Culture=neutral, PublicKeyToken=2223067c4825c23a, processorArchitecture=msil
    Application Identity        : QTC 251.1 Data Verification Tool.exe, Version=1.0.0.0, Culture=neutral, PublicKeyToken=2223067c4825c23a, processorArchitecture=msil, type=win32
APPLICATION SUMMARY
    * Installable application.
ERROR SUMMARY
    Below is a summary of the errors, details of these errors are listed later in the log.
    * Activation of C:\Local Files\Temp\QTC 251.1 Data Verification Tool.application resulted in exception. Following failure messages were detected:
        + Failed to load the runtime. (Exception from HRESULT: 0x80131700)
COMPONENT STORE TRANSACTION FAILURE SUMMARY
    No transaction error was detected.
WARNINGS
    There were no warnings during this operation.
OPERATION PROGRESS STATUS
    * [4/12/2016 11:28:21 AM] : Activation of C:\Local Files\Temp\QTC 251.1 Data Verification Tool.application has started.
    * [4/12/2016 11:28:21 AM] : Processing of deployment manifest has successfully completed.
    * [4/12/2016 11:28:21 AM] : Installation of the application has started.
    * [4/12/2016 11:28:21 AM] : Processing of application manifest has successfully completed.
    * [4/12/2016 11:28:23 AM] : Found compatible runtime version 4.0.30319.
    * [4/12/2016 11:28:23 AM] : Request of trust and detection of platform is complete.
    * [4/12/2016 11:28:24 AM] : Downloading of subscription dependencies is complete.
    * [4/12/2016 11:28:24 AM] : Commit of the downloaded application has started.
ERROR DETAILS
    Following errors were detected during this operation.
    * [4/12/2016 11:28:24 AM] System.Runtime.InteropServices.COMException
        - Failed to load the runtime. (Exception from HRESULT: 0x80131700)
        - Source: System.Deployment
        - Stack trace:
            at System.Deployment.Application.NativeMethods.GetRequestedRuntimeInfo(String pExe, String pwszVersion, String pConfigurationFile, UInt32 startupFlags, UInt32 runtimeInfoFlags, StringBuilder pDirectory, UInt32 dwDirectory, UInt32&amp; dwDirectoryLength, StringBuilder pVersion, UInt32 cchBuffer, UInt32&amp; dwLength)
            at System.Deployment.Application.Win32InterOp.SystemUtils.CheckSupportedImageAndCLRVersions(String path)
            at System.Deployment.Application.SubscriptionStore.CheckApplicationPayload(CommitApplicationParams commitParams)
            at System.Deployment.Application.SubscriptionStore.CommitApplication(SubscriptionState&amp; subState, CommitApplicationParams commitParams)
            at System.Deployment.Application.ApplicationActivator.InstallApplication(SubscriptionState&amp; subState, ActivationDescription actDesc)
            at System.Deployment.Application.ApplicationActivator.PerformDeploymentActivation(Uri activationUri, Boolean isShortcut, String textualSubId, String deploymentProviderUrlFromExtension, BrowserSettings browserSettings, String&amp; errorPageUrl)
            at System.Deployment.Application.ApplicationActivator.ActivateDeploymentWorker(Object state)
COMPONENT STORE TRANSACTION DETAILS
    No transaction information is available.
</code></pre>

<p>After doing some Google searching, I believe this is telling me there's a problem with the .NET Framework the program was created with and the version on the spare computer, but they're both 4.5, so I don't know how to fix it.</p>

<p>I don't understand why these two different .NET Framework 4.5's don't work together.</p>

<p>Is there a way for me to fix this so that it will work on my spare computer and a handful of other computers at my work WITHOUT needing to install anything?</p>

<p>Thanks for any help.</p>