Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. General Programming
  3. C#
  4. .NET with problems

.NET with problems

Scheduled Pinned Locked Moved C#
csharpdatabasesql-servervisual-studiosysadmin
5 Posts 5 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • I Offline
    I Offline
    Ismael Oliveira 2021
    wrote on last edited by
    #1

    Hi. I have created an app that modifies the config file of another app and modifies some data in SQL Server. I'm using Visual Studio 2019 with forms in C# . When I run it in my computer it works fine, but when I run it on another computer (without Visual Studio) it gives the message: "To run this application you must install .NET. Would you like to download it now?" Does anyone know what I must include in my app to resolve this issue? Thanks.

    D L B M 4 Replies Last reply
    0
    • I Ismael Oliveira 2021

      Hi. I have created an app that modifies the config file of another app and modifies some data in SQL Server. I'm using Visual Studio 2019 with forms in C# . When I run it in my computer it works fine, but when I run it on another computer (without Visual Studio) it gives the message: "To run this application you must install .NET. Would you like to download it now?" Does anyone know what I must include in my app to resolve this issue? Thanks.

      D Offline
      D Offline
      Dave Kreskowiak
      wrote on last edited by
      #2

      It's telling you to install the .NET Framework version you wrote the app against.

      Asking questions is a skill CodeProject Forum Guidelines Google: C# How to debug code Seriously, go read these articles.
      Dave Kreskowiak

      1 Reply Last reply
      0
      • I Ismael Oliveira 2021

        Hi. I have created an app that modifies the config file of another app and modifies some data in SQL Server. I'm using Visual Studio 2019 with forms in C# . When I run it in my computer it works fine, but when I run it on another computer (without Visual Studio) it gives the message: "To run this application you must install .NET. Would you like to download it now?" Does anyone know what I must include in my app to resolve this issue? Thanks.

        L Offline
        L Offline
        Lost User
        wrote on last edited by
        #3

        [Application publishing - .NET | Microsoft Docs](https://docs.microsoft.com/en-us/dotnet/core/deploying/)

        It was only in wine that he laid down no limit for himself, but he did not allow himself to be confused by it. ― Confucian Analects: Rules of Confucius about his food

        1 Reply Last reply
        0
        • I Ismael Oliveira 2021

          Hi. I have created an app that modifies the config file of another app and modifies some data in SQL Server. I'm using Visual Studio 2019 with forms in C# . When I run it in my computer it works fine, but when I run it on another computer (without Visual Studio) it gives the message: "To run this application you must install .NET. Would you like to download it now?" Does anyone know what I must include in my app to resolve this issue? Thanks.

          B Offline
          B Offline
          BillWoodruff
          wrote on last edited by
          #4

          The obvious requirement is to install the framework and other essentials the development machine uses on the 'other' machine. Strategies; 1) synchronize windows updates: as of the May 2019 update Win 10 includes FrameWork 4.8 2) get the 'other' machine user to install the missing whatevers, which may require power-user skills and access permissions: [^] 3) use an installer that will ensure the missing whateve4s are installed, like ClickOnce [^] , or, dotNetInstaller [^], or a commercial installer like InstallShield. 3a) compare ClickOnce with the Win installer: [^]

          «The mind is not a vessel to be filled but a fire to be kindled» Plutarch

          1 Reply Last reply
          0
          • I Ismael Oliveira 2021

            Hi. I have created an app that modifies the config file of another app and modifies some data in SQL Server. I'm using Visual Studio 2019 with forms in C# . When I run it in my computer it works fine, but when I run it on another computer (without Visual Studio) it gives the message: "To run this application you must install .NET. Would you like to download it now?" Does anyone know what I must include in my app to resolve this issue? Thanks.

            M Offline
            M Offline
            Matthew Dennis
            wrote on last edited by
            #5

            If you are using .NET Core or .NET 5 or 6 you can create a self-contained exe which includes all of the .NET Core/5/6 framework required.

            "Time flies like an arrow. Fruit flies like a banana."

            1 Reply Last reply
            0
            Reply
            • Reply as topic
            Log in to reply
            • Oldest to Newest
            • Newest to Oldest
            • Most Votes


            • Login

            • Don't have an account? Register

            • Login or register to search.
            • First post
              Last post
            0
            • Categories
            • Recent
            • Tags
            • Popular
            • World
            • Users
            • Groups