I have a UIWebView that works fine for viewing an unencrypted Word or Excel document stored in the app's local Documents folder.
I can use either:
[webView loadData:documentData MIMEType:mimeType textEncodingName:textEncoding baseURL:baseDocumentURL];
Or:
[webView loadRequest:[NSURLRequest requestWithURL:baseDocumentURL]];
In both cases, baseDocumentURL is a file:// URL pointed at a file in the app's local Documents folder.
ISSUE
If I try to view an encrypted Word or Excel document — by either -loadData:MIMEType:textEncodingName:baseURL: or by -loadRequest: — my app throws an exception and crashes.
If I view the document through a web server, via Mobile Safari, the Safari browser displays the following error message:

My own UIWebView crashes while Mobile Safari works. What am I missing in setting up my web view that is causing an exception to be thrown?