You have chosen to sponsor your bid up to a maximum amount of .
We are developing a COM Add-In for Microsoft Office in .NET / C# (Visual Studio 2010). As we would like to avoid having to increase code complexity by an excessive use of try-catch blocks, we would like to have global error handling in our .NET / C# Add-In - which unfortunately is not working for COM add-ins like for Windows Forms applications through "AppDomain.UnhandledException" or "Application.ThreadException".
We have created a COM Shim for our .NET / C# Add-In for Microsoft Office using the COM Shim Wizard (http://blogs.msdn.com/b/mshneer/archive/2010/03/19/com-shim-wizards-for-vs-2010.aspx) and found and article on MSDN which describes how global exception handling can be done in a similar ASP / COM setting (http://msdn.microsoft.com/en-us/magazine/cc188710.aspx). We need your help to translate ASP / COM example to our use case.
We need a COM Shim (i.e. a COM .DLL loader for a managed .NET add-In) which allows global error handling within .NET so that we can catch all exceptions before they are handled by the Office application the add-in is running in.
- Visual Studio 2010
- C# for the Office Add-In - we will provide you with a test Add-In project throwing unhandled exceptions that need to be caught
- C++ for the COM Shim (i.e. loader DLL) - we will provide you with a test COM Shim project created by the COM Shim Wizard (see above)
- Please use information provided in http://msdn.microsoft.com/en-us/magazine/cc188710.aspx as a starting point