Discussions
Categories
Groups
Community Home
Categories
INTERNAL ENABLEMENT
POPULAR
THRUST SERVICES & TOOLS
CLOUD EDITIONS
Quick Links
MY LINKS
HELPFUL TIPS
Back to website
Home
Web CMS (TeamSite)
Getting error type MBPSCRIPTMODEL2Lib.MBSession is not defined
rabs
I have declared MBPSCRIPTMODEL2Lib.MBSession using the following....
Dim mbsession As New MBPSCRIPTMODEL2Lib.MBSession
But I am getting the error message "type MBPSCRIPTMODEL2Lib.MBSession is not defined"
My code is detailed below.....
Module dam_data_sync
Const c_MBServer = "server"
Const c_MBDomain = ""
Const c_MBUser = "uid"
Const c_MBPassword = "password"
Const c_connectionString = "Driver={SQL SERVER};Server=; Database=; uid=; Password=;"
Dim mbsession As New MBPSCRIPTMODEL2Lib.MBSession
Private logFile As System.IO.StreamWriter
Sub Main()
logFile.Write("connecting to database")
Try
mbSession = New MBPSCRIPTMODEL2Lib.MBSession()
mbSession.Logon(c_MBServer, c_MBDomain, c_MBUser, c_MBPassword, 32456)
Catch ex As Exception
logFile.Write("Cannot connect to MediaBin Server - " + c_MBServer + " - " + c_MBDomain + " - " + c_MBUser + " - " + c_MBPassword + " - " + "32456")
End Try
End Sub
End Module
This is my first project, can anyone help.
Find more posts tagged with
Comments
msrinivas
Did you register the MBPScriptModel2.dll on the machine that you are running this on?
rabs
Thanks.
I found this dll - "Interop.MBPSCRIPTMODEL2Lib.dll". I got the following error message when I tried to register it
"C:\Inetpub\wwwroot\MediaBinWebService\bin\Interop.MBPSCRIPTMODEL2Lib.dll" was loaded but the dll Registry server point was not found. The file can not be registered."
rabs
I have resolved this now.
Apparently I was trying to register the wrong dll. I found out the correct dll to register via a readme file I found in the interwoven folder on the server. I also had to register the dll in vb express 2005.