|
|
I was happily using WMP in a number of VS projects until one day it no longer compiled. I started a new project to test a theory out and could not longer even add a the WMP control to a form. It threw up a message box that said: Failed to Import the ActiveX control. Please ensure it is properly registered.
Then in the errors window I saw the following warnings: Warning 1 Cannot find wrapper assembly for type library "WMPLib". WindowsApplication5 Warning 2 Could not resolve dependent COM reference "6bf52a50-394a-11d3-b153-00c04f79faa6" version 1.0. WindowsApplication5 Warning 3 Failed to create the wrapper assembly for type library "AxWMPLib". Exception of type 'Microsoft.Build.Tasks.ComReferenceResolutionException' was thrown. AxWMPLib WindowsApplication5 Warning 4 The referenced component 'WMPLib' could not be found. Warning 5 The referenced component 'AxWMPLib' could not be found. Failed to create the wrapper assembly for type library "AxWMPLib". Exception of type 'Microsoft.Build.Tasks.ComReferenceResolutionException' was thrown.
If I simply tried to run tlbimp on the wmp.dll I get the following: C:\Program Files\Microsoft Visual Studio 8\VC>tlbimp wmp.dll Microsoft (R) .NET Framework Type Library to Assembly Converter 2.0.50727.42 Copyright (C) Microsoft Corporation. All rights reserved.
TlbImp : warning TI0000 : Primary interop assembly 'wmppia, Version=9.0.0.2980, Culture=neutral, PublicKeyToken=31bf3856ad364e35' is already registered for type library 'C:\WINDOWS\system32\wmp.dll'. Type library imported to WMPLib.dll
I have tried re-installing WMP11 and am close to repaving my machine
Does anyone have any ideas as I cannot compile a number of important projects that use WMP currently?
-- David White GSD Telematics
|
|
|