Solved

deployment c# application windows 7

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

Free Tool: Subnet Calculator

The subnet calculator helps you design networks by taking an IP address and network mask and returning information such as network, broadcast address, and host range.

One of a set of tools we're offering 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

Real-time is more about the business, not the technology. In day-to-day life, to make real-time decisions like buying or investing, business needs the latest information(e.g. Gold Rate/Stock Rate). Unlike traditional days, you need not wait for a fe…
By default the complete memory dump option is disabled in windows . If we want to enable the complete memory dump for a diagnostic purpose, we have a solution for it. here we are using the registry method to enable this.
This Micro Tutorial will give you a basic overview of Windows DVD Burner through its features and interface. 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 editing capability. This will be demonstrated using Windows Live Movie Maker on Windows 7 operating system.

860 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