If anyone can help this one I would appreciate it, I have searched and built for a while.
- website project
- build using CCNET
- Built using msbuild and config DebugType=pdbonly
- Merge all files into single assembly using aspnet_merge and -a -debug
- pdb is in same directory as .dll
- debug=true in web.config
- No impersonation going on
- Framework 4.0 (still checked, no reference to deployment)
- Captured via ex.ToString()
Sample stack trace
System.InvalidCastException: Conversion from type 'DBNull' to type 'Integer' is not valid. at Microsoft.VisualBasic.CompilerServices.Conversions.ToInteger(Object Value) at UserControls_OpportunityManagement.GetReferralMethodIDByDialedNbr(String DialedNumber)