Thursday 10 January 2013

Late bound ActiveX / UserControl ASP.NET debugging

The title is slightly misleading here as its more of a debug pointer than true debugging.

If you have a custom ActiveX control or a windows control on your page which is strongly signed etc.. and fails it load it is fairly hard (or can be) to figure out why it is not loading.

View IEHOST Errors Log

Internet Explorer IE does log exceptions to non-loaded components by creating a file in the temp internet file folder. Pick the last file created (or near the top) and drag to your desktop and open it to view the exception details.


 Assembly binding logging

You could always turn on Assembly binding logging as detailed in


WRN: Assembly binding logging is turned OFF.
To enable assembly bind failure logging, set the registry value [HKLM\Software\Microsoft\Fusion!EnableLog] (DWORD) to 1.
Note: There is some performance penalty associated with assembly bind failure logging.
To turn this feature off, remove the registry value [HKLM\Software\Microsoft\Fusion!EnableLog].


Details on this can be found at Microsoft

http://msdn.microsoft.com/en-us/library/e74a18c4(v=vs.100).aspx




No comments:

Post a Comment

Comments are welcome, but are moderated and may take a wee while before shown.