ClickOnce application Gets CLR20r3 error System.UnauthorizedAccess - visual-studio-2013

I have a .NET 4.0 application deployed on the local network via ClickOnce. It is a C# x86 application built in Visual Studio 2013.
When the ClickOnce setup.exe is run it installs and immediately launches the application which works as expected.
After trying to launch the application each additional time it throws an error:
Problem signature:
Problem Event Name: CLR20r3
Problem Signature 01: getpricescustomlookup.exe
Problem Signature 02: 2.2.1075.0
Problem Signature 03: 57ea7f5a
Problem Signature 04: mscorlib
Problem Signature 05: 4.0.0.0
Problem Signature 06: 4ba1da6f
Problem Signature 07: 3dab
Problem Signature 08: 13c
Problem Signature 09: System.UnauthorizedAccess
OS Version: 6.1.7601.2.1.0.256.48
Locale ID: 1033
Additional Information 1: 0a9e
Additional Information 2: 0a9e372d3b4ad19135b953a78882e789
Additional Information 3: 0a9e
Additional Information 4: 0a9e372d3b4ad19135b953a78882e789
This application has been running without issue for many users on many different PC's for over a year. I have tried with multiple users logged in on the problem-PC and it behaves the same. The PC has been just wiped with a fresh copy of Windows 7 Pro 64-bit installed on it.
Does anybody have any thoughts on what may be going on here and how to fix it?

My solution for now is just do a standard installer rather than ClickOnce. ClickOnce did seem too good to be true...

Related

CLR20r3 error while installing Visual Studio Community 2019 - vs_setup_bootstrapper.exe

I saw a lot of similar questions here but the .exe was different in all cases. I checked all the solutions I was able to apply, however, the problem is still the same. When I download the VS Community 2019, when I run it I automatically got the error that it stopped working, details are as follows:
Problem signature:
Problem Event Name: CLR20r3
Problem Signature 01: vs_setup_bootstrapper.exe
Problem Signature 02: 2.8.3267.30329
Problem Signature 03: 9d2a945d
Problem Signature 04: Microsoft.VisualStudio.Setup
Problem Signature 05: 2.8.3267.30329
Problem Signature 06: f7c67f65
Problem Signature 07: 898
Problem Signature 08: 10
Problem Signature 09: System.IO.FileNotFoundException
OS Version: 6.3.9600.2.0.0.256.49
Locale ID: 2057
Additional Information 1: 6f38
Additional Information 2: 6f383fc314ee72e602c66fef1120ed98
Additional Information 3: ed5f
Additional Information 4: ed5f401470800aa8aa962bbe84af7a8d
I tried restarting, uninstalling and installing everything related to .NET, found some cmd-based solutions but the problem is still the same. I Had VS on my PC before, but I decided to reinstall it, and now I am unable to...
My current OS is Windows 8.1 Pro N, 2013 (if that helps in any way :D)
I will appreciate any piece of advice, if there is any information additionally needed, please ask me for it
Okay, I have changed OS from Win8 to Win10 and was able to install it. Seems like I deleted too many files on my own and was unable to restore it manually
Thank you all for your help! I really appreiate!
First, check the VS2019 installation environment,and just as this document said, you should install Update 2919335 for your Windows 8.1.
If this does not work, please try to runC:\Program Files (x86)\Microsoft Visual Studio\Installer\resources\app\layout\InstallCleanup.exe.
It will uninstall all VS IDE(VS2017 and VS2019) and all related components, caches, registry info. Make a strong deep, strong clean.
Then, re-download setup program and try to install again.

Visual Studio Pro 2012 crashes with a MissingFieldException immediately after opening a solution

I have downloaded some source code from our TFS and my setup is via VPN. I installed the same VS2012 installer in my machine at home and my machine at the office.
As soon as I open the solution Visual Studio 2012 crashes. I tried uninstalling, running CCleaner, then re-installing but I am still having errors.
The following facts are relevant:
I have admin rights to this PC
It does have other versions of Visual Studio installed
I have the latest Windows 7 and Visual Studio 2012 patches
The following is from the crash report:
Problem signature: Problem Event Name: CLR20r3
Problem Signature 01: devenv.exe
Problem Signature 02: 11.0.50727.1
Problem Signature 03: 5011ecaa
Problem Signature 04: Microsoft.VisualStudio.Progression.LanguageService.CSharp
Problem Signature 05: 11.0.50727.1
Problem Signature 06: 5011cc19
Problem Signature 07: 131
Problem Signature 08: 43
Problem Signature 09: System.MissingFieldException
OS Version: 6.1.7601.2.1.0.256.1
Locale ID: 1033
Additional Information 1: 0a9e
Additional Information 2: 0a9e372d3b4ad19135b953a78882e789
Additional Information 3: 0a9e
Additional Information 4: 0a9e372d3b4ad19135b953a78882e789
Read our privacy statement online: http://go.microsoft.com/fwlink/?linkid=104288&clcid=0x0409 If the online privacy statement is not available, please read our privacy statement offline: C:\Windows\system32\en-US\erofflps.txt
The solution for me was to download and apply the first update from the official download page.
I've had the exact same problem with VS 2012 Ultimate.
The problem seems to be that at least the ISO-download of the 3 official downloads comes with the same, outdated version as yours, and I got the exact same exception every time I opened a solution.
Hey renamed the "ComponentModelCache" folder in %localappdata%\microsoft\visualstudio\11.0\
This resolved the issue.

