[ http://issues.apache.org/jira/browse/IBATISNET-70?page=comments#action_66027 ] Ron Grabowski commented on IBATISNET-70: ----------------------------------------
I think the error message may need to be changed too. I was playing around with this provider: http://www.vistadb.net/evalproductlist.asp?ref=eval2005 and discovered that the inner exception was: [DllNotFoundException: Unable to load DLL (VistaDb20.dll).] So the provider _was_ found...but it couldn't be loaded. I spent about 15 minutes making sure IBatisNet was adding the provider's name to the provider lookup table correctly :) Maybe a better error message would be something like: string.Format("Could not configure providers. Unable to load provider named \"{0}\". Cause: {1}", _name, e.Message) > IBatisNet.Common.Provider.Initialisation() does not pass inner exception when > re-throwing > ----------------------------------------------------------------------------------------- > > Key: IBATISNET-70 > URL: http://issues.apache.org/jira/browse/IBATISNET-70 > Project: iBatis for .NET > Type: Bug > Reporter: Ron Grabowski > Assignee: Gilles Bayon > > As of 5/23/2005, there is a try/catch block in the Initialisation() method > that looks like this: > try > { > /* snip */ > } > catch(Exception e) > { > throw new ConfigurationException( > string.Format("Could not configure providers. Provider named \"{0}\" not > found, failed. Cause: {1}", _name, e.Message) > ); > } > e isn't being passed to the ConfigurationException constructor as the inner > exception. The code should be as follows: > try > { > /* snip */ > } > catch(Exception e) > { > throw new ConfigurationException( > string.Format("Could not configure providers. Provider named \"{0}\" not > found, failed. Cause: {1}", _name, e.Message), > e // <--- THIS IS MISSING > ); > } -- This message is automatically generated by JIRA. - If you think it was sent incorrectly contact one of the administrators: http://issues.apache.org/jira/secure/Administrators.jspa - For more information on JIRA, see: http://www.atlassian.com/software/jira