Solved

deployment c# application windows 7

Posted on 2010-11-16
3
792 Views
Last Modified: 2012-05-10
I have a setup file created from my vsto application and put it on a network share. I know it install when I use my domain admin user. But when I use a normal domain user account it gets stuck immediately when trying to install.
Main error message is : "Access to the path 'c:\users\USERNAME\Appdate\local\deployment' is denied.
Is there something I can do with my setupfile to install it anyway ??

Detail of error :
Installing Office customization
There was an error during installation.
Name:
From: file:///U:/Templates2010/Memo2010b.vsto

************** Exception Text **************
System.UnauthorizedAccessException: Access to the path 'C:\Users\standaard1\AppData\Local\Deployment' is denied.
   at System.IO.__Error.WinIOError(Int32 errorCode, String maybeFullPath)
   at System.IO.Directory.InternalCreateDirectory(String fullPath, String path, DirectorySecurity dirSecurity)
   at System.IO.Directory.CreateDirectory(String path, DirectorySecurity directorySecurity)
   at System.Deployment.Application.SubscriptionStore..ctor(String deployPath, String tempPath, ComponentStoreType storeType)
   at System.Deployment.Application.SubscriptionStore.get_CurrentUser()
   at System.Deployment.Application.DeploymentManager..ctor(Uri deploymentSource, Boolean isUpdate, Boolean isConfirmed, DownloadOptions downloadOptions, AsyncOperation optionalAsyncOp)
   at System.Deployment.Application.InPlaceHostingManager..ctor(Uri deploymentManifest, Boolean launchInHostProcess)
   at Microsoft.VisualStudio.Tools.Applications.Deployment.IPHMProxy..ctor(Uri uri)
   at Microsoft.VisualStudio.Tools.Applications.Deployment.ClickOnceAddInDeploymentManager.get_Proxy()
   at Microsoft.VisualStudio.Tools.Applications.Deployment.ClickOnceAddInDeploymentManager.GetManifests(TimeSpan timeout)
   at Microsoft.VisualStudio.Tools.Applications.Deployment.ClickOnceAddInDeploymentManager.InstallAddIn()
0
Comment
Question by:dekempeneer
[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
  • 2
3 Comments
 
LVL 4

Accepted Solution

by:
alaran earned 500 total points
ID: 34147473
Try right-clicking the file and select "Run as administrator".

This should execute the installer with elevated rights. (Your regular domain account may have to be a member of the local Administrators group)
0
 

Author Comment

by:dekempeneer
ID: 34147526
Yes but I don't want to run it as admin :)
0
 
LVL 4

Expert Comment

by:alaran
ID: 34147553
then you will probably have to give your domain user write access to the "c:\users\USERNAME\Appdate\local\deployment" folder. Either way, you'll have to run the installer in a context where you have these permissions.
0

Featured Post

On Demand Webinar: Networking for the Cloud Era

Did you know SD-WANs can improve network connectivity? Check out this webinar to learn how an SD-WAN simplified, one-click tool can help you migrate and manage data in the cloud.

Question has a verified solution.

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

Performance in games development is paramount: every microsecond counts to be able to do everything in less than 33ms (aiming at 16ms). C# foreach statement is one of the worst performance killers, and here I explain why.
When you try to extract and to view the contents of a Microsoft Update Standalone Package (MSU) for Windows Vista, you cannot extract the files from the MSU. Here we are going to explain how to extract those hotfix details without using any third pa…
This Micro Tutorial will teach you the basics of configuring your computer to improve its speed. It will also teach you how to disable programs that are running in the background simultaneously. This will be demonstrated using Windows 7 operating…
The Task Scheduler is a powerful tool that is built into Windows. It allows you to schedule tasks (actions) on a recurring basis, such as hourly, daily, weekly, monthly, at log on, at startup, on idle, etc. This video Micro Tutorial is a brief intro…

695 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