Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
Home
Discussion GroupsWindows Server 2003Windows 2000Windows NTSmall Business ServerVirtual ServerExchange ServerIISHost Integration ServerISA ServerSMSWSUSMOMWindows Media ServerSecurityCertification
Related Topics
SQL ServerMS WindowsMS OfficePC HardwareMore Topics ...

Windows Server Forum / Windows Media Server / August 2007

Tip: Looking for answers? Try searching our database.

WMS Newbie -- Testing WMS Plugins

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
AndyMc - 30 Jul 2007 17:24 GMT
Can anybody give me a clue as to the best way to test/debug an authorization
plugin that I am writing? Do I need to have VS installed on the server I am
developing for? Is it possible to step through the code of a plugin? Any help
greatly appreciated.
Kokkers - 31 Jul 2007 11:09 GMT
> Can anybody give me a clue as to the best way to test/debug an authorization
> plugin that I am writing? Do I need to have VS installed on the server I am
> developing for? Is it possible to step through the code of a plugin? Any help
> greatly appreciated.

Andy,

I am currently looking into developing a custom plugin (cache) plugin
for WMS too.
I am a complete C# .NET newbie myself too so I was stuck with exactly
the same question.

Since WMS plugins are no console application they need a different
debug approach.
In the 'Debug'  menu you can choose to 'Attach to process', select
managed code and select wmserver.exe.
This will show all the debug messages after enabling the plugin. This
way you can not see the debug messages when the plugin initializes
because at that stage there is no wmserver.exe process to attach to...

I would recommend not using the Visual Studio Express edition since it
does not have the 'attach to process' option.

Ofcourse you could always write your own logging object which appends
any debug message to your own logfile.

Any words from 'the experts' on how to test/debug a WMS custom plugin
would be very much appreciated.

For instance, throughout the sample code (cache proxy) there are
status messages written using Console.WriteLine.
Any easy way to view those when running the plugin?
Vlad - 14 Aug 2007 19:04 GMT
Hi Guys,

Read this article:
http://msdn2.microsoft.com/en-us/library/ms743880.aspx

Signature

Regards,
Vladimir
http://voynex.com - custom software development

> > Can anybody give me a clue as to the best way to test/debug an authorization
> > plugin that I am writing? Do I need to have VS installed on the server I am
[quoted text clipped - 28 lines]
> status messages written using Console.WriteLine.
> Any easy way to view those when running the plugin?
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2009 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.