[Last Call] Learn about multicloud storage options and how to improve your company's cloud strategy. Register Now

x
?
Solved

Add Application to Terminal Server

Posted on 2009-05-13
6
Medium Priority
?
893 Views
Last Modified: 2013-11-21
I have installed an application(written in visual studio) on terminal server using the administrator account successfully; I have then copied the shortcut for the application which was installed during the install and adding this to the start folder for additional users. When the additional user clicks on the shortcut from there program list the program fails to load with the following error.  The application exists in the add remove programs list, why will the application not run from the other user sessions?

ERROR DETAILS
      Following errors were detected during this operation.
      * [13/05/2009 11:31:51] System.Deployment.Application.DeploymentDownloadException (Unknown subtype)
            - Downloading http://ts1/JobTrak/my.application did not succeed.
            - Source: System.Deployment
            - Stack trace:
                  at System.Deployment.Application.SystemNetDownloader.DownloadSingleFile(DownloadQueueItem next)
                  at System.Deployment.Application.SystemNetDownloader.DownloadAllFiles()
                  at System.Deployment.Application.FileDownloader.Download(SubscriptionState subState)
                  at System.Deployment.Application.DownloadManager.DownloadManifestAsRawFile(Uri& sourceUri, String targetPath, IDownloadNotification notification, DownloadOptions options, ServerInformation& serverInformation)
                  at System.Deployment.Application.DownloadManager.DownloadDeploymentManifestDirect(SubscriptionStore subStore, Uri& sourceUri, TempFile& tempFile, IDownloadNotification notification, DownloadOptions options, ServerInformation& serverInformation)
                  at System.Deployment.Application.DownloadManager.DownloadDeploymentManifest(SubscriptionStore subStore, Uri& sourceUri, TempFile& tempFile, IDownloadNotification notification, DownloadOptions options)
                  at System.Deployment.Application.ApplicationActivator.ProcessOrFollowShortcut(String shortcutFile, TempFile& deployFile)
                  at System.Deployment.Application.ApplicationActivator.PerformDeploymentActivation(Uri activationUri, Boolean isShortcut, String textualSubId, String deploymentProviderUrlFromExtension)
                  at System.Deployment.Application.ApplicationActivator.ActivateDeploymentWorker(Object state)
            --- Inner Exception ---
            System.Net.WebException
            - The remote server returned an error: (404) Not Found.
            - Source: System
            - Stack trace:
                  at System.Net.HttpWebRequest.GetResponse()
                  at System.Deployment.Application.SystemNetDownloader.DownloadSingleFile(DownloadQueueItem next)

COMPONENT STORE TRANSACTION DETAILS
      No transaction information is available.
0
Comment
Question by:JoeBo747
[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
  • 3
6 Comments
 
LVL 21

Expert Comment

by:snusgubben
ID: 24374231
Can the administrator (the user you installed the application with) start the application successfully?

Did you set the terminal server in install mode before you installed the program?

either with:
1. "change user /install" and "change user /execute"
2. Installed it from add-remove programs


SG
0
 
LVL 1

Author Comment

by:JoeBo747
ID: 24377052
Hi snusgubben:
Thanks for your response, the administrator can start the application and it runs correctly the user when they first click on the application the install dialog appears and the application is installed on their account, everything workscorrectly. When the user logs out and then logs back in the application is no longer there and they must reinstall. The application only remains installed for the duration of the session!

Regards
JoeBo747
0
 
LVL 21

Accepted Solution

by:
snusgubben earned 2000 total points
ID: 24378968
When you install a program on a terminal server you should set the server in install mode. If you don't do it the application installed will work fine for the user that installed the program but not for other users.

This has to do with the "shadow bits" to the HKCU registry and users ini-files.

I don't know what program you're installing, but I would try to uninstall it, set the server in install mode (with none users logged on) and try to install the application again.

I have experienced once that once installed in execute mode the application never worked even if it was uninstalled/installed.

Here is the step you should take:

1. Uninstall from add-/remove programs
2. Open cmd and type:
3. change logon /disable
3. query user (only the consol user should be logged on)
4. change user /install
5. INSTALL THE APPLICATION
6. change user /execute
7. change logon /enable

Then try the application with a normal user.


SG

0
Free Tool: IP Lookup

Get more info about an IP address or domain name, such as organization, abuse contacts and geolocation.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

 
LVL 1

Author Comment

by:JoeBo747
ID: 24382941
Hi snusgubben

Thanks for the information as you might have guessed I do not have a great deal of experience with Terminal Server Deployment and  It would appear that the problem I am experiencing is much deeper seated than I originally thought my application is a click once application and my research suggests that this is my main problem. Do you have any experience of dealing with click once applications and terminal server? I have found a blog which may hold the answer at:

http://robindotnet.wordpress.com/2009/04/22/clickonce-installing-multiple-versions-concurrently/
I would value your opinion on the suggested deployment.
Regards
JoeBo747
0
 
LVL 21

Expert Comment

by:snusgubben
ID: 24383092
I don't have any experience with ClickOnce app. but a quick google search gave me this: http://www.devnewsgroups.net/group/microsoft.public.dotnet.framework/topic54169.aspx

I'm afraid I can't help you any way in this case due to lack of experience with ClickOnce apps :(

SG
0
 
LVL 1

Author Closing Comment

by:JoeBo747
ID: 31580896
Hi
Thanks for your support on this issue, it looks as though I have got to convert the deployment from a click once app to an MSI app. This should be fun as I have never built  an MSI before and the project includes excel interloper  dlls amongst others! Ah well google here we come.
Regards
JoeBo747
0

Featured Post

Free Tool: IP Lookup

Get more info about an IP address or domain name, such as organization, abuse contacts and geolocation.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

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

The environment that this is running in is SCCM 2007 R2 running on a Windows 2008 R2 server. The PXE Distribution point is running on its own Windows 2008 R2 box. This is what Event viewer showed after trying to start the WDS service:  An erro…
On a regular basis I get questions about slow RDP performance, RDP connection problems, strange errors and even BSOD, remote computers freezing or restarting after initiation of a remote session. In a lot of this cases the quick solutions made b…
Visualize your data even better in Access queries. Given a date and a value, this lesson shows how to compare that value with the previous value, calculate the difference, and display a circle if the value is the same, an up triangle if it increased…
Are you ready to place your question in front of subject-matter experts for more timely responses? With the release of Priority Question, Premium Members, Team Accounts and Qualified Experts can now identify the emergent level of their issue, signal…

650 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