Visual Studio crashes on start up

I've been using Visual Studio 2010 for over a year now to work on XNA games for the Windows Phone 7. Just today it started crashing every single time it loads. If I load the game I'm currently working on it will crash. If I just open VS by itself it crashes as well. It just started today. I have no idea what suddenly caused it to start. I updated my graphics drivers but that shouldn't have caused it. I haven't done much else since I was just working on my game a couple days ago. I tried reapplying VS2010 SP1 but it failed. I tried to install windows updates for VS2010 but they apparently failed to install as well.
I'm not sure what to try now. I could try to install the updates again. I'm not sure why they keep failing to install. It just says the program has stopped working and needs to close. I've restarted a couple times as well. Any thoughts on what I could try next?
Problem signature:
Problem Event Name: CLR20r3
Problem Signature 01: devenv.exe
Problem Signature 02: 10.0.40219.1
Problem Signature 03: 4d5f2a73
Problem Signature 04: mscorlib
Problem Signature 05: 4.0.0.0
Problem Signature 06: 4dd23522
Problem Signature 07: 3789
Problem Signature 08: 3e
Problem Signature 09: System.UnauthorizedAccess
OS Version: 6.1.7601.2.1.0.256.48
Locale ID: 1033

Visual Studio vshost32.exe has stopped working

I have developing in Visual Studio 2010 on the same machine for the past year. Yesterday I installed the Java JDK as well as the Android SDK and since then I cannot run ANY project in Visual Studio. I reveive the following error:
vshost32.exe has stopped working
Problem signature:
Problem Event Name: APPCRASH
Application Name: xxxMyApp.vshost.exe
Application Version: 10.0.30319.1
Application Timestamp: 4ba2084b
Fault Module Name: ntdll.dll
Fault Module Version: 6.1.7601.17514
Fault Module Timestamp: 4ce7b96e
Exception Code: c0000008
Exception Offset: 0004708f
OS Version: 6.1.7601.2.1.0.256.48
Locale ID: 7177
Additional Information 1: 62c6
Additional Information 2: 62c6367c0a4a7a6a13fec4af66486182
Additional Information 3: b338
Additional Information 4: b338e77b24caadf81f02d002dd08805e
I have tried enabling/disabling the hosting process, have rebuilt, have run registry cleaners, etc.
Has anyone come across something like this before? Any suggestions?
I managed to solve this by uninstalling both JDK and Android, reinstalling VS 2010, and then reinstalling JDK and Android again.
I am none the wiser as to why this long process needed to take place... but it works now...

Application runs from VS2008 but not from exe in bin\Debug

I've just encountered a rather strange problem. A Winforms (although that may not be relevant) app that I've been working on for a few months just started behaving oddly. Pressing F5 to debug in VS2008 gets it running perfectly but if I try to run the exe from the bin\Debug folder it fails straight away. Viewing more details from the notification of the failure shows this info.
Description:
Stopped working
Problem signature:
Problem Event Name: CLR20r3
Problem Signature 01: languageeditor.exe
Problem Signature 02: 3.0.3593.17201
Problem Signature 03: 4aee8b42
Problem Signature 04: sysglobl
Problem Signature 05: 2.0.0.0
Problem Signature 06: 4a277628
Problem Signature 07: 8f
Problem Signature 08: d9
Problem Signature 09: System.InvalidOperationException
OS Version: 6.1.7600.2.0.0.256.4
Locale ID: 7177
Can anyone provide possible reasons for such a failure or things I can start looking at?
It turns out this was a UAC problem. On Win7 64-bit Visual Studio wants to be running as administrator for debugging against IIS (I forget exactly what message it displays) so I run VS2008 and load our solution. Our application is Silverlight but the solution includes several Winforms and console utilities. It is one of these utilities that was failing. Seems that new code I'd added requires administrator permission, which of course it gets when running in debug mode from VS2008. When launching the binary from a shortcut though, it didn't have administator access and failed.

Resources