views:

74

answers:

1

I know that you can wrap problematic code in a try/catch block to prevent an error from taking out your webpart. But what can you do for missing references/dlls? Is there anyway of catching those errors before they blow up your SharePoint page?

A: 

Yes, catch the FileNotFoundException.

The text of the error will be Could not load file or assembly.

Alex Angas