Solved

Type 'WMSServer' is not defined

Posted on 2008-10-01
4
495 Views
Last Modified: 2012-06-27
We've recently upgraded from windows server 2003 to windows server 2008 using Windows Media Services 2008.  On the old media server which I believe was 9 we were running the following code fine:

Dim wms as WMSServer
Dim serverType As Type = Type.GetTypeFromProgID("WMSServer.Server")
wms = CType(Server.CreateObject(serverType), WMSServer)

Now we get the error that says type wmsserver is not defined.

Is there no backward compatibility?  If not what do we need to change for the server type to be recognized?
0
Comment
Question by:afacts
  • 3
4 Comments
 
LVL 16

Expert Comment

by:Gyanendra Singh
ID: 22624093
Make sure you've registered the COM object, which I assume is on the
machine you're running IIS on. To do that, go to

Start -> Run and type in

regsvr32 WMSServerTypeLib.dll
0
 

Author Comment

by:afacts
ID: 22625471
I tried to register it, and here's what I'm getting:

"the module "WMSServerTypeLib.dll failed to load".
"make sure the binary is stored at the specified path or debug it to check for problems with the binary or dependent .dll files."
"the specified module could not be found"

Do I need to be in a specific directory when I do this?
0
 

Author Comment

by:afacts
ID: 22625979
BondinASP I did a search on our 08 server and wmsserver.dll doesn't exist there but it does on our old 2003 server.  Can we just move this file from the old server to the new and register it?  Can an 03 file run on the 08 server without causing problems?

Do you have any idea why the file wouldn't exist on the 08 server?  
0
 

Accepted Solution

by:
afacts earned 0 total points
ID: 22681504
It's working now ... the needed files were on the server but not added properly as references to the project.  Just dropping them in the bin wasn't working so I ended up installing VWD 2005 on the server and then adding the dll's as a reference through the IDE and things started working again!  hallelujah!
0

Featured Post

Optimizing Cloud Backup for Low Bandwidth

With cloud storage prices going down a growing number of SMBs start to use it for backup storage. Unfortunately, business data volume rarely fits the average Internet speed. This article provides an overview of main Internet speed challenges and reveals backup best practices.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Calculating holidays and working days is a function that is often needed yet it is not one found within the Framework. This article presents one approach to building a working-day calculator for use in .NET.
Possible fixes for Windows 7 and Windows Server 2008 updating problem. Solutions mentioned are from Microsoft themselves. I started a case with them from our Microsoft Silver Partner option to open a case and get direct support from Microsoft. If s…
This tutorial will walk an individual through locating and launching the BEUtility application and how to execute it on the appropriate database. Log onto the server running the Backup Exec database. In a larger environment, this would generally be …
This tutorial will show how to configure a single USB drive with a separate folder for each day of the week. This will allow each of the backups to be kept separate preventing the previous day’s backup from being overwritten. The USB drive must be s…

813 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

8 Experts available now in Live!

Get 1:1 Help Now