Access to C:\Windows\system32\CONFIG.NT was denied - system32

I did some changes in project settings in visual studio to run a desktop application with no admin rights i.e. no UAC prompt but when I launch the application I get the error message but eventually application gets launched but I want to remove the exception I am getting
enter image description here

Related

Why can't Team Explorer connect?

After having issues with VS2017 Enterprise memory leaks, but none with Team Explorer functionality, I've uninstalled and installed community edition.
tf settings connections shows I'm connected
tf vc checkin works just fine.
where tf shows it is running the 2017 TF.exe
removed my account from both the tfs section, and the vs sign-in in visual studio and added back.
going to the project in a browser at ____.visualstudio.com shows my login works just fine there too.
removed connection from team explorer manager and it no longer has any hosted repositories showing in the Connect to a Project dialog
devenv /resetuserdata as an administrator did not fix it
going in the visual studio baked-in web browser, it comes up as already logged in and shows the projects just fine.
I'm not behind a proxy
deleted project's .suo file
removed stored Microsoft account credentials from Windows 10 credential manager
tried opening vs stand-alone (not opening a project to open it) and connecting
What causes VS2017 to refuse to show VSTS projects?
I experienced the same behavior today with version 15.9.5.
I also tried other options like deleting the VS related folders in %LocalAppData%, etc. to no avail.
The solution is to remove your account from within Visual Studio by selecting 'Account Settings' from the drop-down after clicking your name in the upper-right. Now remove the VSTS account, restart Visual Studio, enter your VSTS credentials anew and voila.

How to stop Visual Studio 2017 from opening browsers when launching project as a docker container

I've started a new project with Docker support.
How do I stop a browser window from opening when I start the project in Docker mode?
I hit F5 with "Docker" displayed next to the play icon on the tool bar and I always get a browser window open.
I've been into my project settings and turned off Launch URL for all project profiles.
I've also tried going into launchSettings.json and setting "launchBrowser": false, to try and stop it from happening. Note that changing the project properties does not seem to update the launchSettings.json file (annoyingly)!
This is really frustrating as for APIs I don't want a browser window to appear each time I start debugging. In fact, I don't want it for a website either as I typically have a window open that I refresh to see the changes.
How can I turn this off?
I found how to fix it.
In the VS solution there is a docker-compose project.
Right click on the docker-compose project and select properties.
In the General tab find the Launch Browser option and set its value to No.

Project Type for simple headless windows application

I am creating a Windows app that will run on Windows 2012r2 and soon be migrated to newer servers.
This app will be started from task scheduler and run several times a day.
It will start up, monitor a file system and, based on what it finds on the file system, will update a database.
I want it to run even when the user is not logged in.
I don't want it to pop up a console window while it is running because I inherited some applications that are doing that and it is quite annoying.
I will be writing it in C#.
In Visual Studio 2017 which project type should I choose?
Blank App
WPF App
Console App (.NET Core)
Console App (.NET Framework)
Other?
I am new to Windows development so please use terminology that I will see in Visual Studio 2017 so I can understand the answer.
[EDIT] I changed Console App (.Net Standard) to (.Net Framework) because Standard does not exist. I was suffering from temporary insanity when I listed that as an option.
Since there is no user interface, and you are just monitoring the file system and updating a database and running on a Window Server I would recommend:
4. Console App (.NET Framework), and in the Application/Properties for the app set the output type to Windows application and this will prevent any type of console window from showing. This is the type of application I use on a frequent basis to accomplish tasks very similar to what you are describing. The security settings you have for the user account logging into the server will determine if you can run it whether the user is logged in or not.

What should I do if I get activation error on Xbox UWP app and there is nothing useful in the error message?

I got xbox system update push recently on dev mode. My program winrtcpp program stops working, while other c++/cx program does still run on the xbox. In the meantime, I did not change my code or relevant dependencies. And the program is running correctly on PC.
Is there a general strategy for solving this kind of windows app activation problem.
Error message:
"unable to activate Windows.Store.app...The process started, but the activation request failed with error 'The app didn't start.'"
https://learn.microsoft.com/en-us/windows/uwp/xbox-apps/frequently-asked-questions
Why aren't my games and apps working?
If your games and apps aren't working, or if you don't have access to the store or to Live services, you are probably running in Developer Mode. To figure out which mode you're currently in, press the Home button on your controller. If this takes you to Dev Home instead of the retail Home experience, you're in Developer Mode. If you want to play games, you can open Dev Home and switch back to Retail Mode by using the Leave developer mode button.

.EXE in .CAB can not install from Win7, IE8

I have made a browser plugin and tried to deploy it from a .cab file in IE. And it's per-user install.
My problem is in Windows XP, The installation works well in different users. However, in Windows 7, when open the page including the .cab, the .cab file is downloaded and extracted, but when I click 'install' button, nothing happens.
Here's .inf file:
[version]
Signature="$CHICAGO$"
AdvancedINF=2.0
[Deployment]
InstallScope=user
[Setup Hooks]
hook1=hook1
[hook1]
run=%EXTRACT_DIR%\MyPlugin.exe
'MyPlugin.exe' is in the .cab file too.
Note that there's a [Deployment] segment in the code, I get it from MSDN, if delete this segment, it can install in Win7, but UAC popup and I need to enter admin password. But the browser plugin I made is for per-user, I think it should not need the admin privilege here.
UPDATE:
Now I find that IE doesn't request admin privilege only when browsing the page from intranet, otherwise, it will still request admin privilege if browsing from internet, so I doubt that IE will force using admin privilege to execute the hook to install .exe file.
If your %EXTRACT_DIR% is anywhere outside of \users\%user%\ or any subdirectories then it will require administrator password: ie. Programfiles.
You are probably not registering your plugin under HKEY_CURRENT_USER , for the deployment to work without the UAC popup popping out correctly on Windows 7. According to MSDN your plugin needs to be registered under HKEY_CURRENT_USER : On both Windows XP and Windows Vista, non-administrators are prevented from installing any ActiveX on their own. But now an **ActiveX registered under the HKEY_CURRENT_USER** hive is now fully supported by Internet Explorer within the context of a user's privilege level.