I’ve been trying to get the (highly regarded) CopySourceAsHtml add-in to work under Visual Studio to make it easier to post code samples. Every time I tried loading it, it was failing with:
The Add-in 'CopySourceAsHtml' failed to load or caused an exception. Would you like to remove this Add-in? If you choose yes, the file it was loaded from, '\\wtz-srv-dc01\Users\paul.mrozowski\My Documents\Visual Studio 2005\Addins\CopySourceAsHtml.AddIn', will be renamed. Error Message: Error number: 8013150a
I tried downloading the source, recompiling, making some suggested changes to the control references. Nothing seemed to help. As soon as I attempted to activate the add-in, it was failing. Then it suddenly occurred to me: what if it’s related to the fact that “My Documents” is on a network drive? To test this idea, I created a new local folder, then when into Tools > Options > Environment > Add-in/Macros Security. I added a new local folder which had a copy of the add-in and exited VS and restarted. Finally, I when to Tools > Add-ins and reselected the CopySourceAsHtml add-in. No errors!
I copied and pasted some code (and selected Override for the font to add Courier New as a secondary font). (random code shown below).
/// Process events from the grid
/// <param name="source"></param>
/// <param name="e"></param>
/// <developer>Paul Mrozowski</developer>
protected void grdTemplates_ItemCommand(object source, Telerik.WebControls.GridCommandEventArgs e)
if (e.CommandName == "Edit")
else if (e.CommandName == "Cancel")
else if (e.CommandName == "Add")
else if (e.CommandName == "Test")
else if (e.CommandName == "Update")
Here's a screenshot as a comparison:
Getting it to run under VS 2008 Beta 2
a@href@title, b, i, strike
The opinions expressed herein are my own personal opinions and do not represent
my employer's view in any way.
© Copyright 2017, Paul Mrozowski / RCS Solutions, Inc. - Powered by: newtelligence dasBlog 2.0.7226.0
DirectionalRedux theme by John Forsythe and Jon Stovall