Home
TeamSite
Cannot request exclusive semaphores at interrupt time.
kuruption213
Hello,
I am having a rather difficult time logging in with the IMANADMIN.dll. I followed the scripts in the example but keep getting the "Cannot request exclusive semaphores at interrupt time. " error. I also noticed that a past post indicated the same error but when I tried putting their fix it did not work for me. Here is the code I have
Dim iDMS As New IMANADMIN.NRTDMS
Dim iSession As IMANADMIN.NRTSession
Dim iDB As IMANADMIN.NRTDatabase
Dim iUser As IMANADMIN.NRTUser
Dim strUserName As String
Dim strPassword As String
strUserName = txtUser.Text.Trim
strPassword = txtPassword.Text.Trim
iSession = iDMS.Sessions.Add("ServerName")
iSession.Login(strUserName, strPassword)
Find more posts tagged with
Comments
jny
Which version of the DLL is this? Which fix are you referring to? Also, are you logging in as an NRTADMIN/NRTWEBADMIN group member?
kuruption213
JNY thanks for responding, I am really in a bind here. I am using the 8.0 version of the dll with Worksite 7.5. I didn't think there would be a problem here since 8.0 dll says it is compatiable with 7.5. The fix I wasl talking about was doing something similar to the fix listed below...
The following can be used in C# to allow for the optional parameters of the Sessions.Add method
object missingType = Type.Missing;
NRTDMS admindms = new NRTDMSClass();
NRTSession adminsess = admindms.Sessions.Add("server1", missingType, missingType);
adminsess.TrustedLogin();
Also how can I tell if my user is part of the NRTADMIN/NRTWEBADMIN group?
kuruption213
Also I looked in the DBAdmin tool and the user I am using to log in is part of the NRTADMIN group. Does anyone have any idea on how to fix this?
jny
I don't believe you can use a newer version of the DLL to hit an older version of the server. The DLL's that are distributed with the SDK are compatible with the same version of the server or later.
If you're referring to the readme file in the SDK, it looks outdated to me; it is still referring to the 7.x platform.
If you connect to an 8.0 or 8.1 server, your code should work.
blazes
Most likely the true culprit here is 0x80040068, "Server interface version is different from client application. Check that the client application version is compatible with the server." Unfortunately the 104 error message about semaphores maps to the same place we map the version message and sometimes we return incorrect text.