Ошибка при установке this application

Этот адрес электронной почты защищён от спам-ботов. У вас должен быть включен JavaScript для просмотра.
+7 (495) 215 10 82
ООО «Ново Биай» © 121205, Москва, территория инновационного центра «Сколково», Большой бульвар, 42, стр. 1, этаж 2, офис 2.177, ресепшн 3

Исследования осуществляются Novo BI при грантовой поддержке Фонда «Сколково»

 Исследования осуществляются Novo BI при грантовой поддержке Фонда «Сколково»
ИНН 7813219842
Государственная аккредитация Минкомсвязи России № 8353

When launching an installed app, we face an error – To run this application, you must install .NET Core – which stops us from launching that particular app. The app crashes at startup and asks us to install the .NET Core. The .NET Framework, as we know, is an open-source development platform that provides various frameworks for Windows, macOS, and Linux Operating Systems. In this error, the app that is crashing is failing to communicate with .NET Core, usually due to corrupted files. However, there it is not the only reason, there are various reasons that we are going to discuss hereinafter..

To run this application you must install .NET Core

If you see To run this application you must install .NET Core when launching a program, follow these solutions to resolve the issue:

  1. Check if .NET Frameworks are enabled
  2. Install .NET Core from the prompt
  3. Launch the app in Clean Boot
  4. Repair/Reset the corrupted app
  5. Reinstall the app

You might have to execute multiple solutions or one solution could do the job for you, regardless of this fact, we should start executing from the first solution.

1] Check if .NET Frameworks are enabled

Error 1935 when you try to install Office or other Programs

.NET Core and .NET Frameworks are two different things but are still related. If the frameworks are not working, it is very likely that you won’t be able to run the app that requires .NET Core. In that case, first of all, enable .NET Frameworks from Control Panel. Follow the steps to do the same on a Windows computer.

  • Open Control Panel by searching it from the Start Menu.
  • Change the View by to Large icons by clicking on the icon from the top-right corner.
  • Click on Programs and Features.
  • Then select Turn Windows features on or off.
  • Tick the box next to .NET Frameworks (all versions) and click Apply > OK.

It will take some time to install the missing features; once done, reboot your computer and then launch the app. This will do the job for you. If the framework is already running on your computer i.e, the box associated with it is already ticked, skip this solution or restart the service by unticking and ticking the same.

2] Install .NET Core from the prompt

If you face the same issue even after restarting or starting .NET Framework, you should install .NET Core from the prompt. To do the same, double-click on the app that was giving you the error, and then click on Yes when the dialog box appears. It will redirect you to the official website of Microsoft, dotnet.microsoft.com. Go to .NET Core and then click on Download .NET Core Runtime placed next to Run Apps. Now, select the right architecture x64 or x84 (for 84 and 32).

If we don’t know what’s the exact architecture of our OS, hit Win + S, type “See if you have a 32-bit or 64-bit version of Windows” and click Ok. There, in the System type section we  will be able to know our correct architecture.

Now that we know which file to download, start the process and download the file. Once the file is downloaded, run it and follow the on-screen procedure to complete the installation process. Hopefully, that will do the job for us.

Read: How to check .NET Framework version installed on Windows

3] Launch the app in Clean Boot

A third-party app can interfere with the app that we are trying to and show a dialog box saying that .NET Framework is missing. In that case, we need to boot into Clean Boot but make sure to not disable services related to the program that was giving us the error. Once the system launches in Clean Boot, launch the app and check if we get the same error message. In case, the app launches without any issues, enable processes manually to find out which app is the culprit. Once we know the culprit, boot in normal mode and uninstall it. Hopefully, this will resolve the issue for us.

4] Repair/Reset the corrupted app

It is a known fact that when we install an app, some space is allocated to it, and it keeps growing as files related to that particular app get stored there. When those files get corrupted, we will encounter various errors. If the .NET Core error appears when launching a Windows app, you can easily repair it from Settings, other than that, some apps provide an option to repair their files. In case, the app you are unable to launch doesn’t have this option, go to the next solution.

  • Open Settings.
  • Go to Apps > Installed apps or Apps & Features.
  • Look for the corrupted app.
    • Windows 11: Click on the three vertical dots and select Advanced Options or Modify.
    • Windows 10: Click on the app and then click on Advanced Options or Modify.
  • If you are in Advanced Options, just click on the Repair/Reset button. If you are in the program’s utility by clicking on Modify, follow the on-screen instructions to repair the app.

Hopefully, this will do the trick for you.

Read: Microsoft .NET Framework Repair Tool will fix problems & issues.

5] Reinstall the app

If nothing worked your last option is reinstalling the app. So, go ahead and uninstall it completely. After removing the app, delete related files, reboot the computer, download a fresh copy of the software and install it. To uninstall the app, follow the prescribed steps.

  • Open Settings by Win + I.
  • Navigate to Apps > Installed apps or Apps & Features.
  • Search for the app that was throwing the error code.
    • Windows 11: Click on the three vertical dots and select Uninstall.
    • Windows 10: Click on the app and then click on Uninstall.
  • Click on Uninstall when prompted.

This will do the trick for you.

How to install .NET core?

It is possible to install .NET Core by running the installation package of Visual Studio 2017/2019, as they contain the package related to the program. However, if you don’t want to install Visual Studio, or you just don’t need, or you are using a different version, just install .NET Core SDK or Runtime, and you will be good to go.

Hi!

I have a winexe application which is based on CefSharp.MinimalExample. The project file looks like this:

<Project Sdk="Microsoft.NET.Sdk.WindowsDesktop">
  <PropertyGroup>
    <OutputType>WinExe</OutputType>
    <TargetFramework>netcoreapp3.1</TargetFramework>
    <UseWindowsForms>true</UseWindowsForms>
    <RootNamespace>BrowserWrapper</RootNamespace>
    <ApplicationManifest>app.manifest</ApplicationManifest>
    <GenerateAssemblyInfo>false</GenerateAssemblyInfo>
    <Platforms>x86;x64</Platforms>
  </PropertyGroup>

  <ItemGroup>
    <PackageReference Include="CefSharp.WinForms" Version="83.4.20" />
  </ItemGroup>

  <ItemGroup>
    <!-- TODO: These updates are currently required because CefSharp.WinForms specifies
         <Private>false</Private>, which means these libraries will not be specified in
         the .deps.json file, and so the CoreCLR wouldn't load these. -->
    <Reference Update="CefSharp">
      <Private>true</Private>
    </Reference>
    <Reference Update="CefSharp.Core">
      <Private>true</Private>
    </Reference>
    <Reference Update="CefSharp.WinForms">
      <Private>true</Private>
    </Reference>
  </ItemGroup>

  <!-- Include CefSharp.BrowserSubprocess.Core so we can selfhost the BrowserSubProcess using our exe -->
  <Choose>
    <When Condition="'$(PlatformTarget)' == 'x64'">
      <ItemGroup>
        <Reference Include="CefSharp.BrowserSubprocess.Core">
          <HintPath>$(CefSharpBrowserProcessCore64)</HintPath>
          <Private>true</Private>
        </Reference>
      </ItemGroup>
    </When>
    <!-- x86, Win32 and AnyCPU -->
    <Otherwise>
      <ItemGroup>
        <Reference Include="CefSharp.BrowserSubprocess.Core">
          <HintPath>$(CefSharpBrowserProcessCore32)</HintPath>
          <Private>true</Private>
        </Reference>
      </ItemGroup>
    </Otherwise>
  </Choose>
</Project>

When I target netcoreapp3.1 and run the resulting exe, I get the following dialog:

image

I have followed the link to download the lastest 3.1 packages (in particular I though Desktop Runtime 3.1.7 might help, but it didn’t).

These are my SDKs and runtimes:

❯ dotnet --list-sdks
2.1.2 [C:Program Filesdotnetsdk]
2.1.4 [C:Program Filesdotnetsdk]
2.1.201 [C:Program Filesdotnetsdk]
2.1.202 [C:Program Filesdotnetsdk]
2.1.507 [C:Program Filesdotnetsdk]
3.0.100 [C:Program Filesdotnetsdk]
3.1.301 [C:Program Filesdotnetsdk]
3.1.401 [C:Program Filesdotnetsdk]

❯ dotnet --list-runtimes
Microsoft.AspNetCore.All 2.1.11 [C:Program FilesdotnetsharedMicrosoft.AspNetCore.All]
Microsoft.AspNetCore.All 2.1.21 [C:Program FilesdotnetsharedMicrosoft.AspNetCore.All]
Microsoft.AspNetCore.App 2.1.11 [C:Program FilesdotnetsharedMicrosoft.AspNetCore.App]
Microsoft.AspNetCore.App 2.1.21 [C:Program FilesdotnetsharedMicrosoft.AspNetCore.App]
Microsoft.AspNetCore.App 3.0.0 [C:Program FilesdotnetsharedMicrosoft.AspNetCore.App]
Microsoft.AspNetCore.App 3.1.5 [C:Program FilesdotnetsharedMicrosoft.AspNetCore.App]
Microsoft.AspNetCore.App 3.1.7 [C:Program FilesdotnetsharedMicrosoft.AspNetCore.App]
Microsoft.NETCore.App 2.0.3 [C:Program FilesdotnetsharedMicrosoft.NETCore.App]
Microsoft.NETCore.App 2.0.5 [C:Program FilesdotnetsharedMicrosoft.NETCore.App]
Microsoft.NETCore.App 2.0.7 [C:Program FilesdotnetsharedMicrosoft.NETCore.App]
Microsoft.NETCore.App 2.0.9 [C:Program FilesdotnetsharedMicrosoft.NETCore.App]
Microsoft.NETCore.App 2.1.11 [C:Program FilesdotnetsharedMicrosoft.NETCore.App]
Microsoft.NETCore.App 2.1.21 [C:Program FilesdotnetsharedMicrosoft.NETCore.App]
Microsoft.NETCore.App 3.0.0 [C:Program FilesdotnetsharedMicrosoft.NETCore.App]
Microsoft.NETCore.App 3.1.5 [C:Program FilesdotnetsharedMicrosoft.NETCore.App]
Microsoft.NETCore.App 3.1.7 [C:Program FilesdotnetsharedMicrosoft.NETCore.App]
Microsoft.WindowsDesktop.App 3.0.0 [C:Program FilesdotnetsharedMicrosoft.WindowsDesktop.App]
Microsoft.WindowsDesktop.App 3.1.5 [C:Program FilesdotnetsharedMicrosoft.WindowsDesktop.App]
Microsoft.WindowsDesktop.App 3.1.7 [C:Program FilesdotnetsharedMicrosoft.WindowsDesktop.App]

If I change to netcoreapp3.0, I don’t get the dialog.

Am I missing something obvious?

Написал консольные приложение на C#, скомпилил его (в VS это называется «Опубликовать»), но при запуске на других компах вылазит ошибка «To run this application, you must install .NET Core». В настройках сборки я изменил тип открытия на «Автономный», класс, ошибка исчезла, но теперь мой exe весит не 1.5 МБ, а 60 МБ.
Какие есть способы обойти установку .NET Core? При этом получить екзешник с адекватным весом?


  • Вопрос задан

    02 февр. 2022

  • 2966 просмотров

Разрабатывать приложение с более старой версией .net
Например 3яя есть даже на win7 по умолчанию, а в 10-ке — 4.6 версия, вот список ревизий ос и версий встроенных в них .net

p.s. машины, на которых почему то не установлен последний .net это что то странное, сейчас некоторые даже инсталяторы пишут на .net, т.е. на такой машине без .net тупо ничего не запустится

Машины должен кто то администрировать, пусть он и настраивает как надо
а если там linux будет стоять, будете прикладывать к своему exe-шнику инсталятор windows?

Пригласить эксперта

Есть несколько вариантов:
1. Использовать .net 6 — он умеет тащить за собой не весь рантайм, а только то что нужно для работы.
По крайней мере Hello World в 12мб получалось уместить (single file + self contained + assembly trimming)
2. Поставлять программу вместе со скриптом, который проверит, установлен ли .net runtime и установит его сам, скачав из интернета
3. Забить и оставить как есть (засунуть в архив)
4. Использовать .NET Framework, который идёт на винде из коробки, но имхо — это шаг назад по всем параметрам, и так делать не стоит.

UPD: Hello world таки весит 12 мегабайт


  • Показать ещё
    Загружается…

30 янв. 2023, в 08:09

1000 руб./за проект

30 янв. 2023, в 07:48

500 руб./за проект

30 янв. 2023, в 07:32

3000 руб./за проект

Минуточку внимания

Hi Guys, Today I am Going to tell you How to Fix “To Run this Application You must Install .net” Error in Windows 7,8,8.1,10 &11?

Check Out This: How to Fix “Some of these settings are hidden or managed by your organization” in Windows 10 & 11?

Are you Looking for “How to Fix “To Run this Application You must Install .net” Error”? (or) “How to Fix Framework ‘microsoft.windowsdesktop.app’ version ‘5.0.0’ was not found?”.

You are at the Right Place to Get Your Answers & Solve the Issue/Error.

This Error message appears when the PC Doesn’t have Microsoft .NET Framework installed or activated on Windows OS. Most of the Users and Gamers Face this Issue. It happens when Microsoft .Net Framework is not installed on your PC or it may be corrupted. Most of the Softwares/Programs and Games require .NET to run the applications properly without any errors .Net was used by the game engine & also enables safe cross-platform scripting across multiple gaming platforms..Net is mainly used in many web-based applications and also it is used for building websites and browsers and also building apps for Mobiles.

.Net plays a greater role in Gaming Industry..Net is a programming language developed by Microsoft. It was created to make applications that could run on Windows OS. The first version of the .Net framework is called as Microsoft .Net Framework 1.0 and it was released in the year 2002. Now the current version is Microsoft .NET Framework 4.8.1. There is a lot of variety of programming languages available on the Microsoft .Net framework. Some of the Commonly Languages Used are Visual Basic and C#. So The Developer can Choose any Language he wants and develop the Programs, games, and applications. If you keep on getting this error “To Run this Application You must Install .net” then follow our below-given guide to fix the issue quickly.

Let’s See About it.

Steps For How to Fix “To Run this Application You must Install .net” Error in Windows 7,8,8.1,10 &11?

Method 1: Download & Install Latest .NET Runtime & .NET Desktop Runtime

Step 1: First of all, Open Control Panel & Open Uninstall Programs and Check Whether the Microsoft .Net Framework is installed or not.

If it is installed, then uninstall the Existing Version of Microsoft .Net Framework and reinstall a newer version of .Net Framework.

If it is installed, then follow the below-given steps.

Step 2: Goto the Google Website & Type .net Framework and Search and Open the Official Microsoft .Net Framework Webpage.

(Or)

Step 2: Download the Latest .NET Runtime & .NET Desktop Runtime & .NET SDK Applications Using the Links Given Below.

Download .NET 5.0 Runtime

https://dotnet.microsoft.com/download/dotnet/5.0/runtime

Download .NET 5.0 SDK

https://dotnet.microsoft.com/download/dotnet/5.0

Download .NET 6.0 Runtime

https://dotnet.microsoft.com/download/dotnet/6.0/runtime

Download .NET 5.0 SDK

https://dotnet.microsoft.com/download/dotnet/6.0

Step 2: After Downloading .NET Runtime & .NET Desktop Runtime & .NET SDK, Install the Applications One By One.

Restart Your PC.

Method 2: Repair the .NET Framework Using .NET Repair Tool

If it is already installed the .Net Framework then you can also try the .NET Framework Repair Tool Developed by Microsoft. This tool detects and tries to resolve the issues by applying known fixes or by repairing the installed product.

Step 1: Goto the Google Website & Type .net Framework and Search and Open the Official Microsoft .Net Framework Webpage.

(Or)

Step 2: Download the Microsoft .NET Framework Repair Tool Using the Links Given Below.

https://www.microsoft.com/en-in/download/details.aspx?id=30135

That’s It. You’re Done. Have a Nice Day.

@@@ Leave Comments @@@

##Stay Safe Guys And Live Happily ##

Baldur’s Gate 3 LariLauncher.exe not working – It looks like a lot of people are being unable to play Baldur’s Gate 3 due to the .NET core bug. Is there a fix? Lets find out.

Baldur’s Gate 3 is finally here on Windows and Stadia, and RPG fans are loving every bit of the game. Despite being in Early Access, Larian Studios has added a ton of stuff in the game, which makes the game feel more like a AAA title.

But there is a problem. Just like every Early Access game, Baldur’s Gate 3 also has a lot of bugs. Some are pretty annoying while some are not so much. The one we are taking a look at here is the .NET Core bug.

So what is this bug all about? Well, whenever some players are trying to start Baldur’s Gate 3, they are getting an error where there is a window with “LariLauncher.exe” written on top and here is what the message says : To run this application, you must install .NET Core. Would you like to download it now?

larilauncher not working

Now, when people first saw this error message, they thought that if they just click on “Yes”, then .NET Core will get downloaded. And they will be able to play the game. It seems like that is not the case. Here is what Steam user Cokomantis has to say:

When I try to launch it, i get the following: “to run this application, you must install .NET core. would you like to download it now?”
I obviously click yes, i get 2 options: x64 and x86.
Since my windows is 64bit, i tried x64 first. it was already installed, so i clicked repair. larilauncher still doesn’t work.
Then i downloaded x86 to be sure, installed it. still doesn’t work.
then i uninstalled and reinstalled x64, still nothing.
Uninstalled and reinstalled both, still no.
What to do?

How to fix this issue

Fortunately, there are working fixes for this bug and they have been suggested by some Steam users only, who have managed to fix this issue.

This first fix has been mentioned by a Steam user called ed1g1tal. Here is what he has to say:

This may be due to having your %ProgramFiles% set to other than the C: drive. I fixed this by copying my “G:Program Filesdotnet” directory (Note your drive may be other than “G:”) to “C:Program Files”. Now the Larian launcher should work.

What he means is, just go to the drive labeled C: and check the “Program Files” folder, if there is no “dotnet” folder in there go to other drives and look for the same thing, once found, select the folder and copy it, do back to “Program Files” in C: and paste.

If the fix mentioned above doesn’t end up working for you, then you can try the second fix that has been mentioned by Moonlit. According to him/her, if you got to this link and download .NET Core directly from there and then install it, the error should be fixed for you. So try doing that.

[Original Post]


If you think this guide had helped you then let us know in the comment section below. Also if you have any addition to make regarding this topic then also you can comment below. And for more Baldur’s Gate 3 guides keep an eye on Frondtech. Happy Gaming!


That’s all folks!

Last Updated on October 7, 2020

Shoaib

Shoaib, 30, is a simple guy who loves to play video games, and enjoys new cuisines sporadically. He has been gaming since he was 7 years old, and with an experience of 22 years, under his belt, there is not a single AAA game in this world, that he hasn’t played. Despite being a MBA Graduate he decided to follow his passion. And because of his love for gaming, Frondtech came into existence.

Обратил внимание, что в папке с запускным файлом из прошлой статьи (пример на WPF), после компиляции присутствуют ещё несколько файлов:
SingleInstance.deps.json
SingleInstance.dll
SingleInstance.exe
SingleInstance.pdb
SingleInstance.runtimeconfig.dev.json
SingleInstance.runtimeconfig.json

При этом раньше в результате компиляции получалось только три файла:
SingleInstance.exe
SingleInstance.exe.config
SingleInstance.pdb

Файлы с расширением .pdb нужны для отладки, поэтому я не понимаю, зачем они нужны в релизе. Генерацию подобных файлов можно отключить:
▶ ▶ ▶ ▶ ▶

Я перенёс файл SingleInstance.exe на другой диск и попытался его запустить, но ничего не произошло. Тогда я перенёс также файл SingleInstance.dll. на этот раз, при попытке запустить приложение, я получил ошибку:

SingleInstance.exe

To run this application, you must install .NET Core.
Would you like to download it now?

Вообще у меня вроде как уже установлен необходимый пакет, ну да ладно — скачал и установил, но всё равно ошибка сохранилась.

Посмотреть список установленных сред выполнения .NET можно такой командой в PowerShell:

dotnet --list-runtimes

