Code Monkey home page Code Monkey logo

Comments (17)

cbailes avatar cbailes commented on July 27, 2024 1

@micahmo Thanks for the quick reply. Here's the system log entry:

Description: A .NET Core application failed.
Application: WgServerforWindows.exe
Path: C:\Program Files (x86)\WS4W\WgServerforWindows.exe
Message: You must install or update .NET to run this application.

App: C:\Program Files (x86)\WS4W\WgServerforWindows.exe
Architecture: x64
Framework: 'Microsoft.WindowsDesktop.App', version '3.1.0' (x64)
.NET location: C:\Program Files\dotnet\

The following frameworks were found:
  5.0.17 at [C:\Program Files\dotnet\shared\Microsoft.WindowsDesktop.App]
  6.0.6 at [C:\Program Files\dotnet\shared\Microsoft.WindowsDesktop.App]
  7.0.8 at [C:\Program Files\dotnet\shared\Microsoft.WindowsDesktop.App]

Installing the .NET desktop 3.1.32 runtime appears to have fixed it.

from wgserverforwindows.

cbailes avatar cbailes commented on July 27, 2024 1

Everything worked perfect until the app was launched post-install, after which the option to get .NET pops up. Answering either Yes or No has the same result: the app is immediately closed.

It would probably be ideal to implement a different or redundant method of installing this dependency, but hopefully this helps!

from wgserverforwindows.

micahmo avatar micahmo commented on July 27, 2024

Hi @heatsiphon, sorry to hear about this issue! Let me clarify a couple things first.

  1. This application currently targets .NET Core 3.1, which is why installing 6 and 7 didn't help.
  2. However, the installer is supposed to automatically install the necessary dependencies (i.e., the 3.1 runtime).

Did you try to install the latest version (2.0.10)? If so, did you receive the following prompt and press install here? And if so, did that seem to succeed?

image

I just tested the installer on a clean Win 11 with all updates (as of today). The installer worked and the app ran fine.

from wgserverforwindows.

heatsiphon avatar heatsiphon commented on July 27, 2024

from wgserverforwindows.

micahmo avatar micahmo commented on July 27, 2024

@heatsiphon, you didn't answer my question about whether the WS4W installer prompted you to install .NET Core, and if so, whether it worked? If you're intentionally trying to install it manually, that's 100% fine, I'm just curious because this is supposed to all be automatic.

When I click the download it now button, nothing happens at all.

What are you downloading?

Here are my installed runtimes.

If there was supposed to be a screenshot here, I don't think it came through. 😞

from wgserverforwindows.

heatsiphon avatar heatsiphon commented on July 27, 2024

from wgserverforwindows.

micahmo avatar micahmo commented on July 27, 2024

@heatsiphon You still have not answered my original question. 😊 Maybe I'm asking the wrong question, and you're welcome to tell me that, but otherwise it's a key piece of information that I'm missing. The WS4W installer should prompt you to install .NET Core 3.1. Did it do so? Did it work?

If you don't want to use the installer or you don't want to install .NET Core this way, that's totally fine. I just need to know that to help you troubleshoot.

from wgserverforwindows.

heatsiphon avatar heatsiphon commented on July 27, 2024

from wgserverforwindows.

micahmo avatar micahmo commented on July 27, 2024

When the dialog box appears, what are you launching? The installer (named something like WS4WSetup-2.0.10.exe) or the application itself (WgServerforWindows.exe)?

from wgserverforwindows.

heatsiphon avatar heatsiphon commented on July 27, 2024

from wgserverforwindows.

micahmo avatar micahmo commented on July 27, 2024

Thanks, I see you're launching the app itself, which is what I suspected. It is built to use the AnyCPU target, which can work on 32- or 64-bit operating systems. It prefers 64-bit. The placement in Program Files (x86) is for legacy reasons and is very common. (Many apps you launch from that directory are 64-bit.)

image

You also confirmed that still haven't answered my original question about the installer (WS4WSetup-2.0.10.exe). When you launch that executable to install the application, it is supposed to prompt you to install .NET Core 3.1. Have you run the installer? Does it give you that prompt? Does it appear to work?

from wgserverforwindows.

heatsiphon avatar heatsiphon commented on July 27, 2024

from wgserverforwindows.

micahmo avatar micahmo commented on July 27, 2024

When I run the application, that’s where it asks me the .net core question. Not the installer.

Whew, ok great, this is what I was looking for. The installer never prompted you to install .NET Core as shown in the original response, right?

It makes that determination by checking the installed runtimes in the registry. Can you check this registry key and let me know what you have?

Computer\HKEY_LOCAL_MACHINE\SOFTWARE\WOW6432Node\dotnet\Setup\InstalledVersions\x64\sharedfx\Microsoft.NETCore.App

image

from wgserverforwindows.

micahmo avatar micahmo commented on July 27, 2024

Hi @heatsiphon, I recently experienced this issue with another app, so I have a new suggestion. Can you check Event Viewer > Windows Logs > Application (after trying to start WS4W)? In my case, it said it there was an issue loading a DLL for .NET 7.0.5 (C:\Program Files\dotnet\shared\Microsoft.WindowsDesktop.App\7.0.5). However, that folder was empty for me! I deleted it, and the app reverted to a previous, good install of .NET 7.0.2 and ran fine.

Long story short, that error message is not always indicative that the correct runtime isn't installed, but maybe that another corrupt one is.

from wgserverforwindows.

cbailes avatar cbailes commented on July 27, 2024

This issue is also present on one of my systems. Installing both .NET Core 3.1 and the latest SDK has had no effect. 'Yes' in response to the automatic download prompt just exits the application.

from wgserverforwindows.

micahmo avatar micahmo commented on July 27, 2024

@cbailes, sorry to hear that! Can you try the suggestion in my comment prior to yours (checking Event Viewer) and let me know if you find anything interesting?

from wgserverforwindows.

micahmo avatar micahmo commented on July 27, 2024

Hey @cbailes, thanks for the update! Based on the error message, it does seem like .NET Core 3.1 was not installed prior to your manual step. I'm glad the manual step worked, but I'm not sure why it didn't get installed by the setup wizard. Just out of curiosity, did the setup run fine? Do you recall if it prompted to install .NET at all?

Anyway, thanks again, and hopefully this can help others.

from wgserverforwindows.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.