Solved

deployment c# application windows 7

Posted on 2010-11-16
3
788 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
  • 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

Ransomware: The New Cyber Threat & How to Stop It

This infographic explains ransomware, type of malware that blocks access to your files or your systems and holds them hostage until a ransom is paid. It also examines the different types of ransomware and explains what you can do to thwart this sinister online threat.  

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
InputLanguage 1 26
How to make a Gridview column hidden (visibility false) in the HTML code? 2 16
VB.NET 2008 Publish Error 2 27
What Does This C# Code Block Do? 5 31
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.
While working, an annoying popup showing below will come and we cannot cancel or close it form the screen. The error message will come again and again.
This Micro Tutorial will teach you how to change your appearance and customize your Windows 7 interface to your unique preference. This will be demonstrated using Windows 7 operating system.
This Micro Tutorial will give you a introduction in two parts how to utilize Windows Live Movie Maker to its maximum capability. This will be demonstrated using Windows Live Movie Maker on Windows 7 operating system.

810 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