Link to home
Start Free TrialLog in
Avatar of Dan
DanFlag for United States of America

asked on

Type 'WMSServer' is not defined

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?
Avatar of Gyanendra Singh
Gyanendra Singh
Flag of India image

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
Avatar of Dan

ASKER

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?
Avatar of Dan

ASKER

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?  
ASKER CERTIFIED SOLUTION
Avatar of Dan
Dan
Flag of United States of America image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial