- Home /
Webcam access denied after upgrading Unity/Visual Studio
Hello everyone,
I have an project that will run as a UWP application on the Hololens and access the hololens camera. The project is build with .NET scripting backend targeting SDK Version 16299. Webcam and Microphone cabality as well as allow unsafe code are all setted up (these options are required for camera access). Last week I built it and it was running without any error and working perfectly. Then because of another project I upgraded my Unity to 2018.2. and Visual Studio Community to the latest update and now everytime I try to build that application it gives me following error after it ask for permission to use camera (and after I choose yes):
Exception thrown: 'System.UnauthorizedAccessException' in System.Private.CoreLib.ni.dll WinRT information: Access is denied.
I downgraded my Unity to 2018.1 and Visual Studio to older versions but the problem still remains.
I have tried many things like uninstalling and deleting everything and installing again or change configurations but the problem still remains. Now I am very desperate and hope for your help! Thank you very much in advance!
Best regards
Your answer
