473,480 Members | 1,545 Online
Bytes | Software Development & Data Engineering Community
Create Post

Home Posts Topics Members FAQ

Deployment Mediaplayer project

Hi,
I've been fooling around (noob) with VB.NET and put together a
remote-controlled Mediaplayer-based 'server'. Had some troubles configuring
interop on Windows XP with VS.NET 2003, but eventually things worked.

Problem is I can't run the built output on any computer other than my
own.... 'exception occured'. (Isn't VB.NET supposed to include all
references when 'copy local' is set to true?) Anyone familiar with this
problem (seems Mediaplayer-specific to me)? I don't know what to do next,
since there's no VS.NET installed on these systems, only dotNET-Framework
(latest version)...

I know it's little information, but I don't know how to provide you with any
more...
Thanks in advance.
Nov 20 '05 #1
6 1993
Elp
Hi,

"Sjaakie Helderhorst" <pr**********@tell.you> wrote in message
news:OJ**************@TK2MSFTNGP12.phx.gbl...
Hi,
I've been fooling around (noob) with VB.NET and put together a
remote-controlled Mediaplayer-based 'server'. Had some troubles configuring interop on Windows XP with VS.NET 2003, but eventually things worked.

Problem is I can't run the built output on any computer other than my
own.... 'exception occured'. (Isn't VB.NET supposed to include all
references when 'copy local' is set to true?)


I don't really understand what is your application supposed to do and to
look like but are you using a Windows Media Player component in it? (such as
the WMP Activex control). If yes, then you need to have the latest version
of WMP installed on every computer where you want to run your application.
Also check any other activex control that you may use: they need to be
installed and registered before you run the application (Windows installer
or a third party installer could do that for you).
Nov 20 '05 #2
"Elp" <ro********@REMOVEME.hotmail.com> schreef in bericht
news:up**************@TK2MSFTNGP09.phx.gbl...
Hi,

"Sjaakie Helderhorst" <pr**********@tell.you> wrote in message
news:OJ**************@TK2MSFTNGP12.phx.gbl...
Hi,
I've been fooling around (noob) with VB.NET and put together a
remote-controlled Mediaplayer-based 'server'. Had some troubles configuring
interop on Windows XP with VS.NET 2003, but eventually things worked.

Problem is I can't run the built output on any computer other than my
own.... 'exception occured'. (Isn't VB.NET supposed to include all
references when 'copy local' is set to true?)


I don't really understand what is your application supposed to do and to
look like but are you using a Windows Media Player component in it? (such

as the WMP Activex control). If yes, then you need to have the latest version
of WMP installed on every computer where you want to run your application.
Also check any other activex control that you may use: they need to be
installed and registered before you run the application (Windows installer
or a third party installer could do that for you).


I'm using AxInterop.WMPLib.dll and wmppia.dll.
All systems run same version of MediaPlayer (9.00.00.3075).
Need I manually register some Mediaplayer components before I can use them
as references?
Nov 20 '05 #3
Elp

"Sjaakie Helderhorst" <pr**********@tell.you> wrote in message
news:e%****************@TK2MSFTNGP12.phx.gbl...
I'm using AxInterop.WMPLib.dll and wmppia.dll.
All systems run same version of MediaPlayer (9.00.00.3075).
Need I manually register some Mediaplayer components before I can use them
as references?


When i was using WMP in my application, i used only WMPLib.dll, not
wmppia.dll (don't what is the latter for). It had copy local set to true and
the app was running fine on any computer as long as WMP 9 was installed so
your problem may be somewhere else. Have you tried to run WMP itself to see
if there's is nothing corrupted somewhere? (i remenber that WMP 9 often
broke suddently whithout any reason and i had to reinstall it to make
everything work again; the activex control was very buggy itself as well).

What is wmppia.dll used for? Have you checked that it was at the same place
in your development machine and in the other computer? Are all the needed
files (Interop.WMPLib.dll and AxInterop.WMPLib.dll) present in your
application's folder?

Are you using any other libraries not included in standard in the .NET
Framework? Or some API specific to a particular Windows version? Your
problem is maybe not related to WMP at all...
Nov 20 '05 #4
"Elp" <ro********@REMOVEME.hotmail.com> schreef in bericht
news:uc**************@TK2MSFTNGP12.phx.gbl...

"Sjaakie Helderhorst" <pr**********@tell.you> wrote in message
news:e%****************@TK2MSFTNGP12.phx.gbl...
I'm using AxInterop.WMPLib.dll and wmppia.dll.
All systems run same version of MediaPlayer (9.00.00.3075).
Need I manually register some Mediaplayer components before I can use them as references?


