[Okta Webinar] Learn how to a build a cloud-first strategyRegister Now

x
?
Solved

Windows 2003 Terminal Services Permissions Problem. Run-time error 339.

Posted on 2006-11-27
11
Medium Priority
?
1,270 Views
Last Modified: 2013-11-21
I am running Windows 2003 Server with Terminal Services on the same file server.  The one main application had been running fine for the TS users.  I just installed an update to the application and now all of the users are getting a run-time error message “330” when they try to run the application.  I have found however, if I give the TS users administrative access, then the application runs OK again.  I have experimented with all of the file permissions and user rights and cannot find any combination that fixes the problem.

I think the application is trying to access the Windows System32 directory when it fails.
0
Comment
Question by:jlstdy
  • 4
  • 3
  • 2
  • +2
11 Comments
 
LVL 12

Expert Comment

by:Freya28
ID: 18023902
when you upgreded the application, did you upgrade it through the control panel.  TS likes to have apps and upgrades installed a certain way?
0
 
LVL 9

Expert Comment

by:rshooper76
ID: 18024065
What permissions does your app require?  Is the app supported under Terminal Services?  
0
 

Author Comment

by:jlstdy
ID: 18024129
I tried to update the app through add/remove programs in the control panel, but when I pick "Add new programs" I get a message "This machine is running Terminal Services in Application Server Mode.  Applications are not available to install from the network in this mode."

The app was previously running fine and had full access to it own directory.
0
VIDEO: THE CONCERTO CLOUD FOR HEALTHCARE

Modern healthcare requires a modern cloud. View this brief video to understand how the Concerto Cloud for Healthcare can help your organization.

 

Expert Comment

by:sympact
ID: 18024157
If the app is not a common application then you really need to get support from the developer or we are clutching at straws. It may even be registry permissions rather than file/folder.
0
 
LVL 9

Expert Comment

by:rshooper76
ID: 18024161
Were you installing the application from the console or from a terminal server session?
0
 

Author Comment

by:jlstdy
ID: 18024276
When I ran the install for the new app (it a special app for medical practice)...I get an error message during the install "The procedure entry point IstrcmpiI could not be located in the dynamic link library MSDART.DLL."  The software vendor told me to ignore this message (it does not cause problems on the non-Terminal Service users).

After install the first time I run the app I get "Run-time error 339.  Component btn32a20.ocx or one of its dependicies not correctly registered: a file is missing or invalid."  I ran "regsvr32.exe btn32a20.ocx" and then I get a 339 error message from inside the app.  Yet if the user has administrator access, then no problems.

I have installed the app from the server console and from from the terminal services user...doesn't seem to help.

The vendor and I have both spent some time on this, but still no solution.
0
 
LVL 4

Accepted Solution

by:
pakitloss earned 2000 total points
ID: 18025123
Not sure if this is still a feature in 2003 but in 2000 you had to put the server in install mode by typing "change user /install" at a prompt. If this is then maybe try reinstalling. What do the event logs say? Does the user accounts have the proper rights to the app?
0
 
LVL 9

Expert Comment

by:rshooper76
ID: 18025242
Try running filemon and regmon from sys internals and see if you can see any problems.  One of the big problems that you run into in terminal services is applications that don't run correctly withing terminal services itself.  There are many reasons for this(needing admion rights to run the apps, using the wrong registry hive, etc).  I find its always best to work with the software vendor to get the application working properly.  Sometimes this works, sometimes you are stuck to figure it out on your own.
0
 

Author Comment

by:jlstdy
ID: 18033276
Pakitloss had the correct answer!  I typed "change user /install" at a command prompt and reinstalled the app.  Now it works without administrative privileges.

Thanks to everyone for your help!
0
 
LVL 9

Expert Comment

by:rshooper76
ID: 18033336
Going though the Add/Remove programs is supposed to do the same things as typing in change user /install.  If you run into consistent problems installing your apps this way you may want to look for an underluing problem.
0
 
LVL 12

Expert Comment

by:Freya28
ID: 18037616
you have to remember to type in change /execute after the installation to activate the TS again
0

Featured Post

Efficient way to get backups off site to Azure

This user guide provides instructions on how to deploy and configure both a StoneFly Scale Out NAS Enterprise Cloud Drive virtual machine and Veeam Cloud Connect in the Microsoft Azure Cloud.

Question has a verified solution.

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

Background Information Recently I have fixed file server permission issues for one of my client. The client has 1800 users and one Windows Server 2008 R2 domain joined file server with 12 TB of data, 250+ shared folders and the folder structure i…
This article will inform Clients about common and important expectations from the freelancers (Experts) who are looking at your Gig.
In this brief tutorial Pawel from AdRem Software explains how you can quickly find out which services are running on your network, or what are the IP addresses of servers responsible for each service. Software used is freeware NetCrunch Tools (https…
Monitoring a network: why having a policy is the best policy? Michael Kulchisky, MCSE, MCSA, MCP, VTSP, VSP, CCSP outlines the enormous benefits of having a policy-based approach when monitoring medium and large networks. Software utilized in this v…

834 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