I’m not a developer so will not comment your code because do not know anything about it, but from network perspective this sounds like DNS issue…you said either works for you but only one for user, are you guys in same location? same LAN, using same DNS? do you have static entries in you PC’s host file… these are things to look for
Your user may be on a different network segment where the DNS name of the server cannot resolve.
The distinguished name of the server is found by either a local connection doc or a lookup to the user’s defined home server’s NAMES.NSF for that server name in the home server’s DNN.
Have user put a connection doc in local names.nsf with IP addr associated to that DNS name…
Yeah, sort of strange, I expect the other posts are correct, most likely dns / network issues - I’ll bet you can ping servername.com and the other user’s can’t resolve it, hence the error.
The host file is stored in your C:\WINNT\system32\drivers\etc which acts like a local dns for resolution.
if you can’t use a profile doc, maybe you can use an environment variable or grab the servername from thier location document - if its the same.
I have done many projects cleaning up other developer’s code where they have hardcoded stuff all over the place(server and dbnames, paths), if the infrastructure group decides to consolodate servers and your application gets moved, it becomes problematic.