When i was using WMP in my application, i used only WMPLib.dll, not
wmppia.dll (don't what is the latter for).


Can you point me to a website or sample?
I used
http://msdn.microsoft.com/library/de...pplication.asp to create this mess.
Nov 20 '05 #5
Elp

"Sjaakie Helderhorst" <pr**********@tell.you> wrote in message
news:up**************@TK2MSFTNGP11.phx.gbl...
Can you point me to a website or sample?
I used

http://msdn.microsoft.com/library/de...pplication.asp
to create this mess.

I've not read the whole article so i don't see why they are using a such
complicated procedure to do something that could be done with a few mouse
clicks. But it maybe allow you to have more control over WMP. I've had a
very quick look at your app but couldn't compile it as some references were
missing (probably because i have to follow the instructions given in your
link to make it work). I also don't really see the goal of your app: what
are you trying to do exactly?

However, if all that you want is embedd a WMP in your app, there is a simple
way to do it: create a VB windows application project, open your tool box,
right click on one panel of the tool box and choose Customize toolbox. Then
scroll down the COM components tab and check Windows Media Player. A new
icon will appear in your toolbox, just drag it on your application form and
that's it! You now have an embedded WMP. However, there is a known bug with
the WMP activex and VB: you'll have to move manually the line:
Me.AxWindowsMediaPlayer1.enabled = True

from the window form designer code to your New() function, put it just after
the InitializeComponents() call or your app won't start. You'll have to do
that each time you change your form design as this (buggy) code is
automatically generated by VS (this applies to VS 2002 and WMP 9, it has
maybe be fixed in the lattest versions).

I don't have any link on WMP and VB though as i am not a VB programmer but
you may find some with google (maybe on godotnet or some similar developper
community sites).
Nov 20 '05 #6
"Elp" <ro********@REMOVEME.hotmail.com> schreef in bericht
news:eF**************@TK2MSFTNGP11.phx.gbl...
I also don't really see the goal of your app: what
are you trying to do exactly?
It's a player which gets it's file location from a SQL Database. Playlist
data is provided by a webbased interface running on IIS. This player is our
office-Jukebox, everyone can request its own favorite song.
A small 'remote control' provides a way of skipping, pausing and resuming.
However, if all that you want is embedd a WMP in your app, there is a simple way to do it: create a VB windows application project, open your tool box,
right click on one panel of the tool box and choose Customize toolbox. Then scroll down the COM components tab and check Windows Media Player. A new
icon will appear in your toolbox, just drag it on your application form and that's it!


I probably have to unregister the PIA because everytime I add the Windows
Mediaplayer COM to the toolbox it automatically adds references to the
PIA... I'll give it a try.
Anyway, I found a solution: installed WMP SDK on jukebox system and
registered the PIA. Now it works, but I don't like this way of deploying an
app.

Thanks for you support!
Nov 20 '05 #7

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

0
1434
by: DotNetMania | last post by:
hi.. i have some questions about media player article on codeproject website...... http://www.codeproject.com/cs/media/directshowmediaplayer.asp?df=100&forumid=4399&select=820191#xx793428xx ...
3
2032
by: Steve Brecher | last post by:
VS.NET help on deployment indicates that, while using a deployment project requires administrative access to IIS, " we recommend deploying your project in most cases, because it allows you to take...
0
1374
by: Andras Walz | last post by:
Hi, I have includes the mediaplayer in the VB.NET- Project and it works fine. I want to change the brightness of the video (blending). I have found in the doku: ...
11
1597
by: Thom Little | last post by:
Create two ASP.NET applications. Run them on the development machine to make sure they are error free. Publish the fist application to the root of a remote webspace. Call a page and see that it...
0
1709
by: Nonee | last post by:
Hello- I have a form with the mediaplayer referenced to play mp3's and avi's and I believe that is what is causing the problem. I am not sure, but I am hoping. Anyway, I "published" the vb.net...
2
2891
by: MarkusJNZ | last post by:
Hi, we have an existing solution which contains a bunch of C# projects and one weployment project. Initially I did not have the web deployment project installed on my computer so I downloaded...
6
4041
by: andrewbb | last post by:
I want to deploy a service with a windows app and the setup program must conform to the Vista certification requirements. Can that be done with the standard .net setup project? Assuming cost is...
7
5939
by: Cirene | last post by:
I used to use the Web Deployment Project with my VS2005 projects. Now I've fully upgraded to VS2008. Do I have to download a new version of the Web Deployment Project? If so where can I find...
0
7041
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
6908
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
7044
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
7084
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
6929
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
1
4779
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...
0
2984
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
0
1300
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated ...
1
563
muto222
php
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.