Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

redistributing wmppia

1 view
Skip to first unread message

sergi

unread,
Nov 19, 2003, 2:17:40 PM11/19/03
to
Hi there,

Just put up a test application. When trying to execute that app in another
computer I get the following error :
>File or assembly name wmppia, or one of its >dependencies, was not found.
Should I register the PIA in any computer where I want to run an application
that includes de WMP control ? Or else what are the steps that I should
follow in order to make it work properly ?

Bests,

Sergio


Jim

unread,
Nov 20, 2003, 6:43:30 PM11/20/03
to
wmppia.dll must be registered and installed in the Global Assemble Cache,
for the player to work.. You can go 2 routes: manually do it on the machine
(not recommended for deployment), or if you are using Windows Installer or
Wise: set up the installer to 'Register' the COM compoment and install it in
the GAC.

I set up my installer to "Register" the COM component, and place it in the
Global Assembly Cache (GAC). But it still didn't work. Now this may seem
obvious but I realized I needed Window Media Player 9 & Direct X 9
installed. Once I had those 2 items installed (along with the Framework),
everything worked ok.

But for testing you can manually register & install wmpia.dll on the target
machine:
1. On the target machine use 'regasm.exe'. This comes with your Framework
and can be found (usually at):
C:\Windows\Microsoft.Net\Framework\1.1.4xxx\regasm.exe.
2. at a command line, type: regasm C:\Program
Files\LocationOfApplication\wmppia.dll
3. Now we need to install wmppia in the GAC. Search your Visual Studio (I
hope you are using it) directories for gacutil.exe. Then at a comman line
type: gacutil /i C:\Program Files\LocationOfApplication\wmppia.dll
4. Go check the GAC (C:\Windows\Assembly\GAC), and see if it's there.

Your app should run now. But if you ever uninstall the program, it will
leave the wmppia.dll on the system.. So when done, you should probubly
unregister the component and remove it from the GAC. I don't know if you
install over this later if it would cause problems.

If you need help with setting up the installer, drop me an email and I'll
send you a more detailed outline of how to do it.

Good luck


"sergi" <se...@tmtfactory.com> wrote in message
news:ewPMIHtr...@TK2MSFTNGP10.phx.gbl...

Jim

unread,
Nov 20, 2003, 7:17:47 PM11/20/03
to
Forgot to say that you will NOT find gacutil.exe on your client machine
where you are deploying the app. I copied it from my development over to
deployment box. Then i ran it to install wmppia in the GAC. Sorry for the
confusion.


"Jim" <tranzp...@yahoo.com> wrote in message
news:uNW28A8r...@TK2MSFTNGP09.phx.gbl...

0 new messages