Celebrate National IT Professionals Day with 3 months of free Premium Membership. Use Code ITDAY17

x
?
Solved

Type 'WMSServer' is not defined

Posted on 2008-10-01
4
Medium Priority
?
537 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 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

Problems using Powershell and Active Directory?

Managing Active Directory does not always have to be complicated.  If you are spending more time trying instead of doing, then it's time to look at something else. For nearly 20 years, AD admins around the world have used one tool for day-to-day AD management: Hyena. Discover why

Question has a verified solution.

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

OfficeMate Freezes on login or does not load after login credentials are input.
The article shows the basic steps of integrating an HTML theme template into an ASP.NET MVC project
To efficiently enable the rotation of USB drives for backups, storage pools need to be created. This way no matter which USB drive is installed, the backups will successfully write without any administrative intervention. Multiple USB devices need t…
This tutorial will walk an individual through the steps necessary to join and promote the first Windows Server 2012 domain controller into an Active Directory environment running on Windows Server 2008. Determine the location of the FSMO roles by lo…

730 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