Hi All,
I have developed an app on a machine with office 2003 and would like to install it on a machine with office 2007. But I keep getting GAC 11.0.0.0 error, how can I fix this?
Thanks
Sam
Printable View
Hi All,
I have developed an app on a machine with office 2003 and would like to install it on a machine with office 2007. But I keep getting GAC 11.0.0.0 error, how can I fix this?
Thanks
Sam
How are you deploying this app? Not copying just the exe I hope. How was the code written to access the office components? nothing but questions...
You must be using Early Binding and setting a reference to Office 2003 (11.0) as the target system only has 2007 (12.0) so you will generate that error. Use the 2007 PIAs as they are backwayds compatible with 2003. PIA link in my signature.
The PIAs don't help much in VB6 however. If that's your environment see Writing Automation clients for multiple Office versions instead.
Sorry, "GAC" should have tipped me off. Duh!
Good point but the thread starter doesnt state which language hes using. Using Late Binding is good for use in VB 6 but in VB.NET its more of a pain and the PIAs help reduce that pain dramatically. Otherwise in VB.NET Late Binding you will have to use Reflection.