.NET with problems
-
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.
-
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.
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 -
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.
[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
-
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.
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
-
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.
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."