Про файлы базы данных программ (PDB) написано много всего. Но я всё равно не понял, зачем это нужно в релизе.

Приложение удалось запустить после того, как я перенёс третий файл: SingleInstance.runtimeconfig.json.

Вот его содержимое:

{
  "runtimeOptions": {
    "tfm": "netcoreapp3.1",
    "framework": {
      "name": "Microsoft.WindowsDesktop.App",
      "version": "3.1.0"
    }
  }
}

Это конечно поменьше, но всё равно странно, зачем столько сложностей. Хотя вот здесь или здесь всё разложено по полочкам, так что можно почитать. Покопавшись в инете, нашёл способ запаковать всё это в один файл, чтобы в дальнейшем подобных недоразумений не возникало. Делается это с помощью «публикации».

Публикация приложения

1. В открытом проекте выбираем конфигурацию сборки Release:

2. В меню выбираем ▶
3. В окошке запроса выбираем режим публикации (в папку):

4. Нажав кнопку , указываем папку для публикации:

5. После нажатия кнопки нужно будет отобразить все настройки, нажав на кнопку :

6. Здесь нам нужно обязательно выбрать целевую платформу (в моём случае это win-x64), а также отметить опцию :

7. После сохранения изменений, нажимаем кнопку :

Вот теперь у нас получается только один запускной файл (если вы ранее отключили генерацию файла .pdb, о котором написано в начале статьи, то его не будет).

  • Об авторе
  • Недавние публикации

DenTNT

Hello fellow stackoverflow people :)

I am developing an app that test .netcore desktop dependencies on client computers.

First I have checked if the necesary windows updates(win7) are installed followed by a check for the .netcore runtime with a net framework 452 app.

Finally just to be sure i would like to run a .netcore app without UI to make sure everything is fine, it has a custom exit code. But of course I get the message «to run this application you must install .net core» in case runtime is not installed.

My question is, is there a way to hide this message? I want to install everything silently then run a test, there is no need for the Yes/No Dialog redirecting to a website.

asked Mar 15, 2021 at 8:49

Akos's user avatar

Shoaib, 30, is a simple guy who loves to play video games, and enjoys new cuisines sporadically. He has been gaming since he was 7 years old, and with an experience of 22 years, under his belt, there is not a single AAA game in this world, that he hasn’t played. Despite being a MBA Graduate he decided to follow his passion. And because of his love for gaming, Frondtech came into existence.

Обратил внимание, что в папке с запускным файлом из прошлой статьи (пример на WPF), после компиляции присутствуют ещё несколько файлов:
SingleInstance.deps.json
SingleInstance.dll
SingleInstance.exe
SingleInstance.pdb
SingleInstance.runtimeconfig.dev.json
SingleInstance.runtimeconfig.json

При этом раньше в результате компиляции получалось только три файла:
SingleInstance.exe
SingleInstance.exe.config
SingleInstance.pdb

Файлы с расширением .pdb нужны для отладки, поэтому я не понимаю, зачем они нужны в релизе. Генерацию подобных файлов можно отключить:
▶ ▶ ▶ ▶ ▶

Я перенёс файл SingleInstance.exe на другой диск и попытался его запустить, но ничего не произошло. Тогда я перенёс также файл SingleInstance.dll. на этот раз, при попытке запустить приложение, я получил ошибку:

SingleInstance.exe

To run this application, you must install .NET Core.
Would you like to download it now?

Вообще у меня вроде как уже установлен необходимый пакет, ну да ладно — скачал и установил, но всё равно ошибка сохранилась.

Посмотреть список установленных сред выполнения .NET можно такой командой в PowerShell:

dotnet --list-runtimes

Про файлы базы данных программ (PDB) написано много всего. Но я всё равно не понял, зачем это нужно в релизе.

Приложение удалось запустить после того, как я перенёс третий файл: SingleInstance.runtimeconfig.json.

Вот его содержимое:

{
  "runtimeOptions": {
    "tfm": "netcoreapp3.1",
    "framework": {
      "name": "Microsoft.WindowsDesktop.App",
      "version": "3.1.0"
    }
  }
}

