Using Try Catch in Browser Enabled Forms

P

Paul D. Fox

If I cannot use the "MessageBox" in a browser enabled form, what is the best
method when using the "Try Catch" when an error has occured? What do you
show in the Catch?

Paul
 
D

Don Reamey \(MSFT\)

What type of exceptions are you catching? .Net exceptions, i.e. stack
overflow, null reference etc or business logic exceptions.

There is not a public API for hooking into the error dialog that InfoPath
shows. I would recommend writing to ULS or to the event log for .NET type of
exceptions.

For business logic exceptions is it possible to capture these in InfoPath
rules/validation?

--
Don Reamey
Software Development Engineer
InfoPath Forms Server
Microsoft Corporation
http://blogs.officezealot.com/dreamey
 
P

Paul D. Fox

I want to catch .NET exceptions such as a query of Active Directory. What
if it fails, I'd like to notify the user in some way. I'm not familiar with
ULS, but I guess I could write to the event log too.

Paul
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top