Solved

deployment c# application windows 7

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

Netscaler Common Configuration How To guides

If you use NetScaler you will want to see these guides. The NetScaler How To Guides show administrators how to get NetScaler up and configured by providing instructions for common scenarios and some not so common ones.

Question has a verified solution.

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

Suggested Solutions

If you get continual lockouts after changing your Active Directory password, there are several possible reasons.  Two of the most common are using other devices to access your email and stored passwords in the credential manager of windows.
You may have a outside contractor who comes in once a week or seasonal to do some work in your office but you only want to give him access to the programs and files he needs and keep privet all other documents and programs, can you do this on a loca…
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 go in depth within Systems and Security in Windows 7 and will go into detail regarding Action Center, Windows Firewall, System, etc. This will be demonstrated using Windows 7 operating system.

911 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

Need Help in Real-Time?

Connect with top rated Experts

15 Experts available now in Live!

Get 1:1 Help Now