Это конечно поменьше, но всё равно странно, зачем столько сложностей. Хотя вот здесь или здесь всё разложено по полочкам, так что можно почитать. Покопавшись в инете, нашёл способ запаковать всё это в один файл, чтобы в дальнейшем подобных недоразумений не возникало. Делается это с помощью «публикации».

Публикация приложения

1. В открытом проекте выбираем конфигурацию сборки Release:

2. В меню выбираем ▶
3. В окошке запроса выбираем режим публикации (в папку):

4. Нажав кнопку , указываем папку для публикации:

5. После нажатия кнопки нужно будет отобразить все настройки, нажав на кнопку :

6. Здесь нам нужно обязательно выбрать целевую платформу (в моём случае это win-x64), а также отметить опцию :

7. После сохранения изменений, нажимаем кнопку :

Вот теперь у нас получается только один запускной файл (если вы ранее отключили генерацию файла .pdb, о котором написано в начале статьи, то его не будет).

  • Об авторе
  • Недавние публикации

DenTNT

Hello fellow stackoverflow people :)

I am developing an app that test .netcore desktop dependencies on client computers.

First I have checked if the necesary windows updates(win7) are installed followed by a check for the .netcore runtime with a net framework 452 app.

Finally just to be sure i would like to run a .netcore app without UI to make sure everything is fine, it has a custom exit code. But of course I get the message «to run this application you must install .net core» in case runtime is not installed.

My question is, is there a way to hide this message? I want to install everything silently then run a test, there is no need for the Yes/No Dialog redirecting to a website.

asked Mar 15, 2021 at 8:49

Akos's user avatar

AkosAkos

1903 silver badges14 bronze badges

2

You are missing the MyAppName.runtimeconfig.json file. The runtime is probably OK and already installed. You may be missing other build time config files besides this one.
This file should have been in your build directory.

But MyAppName.runtimeconfig.json is usually the culprit.

answered Apr 27, 2021 at 19:54

Sql Surfer's user avatar

Sql SurferSql Surfer

1,2341 gold badge10 silver badges25 bronze badges

2

It seems like this is not doable, at least not yet. I will accept this as an answer so the question gets closed.

Our solution was to deploy standalone, avoiding the message totally.

answered Jun 9, 2021 at 5:47

Akos's user avatar

AkosAkos

1903 silver badges14 bronze badges

Источник


10.01.2011


324230


Проблема

При запуске приложения вы получили сообщение «This application has requested the Runtime to terminate it in an unusual way«

This application has requested the Runtime to terminate it in an unusual way

Решение

Необходимо скачать и установить пакет, соответствующий вашей операционной системе:

Microsoft Visual C++ 2005 Redistributable Package (x86) — поддерживает 32-х битные Windows 2000 Service Pack 3;Windows 98;Windows 98 Second Edition;Windows ME;Windows Server 2003;Windows XP Service Pack 2

Microsoft Visual C++ 2005 Redistributable Package (x64) — поддерживает 64-х битные Windows 2000 Service Pack 3;Windows 98;Windows 98 Second Edition;Windows Server 2003;Windows XP Service Pack 2

Причина

Ошибка приложения «This application has requested the Runtime to terminate it in an unusual way» сообщает о нарушении программной защиты.

Еще почитать об runtime error можно здесь и здесь.


P.S. Если у вас возникли проблемы с техникой, обращайтесь в наш компьютерный сервис, либо закажите выезд компьютерного мастера.

Источник

Узнаем, что означает ошибка this application has requested the runtime и как предотвратить ее появление…

Иногда при работе с тем или иным приложением происходят неполадки — вышеуказанная ошибка чаще всего появляется внезапно при запуске, закрытии, обновлении компонентов программы.

Сообщение this application has requested the runtime означает, что программе требуется больше времени на выполнение задачи

Скорее всего программа зависла навсегда — произошел сбой в работе её библиотек, либо в компонентах обновления есть ошибки. Также могут быть и другие причины почему программа требует больше времени на выполнение задачи.

[adace-ad id=»5173″]

Чаще всего отыскать причину вышеуказанной ошибки невозможно — в связи с большой сложностью расчета выполнения процессов при работе программы. В этих процессах участвуют и программы, и службы, и драйвера.

