I have a simple landing page for helpdesk support requests that automatically populates a user's information from Active Directory as well as their machine name. Everything works perfectly as long as the app is able to perform the DNS lookup on the computer name to populate that particular field. What I'm running into is the inability to catch the error on the lookup and allow the form to just show a blank field if it's unable to do the lookup. My attempts at using a try/catch have failed.
I've attached the CS code and an image of the error received in the browser.