Archive

Archive for the ‘Software Development’ Category

Iasa UK North 1

October 20, 2012 Leave a comment

Great Evening on Thursday at Iasa UK North 1 where Astra Zeneca played host to a great series of lightening talks! So good in fact that I have to push mine off the agenda!

Well, I still got chance to introduce the speakers and to give a quick overview of Iasa UK activities which you can find here.

Next up was Bola Rotibi from Creative Intellect who talked about what the enterprise needs architects to consider.

Next on was John Whiteway who went solo with nothing more than a piece of paper, his wit and intellect – great talk with the catchy title “Enterprise Social Networking underpins Predictive Science Capability”! Honestly inspiring stuff!

Following this was hard, but Simon Thurman of Emerging Technology at Microsoft UK is a dab hand, giving us a brief history of Azure on one slide …

After more pizza and beer it was time to realise that … Architecture is Boring, or so someone said to Neil Wetherall of Astra Zeneca! He gave some compelling reasons why people say this and more importantly, what architects should do to change this view …

Last but least it was the turn of Saffron Prior to share more secrets of agile and how it’s changing the way that IT generates value.

SO there we go … what a first night for Iasa UK North … with plenty more in store like this to follow!

Many thanks to all and especially Astra Zeneca for making this such a success!

Not loaded. A runtime error occurred during loading of COM add-in

November 22, 2011 2 comments

I’ve spent quite a while trying to sort out why my Word 2007 Add-in won’t work on XP for some time and finally found the problem here …

The add-in is built on .NET 4.0 using VSTO 4.0 and I created a Windows MSI installer but it failed to run on the new XP virtual machine I had created all I got was the following error displayed in the Word Add-Ins dialog:

“Not loaded. A runtime error occurred during loading of COM add-in”

I tried a number of methods to try and identify the problem that are listed here for information before I hit on the actual solution …

1. Ensure all pre-requisites are installed …

  • .NET 4 Client Profile
  • VSTO 4.0
  • 2007 primary interop libraries

I also had one assembly built in VC++ so required the VC++ 2010 x86 redistributable and also a third party component that required VC+ 2008 redistributable too. But even then it wouldn’t work.

2. Next I rebuilt a new add-in that did nothing other than display a messagebox with its own install

Still no joy.

3. I then tried enabling VSTO logging by adding the following system environment variables ..

  • VSTO_SUPPRESSDISPLAYALERTS  = 1
  • VSTO_LOGALLERTS=1

But no amount of searching for *.vsto.logs yielded anything.

4. Next up I enabling Fusion (.NET Framework sub-system for locating and loading assemblies) …

  • Under HKLM\Software\Microsoft\Fusion
  • Create a DWORD value called ForceLog and set 1.
  • Create a String value named LogPath, set the value as c:\fusion
  • Create the C:\fusion folder.

But even then when I ran up Word nothing was displayed!

It just wasnt getting across the com boundary.

5. I went to an old XP virtual machine that’s had all sorts on it …

I installed the add-in and the pre-requisits … and guess what … it WORKED!

Although the old vm had lots installed, the only significant thing was that .NET 3.5 was on there …

Willing to try anything at this stage I returned to the new VM and installed 3.5 …

And … you guessed it … after re-installing the app and the pre-requisits … the add-in sprang into life!!!

Amazed, I did a final search only to find the following link to a “known issue” that Office 2007 tries to load .Net Framework 2.0 before doing anything else …

And what’s more, there is a hotfix available that fixes the issue

http://support.microsoft.com/kb/976477/

VS2010 SP1 Update Failure

If it’s not hard enough to deal with and understand the Microsoft .NET frameowork they go and make their VS upgrade convoluted and buggy!

After what seems like and age the installer throws out an unconvincing error 0x800C0006 and an audit log that goes recursive!

For those who suffer the same or similar plight there is a simple solution … download the SP1 ISO image, mount it on a drive and install as you would have wanted to in the first place!

http://go.microsoft.com/fwlink/?LinkId=210710

The following link gives more information that you might find useful.

http://social.msdn.microsoft.com/Forums/en-US/vssetup/thread/63eb6768-7b78-45fd-8663-b4d7993be563