Closed. This question is not reproducible or was caused by typos. It is not currently accepting answers.
This question was caused by a typo or a problem that can no longer be reproduced. While similar questions may be on-topic here, this one was resolved in a way less likely to help future readers.
Closed 7 years ago.
Improve this question
I have a Problem with debugging on Raspberry Pi 2.
I have a simple Universal app (for testing purposes only "hello world", it's not the code that causes trouble).
I want to debug this app on my raspberry pi 2.
Yesterday, it all worked perfectly, but now, it's always starting to deploy, and then fails.
The Configuration of the Pi is all okay (Remote, ARM, No authentification..).
I installed the update (I'm using Windows 10) KB3081424, which I already uninstalled again, without any changes.
Also I checked the folders "AppReadiness" and "AUInstallAgent" on C:\Windows, which also exists...
Edit: I get the Error "Build Action 'Embedded Ressource' are not supported by Projects with output-type 'appcontainerexe'.
Based on the error you are receiving "Build Action 'Embedded Ressource'". You may want to ensure that you do not have any items in your Solution Explorer set to a Build Action of Embedded Resource. You can check this in the Solution Explorer as indicated below:
Related
Closed. This question is not reproducible or was caused by typos. It is not currently accepting answers.
This question was caused by a typo or a problem that can no longer be reproduced. While similar questions may be on-topic here, this one was resolved in a way less likely to help future readers.
Closed 2 months ago.
Improve this question
I am following this tutorial on Youtube to begin my first ever Unity/C# project. However, I am stuck at about the 15 minute mark, where he uses
Invoke(nameof(ReloadLevel(), 1.3f));
at which point VSCode and Unity both object because "The name 'nameof' does not exist in the current context [Assembly-CSharp]"
Googling the issue shows this user and this user both being advised to update their programs, but mine are all freshly installed, so I'm not sure what the issue is. I am using VSCode 1.74.2, Unity 2021.3.16f1, and have the C# extension by Microsoft, v1.25.2. I have omnisharp.useModernNet set to false (the issue persists regardless of this being true or false, it seems), and .Net Framework 7.0.10 installed, alongside 4.7.1 .Net Dev Pack, as per the C# plugin instructions.
So far I have attempted to regenerate my "Assembly-CSharp.csproj" in case it was just somehow missing.
However, this hasn't worked. Uninstalling and reinstalling .Net with VSCode closed doesn't seem to have fixed it, either.
My expectation is that something just didn't generate properly - OR that the tutorial I'm following is too outdated (1 year), and there's a better way to call this method now. However, I am not sure how to google for that particular solution. Any help would be appreciated.
It's because of parantheses. You should write
Invoke(nameof(ReloadLevel), 1.3f);
Hope this helps.
Closed. This question needs details or clarity. It is not currently accepting answers.
Want to improve this question? Add details and clarify the problem by editing this post.
Closed 1 year ago.
Improve this question
I have created windows service and it is working fine on Windows OS ,but we need to run this same service on Linux or Mac OS.
It is possible ?
Linux or macOS has its own way to manage "services", via systemd or supervisor or other mechanisms. Thus, you won't be able to ship the Windows app to such platforms, but you can write a .NET Core console app based on the same logic and then put it under systemd or the desired tool on such OS.
Obviously "possible", in the worst case reprogramming from scratch. I'm guessing the winforms tag you've used suggests what you think the biggest porting headache will be. Maybe check out C# WinForms application to linux which seems to be asking that same question. An even easier approach might (emphasize "might") be to run virtualbox https://www.pcsteps.com/184-install-virtualbox-linux-mint-ubuntu/ (or see many similar pages, and many similar vm's) under linux, and then just run your service on a windows virtual machine.
Closed. This question is not reproducible or was caused by typos. It is not currently accepting answers.
This question was caused by a typo or a problem that can no longer be reproduced. While similar questions may be on-topic here, this one was resolved in a way less likely to help future readers.
Closed 7 years ago.
Improve this question
I use Managed Extensibility Framework in my .NET 4 WinForms application. Everything works perfectly fine on my Windows 8, on a fresh installation of Windows XP SP3 on Hyper-V, on Windows 7 and generally everywhere below Win 8.1.
The problem occurs only in Windows 8.1 or above - there are no errors or exceptions but no plugins are found.
I'm not attaching any code since I've tried running the official sample application for MEF from MSDN and even that doesn't work on 8.1 (https://code.msdn.microsoft.com/windowsdesktop/Simple-Calculator-MEF-1152654e). The exports defined in the main project work fine, but it can't find the one from DLL project.
I've tried both applications on few machines already and the result is always the same - everything works perfectly fine as long as it's below Windows 8.1...
Is there any bug in Windows 8.1 that prevents loading MEF extensions from DLLs...?
Found the reason - the DLL containing the modulo operation is by default blocked by the system and the user needs to manually unblock it to make it work.
It would be nice if Windows at least noticed the user somehow that it blocked one of the files or even ask the user about it...
Anyway, after manually unblocking the DLLs, everything works fine:
Closed. This question is not reproducible or was caused by typos. It is not currently accepting answers.
This question was caused by a typo or a problem that can no longer be reproduced. While similar questions may be on-topic here, this one was resolved in a way less likely to help future readers.
Closed 8 years ago.
Improve this question
i am currently developing an alternate shell for windows( to be replaced with explorer).
the problem is the program runs fine when run as a normal executable.
but when i set it as default shell for windows and re-log in into my user account the program runs for a few seconds and then it force closes.
is there anything i can do what might be going wrong?
BTW working on c# wpf.
You are always debugging a compiled program.
However, when you run it from Visual Studio, the debugger is automatically attached (so you can see exceptions, set breakpoints, etc).
You can do the same thing to an already running process by using the "Attach to Process" option in the "Debug" menu.
Other things to try:
Add try/catch blocks around areas that can blow up
Add logging, especially to the try/catch blocks
Put a "sleep" at startup if the program closes before you can attach the debugger.
Also, from #ScottChamberlin, you can directly ask that a debugger be attached from the running executable via System.Diagnostics.Debugger.Launch().
Closed. This question is off-topic. It is not currently accepting answers.
Want to improve this question? Update the question so it's on-topic for Stack Overflow.
Closed 10 years ago.
Improve this question
I want to monitor the event of a new Antivirus installation ,
currently what I have in mind is listen to change in the Uninstall registry folder and then compare the new application name with a list of known Antiviruses.
I want to improve it by being more specific , is there other resource I can monitor in order to know when a new Antivirus has installed? for example some registry that new Antivirus have to edit in order to be marked as an active Antivirus etc.
Thank you for your help
Registry is not the best way. The information you want is usually exposed through the WMI.
Since you haven't specify in tags what language you're using, here's the link to the VBScript example. Beware that on 64 bit OSes there're effectively 2 WMIs, 32 bits and 64 bits.
If you want your software to react instantly, WscRegisterForChanges API allows you to be notified when the AV is started or stopped.