По этому для устранения данной ошибки эффективнее всего использовать метод исключения, который предусматривает использование всех доступных решений в порядке живой очереди. Это займет меньше времени и с большой долей вероятности поможет устранить ошибку.

Первый делом необходимо попробовать выключить компьютер и снова включить. Если это не помогло и ошибка продолжает появляться следует попробовать переустановить программу в которой возникает ошибка. Предварительно её нужно корректно деинсталлировать

Как удалить ПО или компонент с ошибкой this application has requested the runtime:

  • В Панели управления (значок «Windows» в нижнем левом углу экрана) необходимо зайти в раздел «Программы»;
  • В списке необходимо выбрать нужный компонент или программу и выбрать пункт «Удалить» на панели окна;
  • Выполнить перезагрузку компьютера.

Далее — устанавливаем утилиту CCleaner и чистим реестр. Затем — снова загружаем и устанавливаем последнюю версию удаленного компонента или программы — после таких действий ошибка должна исчезнуть.

[adace-ad id=»5168″]

Иногда сообщение This application has requested the runtime может отображаться из-за некорректно установленного на компьютере времени. Все приложения и программы имеют ограничения времени работы — из-за несоответствия с реальным временем могут возникать подобные ошибки. Необходимо установить корректное время согласно часовому поясу и перезагрузить компьютер. Иногда ошибка пропадает, если запустить программу от имени администратора.

Необходимо посмотреть на каком языке записаны имена каталогов программы. Если в имени каталога есть кириллические символы или буквы, то лучше заменить их латинскими. Например «С:/Проект игра» необходимо переименовать в «С:/Project game»

Если всей указанные выше действия не возымели силы, то избавиться от сообщения This application has requested the runtime можно только при помощи форматирования жесткого диска и переустановки Windows. Но даже это не даёт 100% гарантии, что ошибка исчезнет — переустановка операционной системы сработает только в том случае, если в течении долго времени данное сообщение не появлялось в процессе эксплуатации программы.

Источник

Написал консольные приложение на C#, скомпилил его (в VS это называется «Опубликовать»), но при запуске на других компах вылазит ошибка «To run this application, you must install .NET Core». В настройках сборки я изменил тип открытия на «Автономный», класс, ошибка исчезла, но теперь мой exe весит не 1.5 МБ, а 60 МБ.
Какие есть способы обойти установку .NET Core? При этом получить екзешник с адекватным весом?


  • Вопрос задан

    более года назад

  • 3721 просмотр

Разрабатывать приложение с более старой версией .net
Например 3яя есть даже на win7 по умолчанию, а в 10-ке — 4.6 версия, вот список ревизий ос и версий встроенных в них .net

p.s. машины, на которых почему то не установлен последний .net это что то странное, сейчас некоторые даже инсталяторы пишут на .net, т.е. на такой машине без .net тупо ничего не запустится

Машины должен кто то администрировать, пусть он и настраивает как надо
а если там linux будет стоять, будете прикладывать к своему exe-шнику инсталятор windows?

Пригласить эксперта

Есть несколько вариантов:
1. Использовать .net 6 — он умеет тащить за собой не весь рантайм, а только то что нужно для работы.
По крайней мере Hello World в 12мб получалось уместить (single file + self contained + assembly trimming)
2. Поставлять программу вместе со скриптом, который проверит, установлен ли .net runtime и установит его сам, скачав из интернета
3. Забить и оставить как есть (засунуть в архив)
4. Использовать .NET Framework, который идёт на винде из коробки, но имхо — это шаг назад по всем параметрам, и так делать не стоит.

UPD: Hello world таки весит 12 мегабайт


  • Показать ещё
    Загружается…

14 июн. 2023, в 05:15

3500 руб./за проект

14 июн. 2023, в 03:49

3000 руб./за проект

14 июн. 2023, в 03:45

4000 руб./за проект

Минуточку внимания

Источник

Понравилась статья? Поделить с друзьями:
  • Ошибка при установке there was an error while
  • Ошибка при установке the witcher 3 wild hunt ошибка
  • Ошибка при установке the walking dead season 1
  • Ошибка при установке the outer worlds
  • Ошибка при установке the legend of zelda