Comments (17)
@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.
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.
Hi @heatsiphon, sorry to hear about this issue! Let me clarify a couple things first.
- This application currently targets .NET Core 3.1, which is why installing 6 and 7 didn't help.
- 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?
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.
from wgserverforwindows.
@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.
from wgserverforwindows.
@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.
from wgserverforwindows.
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.
from wgserverforwindows.
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.)
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.
from wgserverforwindows.
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
from wgserverforwindows.
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.
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.
@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.
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)
- Enable Internet Sharing: An event was unable to invoke any of the subscribers (0x80040201) HOT 1
- Enable configuration of PersistentKeepalive in client configuration HOT 7
- It closes by itself after a while of not using it (Win11). HOT 3
- [Feature Request] Add a removal tool incase the tunnel is incorrectly installed HOT 4
- My server does not have NAT related functions here HOT 2
- [Feature Request] Server MTU Size setting
- route wireguard server hosts file HOT 1
- error
- What's the difference between clients_data/ and clients_wg/ directories? HOT 1
- Invalid class error after splash [already solved] HOT 2
- Client Connection HOT 1
- Enable NAT Failed
- Server keeps trying to handshake after client disconnects HOT 1
- No Internet HOT 2
- Installer does nothing on w2k16 server HOT 1
- Logging or CLI client status HOT 1
- Manually change MTU and restart the service HOT 1
- wgServerforWindows How to uninstall it? HOT 1
- Autorun HOT 1
- NAT routing issue HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from wgserverforwindows.