Undoubtedly, WebAuthenticationBroker is one of the best API in WinRT/UWP API stack. It helps you to do OAuth and OpenID authentication without any extra work. We no longer need to use WebView and track the URL redirection to capture the tokens. Instead you can invoke the code from ViewModel also.
Since, we don't have much control on what happens and we rely on the status and result returned by the broker. Sometimes, things get more annoying when you get an error screen as below; but don't have any idea about what caused the issue for real.
Of course, traditional way is to use Fiddler which needs some setup for sure. Thankfully, there is another option too to tract the cause for error. All those error messages will be logged in your Windows Event Viewer. Below is the steps to do that:
- Open Event Viewer (eventvwr.exe).
- Navigate to Application and Services\Microsoft\Windows\WebAuth.
- Rt-click Operational log, and select Enable Log.
There you go!
Now, run the broker again. You can see all the logs.
Hope this will save your day.
I was so excited to install the Windows 10 update. Soon after a fresh install, I was busy setting up my machine dev ready. And then it happened, on next login when I logged-in to my machine, I was welcomed with Critical Error – “Start menu and Cortana aren’t working. We’ll try to fix it the next time you sign in”. I searched through the internet and could see the blame game.
Blame game aside. If that ever happened to you, continue reading. The closest reason - you might have installed Avast Anti-Virus or Avast Internet Security. In my case, I have installed Avast Internet Security. I purchased an Avast license for Window 10 (sadly). Ya, I curse myself for that now. So, how to fix it? Here it goes:
1. Do not click on ‘Sign out now’. If you click on that, you will be logged-out. And, no matter how many times you try to re-login you’ll be welcomed with this critical error.
2. Rt-click on Desktop and create New Folder. If there’s already a folder, you can open that.
3. After opening folder, go to This PC.
4. From Menu –> Computer –> Uninstall or change a program.
5. Search for Avast, select it and Repair it.
6. After Repair is completed, Restart you machine.
It should have been fixed by now If not, repeat above steps (again and again).
Hope this helps.
If you are like me, you like to read articles/contents online, preferably long readings. And, many times, you might come across phrases and words whose meaning you don't know or you can't recollect. The usual procedure was to open another tab and search for the meaning or we continue reading ignore it at all.
Back in 2011, I created an Internet Explorer Accelerator - Google Define with Preview, which helps to preview the selected words meaning without leaving your content and of course, very useful too. In 2013, Google shutdown their service and that put all the users in trouble. I quickly created another IE Accelerator - Oxford Dictionary Accelerator with Preview, which takes definition from Oxford Dictionary.
Today in 2015, Microsoft launched their new OS - Windows 10 with new browser - Microsoft Edge. Microsoft Edge comes with Cortana integration, which can do the same thing what my previous Accelerators does; among many other great features.
With Microsoft, you only need to select the word/phrase and selected Ask Cortana. That's all. All relevant information will be loaded, all without leaving the content.
Do it. I bet, you'll like it. Thanks.