Visual Studio Development Bookmark and Share   
 index > Visual Studio Guidance Automation Toolkit > Access Denied Error while installing custom Guidance package
 

Access Denied Error while installing custom Guidance package

Hi there,

We have created our own custom Guidance Package using Guidance Automation Toolkit 2008. The package installs successfully in most of the machines but in only 2 machines we face the "Access Denied Error" during installation which will eventually rollback the installation.

Below is the information from the log file of the GAX which gets generated in the %temp% folder for your reference. Please help.

MsiExec.exe Information: 0 : Starting Install phase...
MsiExec.exe Information: 0 : CheckForValidHive...
MsiExec.exe Information: 0 : CheckForValidHive...
MsiExec.exe Information: 0 : Checking DevEnv is not running...
MsiExec.exe Information: 0 : Starting InstallPackage C:\Program Files\Intel\TMG UI Framework\UI Framework 1.1\GuidanceAutomation.xml ...
MsiExec.exe Information: 0 : Initializing Recipe Framework Installer...
MsiExec.exe Information: 0 : Starting RegisterPackage... - register: True
MsiExec.exe Information: 0 : Base path to use: 'C:\Program Files\Intel\TMG UI Framework\UI Framework 1.1'
MsiExec.exe Information: 0 : Use RANU: False
MsiExec.exe Information: 0 : Starting RegisterTemplates: register = True
MsiExec.exe Warning: 0 : The registry is corrupt, multiple project factories found for language General
MsiExec.exe Warning: 0 : The registry is corrupt, multiple project factories found for language General
MsiExec.exe Information: 0 : Ending RegisterTemplates: register = True
MsiExec.exe Information: 0 : Starting RegisterInternal...
MsiExec.exe Information: 0 : Processing attribute 'Microsoft.Practices.RecipeFramework.VisualStudio.Registration.VsPackageRegistrationAttribute'.
MsiExec.exe Information: 0 : Registering attribute 'Microsoft.Practices.RecipeFramework.VisualStudio.Registration.VsPackageRegistrationAttribute'.
MsiExec.exe Error: 0 : System.IO.FileNotFoundException: Could not load file or assembly 'file:///C:\Program Files\Intel\TMG UI Framework\UI Framework 1.1\TMG_UI_Framework_1.1.dll' or one of its dependencies. The system cannot find the file specified.
File name: 'file:///C:\Program Files\Intel\TMG UI Framework\UI Framework 1.1\TMG_UI_Framework_1.1.dll'
at System.Reflection.Assembly._nLoad(AssemblyName fileName, String codeBase, Evidence assemblySecurity, Assembly locationHint, StackCrawlMark& stackMark, Boolean throwOnFileNotFound, Boolean forIntrospection)
at System.Reflection.Assembly.nLoad(AssemblyName fileName, String codeBase, Evidence assemblySecurity, Assembly locationHint, StackCrawlMark& stackMark, Boolean throwOnFileNotFound, Boolean forIntrospection)
at System.Reflection.Assembly.InternalLoad(AssemblyName assemblyRef, Evidence assemblySecurity, StackCrawlMark& stackMark, Boolean forIntrospection)
at System.Reflection.Assembly.InternalLoadFrom(String assemblyFile, Evidence securityEvidence, Byte[] hashValue, AssemblyHashAlgorithm hashAlgorithm, Boolean forIntrospection, StackCrawlMark& stackMark)
at System.Reflection.Assembly.LoadFrom(String assemblyFile)
at Microsoft.Practices.RecipeFramework.VisualStudio.Registration.VsPackageRegistrationAttribute.GetVsPackageClass(String assemblyPath, String vsPackageClass)

WRN: Assembly binding logging is turned OFF.
To enable assembly bind failure logging, set the registry value [HKLM\Software\Microsoft\Fusion!EnableLog] (DWORD) to 1.
Note: There is some performance penalty associated with assembly bind failure logging.
To turn this feature off, remove the registry value [HKLM\Software\Microsoft\Fusion!EnableLog].

MsiExec.exe Information: 0 : Processing attribute 'Microsoft.Practices.RecipeFramework.VisualStudio.Registration.ProvidePackageProjectFactoryAttribute'.
MsiExec.exe Information: 0 : Registering attribute 'Microsoft.Practices.RecipeFramework.VisualStudio.Registration.ProvidePackageProjectFactoryAttribute'.
MsiExec.exe Information: 0 : Processing attribute 'Microsoft.Practices.RecipeFramework.VisualStudio.Registration.ProvideProjectItemAttribute'.
MsiExec.exe Information: 0 : Registering attribute 'Microsoft.Practices.RecipeFramework.VisualStudio.Registration.ProvideProjectItemAttribute'.
MsiExec.exe Information: 0 : Processing attribute 'Microsoft.Practices.RecipeFramework.VisualStudio.Registration.ProvideAutoLoadAttribute'.
MsiExec.exe Information: 0 : Registering attribute 'Microsoft.Practices.RecipeFramework.VisualStudio.Registration.ProvideAutoLoadAttribute'.
MsiExec.exe Information: 0 : Processing attribute 'Microsoft.Practices.RecipeFramework.VisualStudio.Registration.ProvideAutoLoadAttribute'.
MsiExec.exe Information: 0 : Registering attribute 'Microsoft.Practices.RecipeFramework.VisualStudio.Registration.ProvideAutoLoadAttribute'.
MsiExec.exe Information: 0 : Processing attribute 'Microsoft.Practices.RecipeFramework.VisualStudio.Registration.ProvideCodeSnippetAttribute'.
MsiExec.exe Information: 0 : Registering attribute 'Microsoft.Practices.RecipeFramework.VisualStudio.Registration.ProvideCodeSnippetAttribute'.
MsiExec.exe Information: 0 : Processing attribute 'Microsoft.Practices.RecipeFramework.VisualStudio.Registration.ProvideCodeSnippetAttribute'.
MsiExec.exe Information: 0 : Registering attribute 'Microsoft.Practices.RecipeFramework.VisualStudio.Registration.ProvideCodeSnippetAttribute'.
MsiExec.exe Information: 0 : Processing attribute 'Microsoft.Practices.RecipeFramework.VisualStudio.Registration.ProvideCodeSnippetAttribute'.
MsiExec.exe Information: 0 : Registering attribute 'Microsoft.Practices.RecipeFramework.VisualStudio.Registration.ProvideCodeSnippetAttribute'.
MsiExec.exe Information: 0 : Processing attribute 'Microsoft.Practices.RecipeFramework.VisualStudio.CTC.ProvideMenuResourceAttribute'.
MsiExec.exe Information: 0 : Registering attribute 'Microsoft.Practices.RecipeFramework.VisualStudio.CTC.ProvideMenuResourceAttribute'.
MsiExec.exe Error: 0 : Exception: Access is denied - at System.Diagnostics.Process.StartWithCreateProcess(ProcessStartInfo startInfo)
at System.Diagnostics.Process.Start()
at Microsoft.Practices.RecipeFramework.VisualStudio.CTC.ProvideMenuResourceAttribute.CompileCTO(String& tempCTO)
at Microsoft.Practices.RecipeFramework.VisualStudio.CTC.ProvideMenuResourceAttribute.Generate()
at Microsoft.Practices.RecipeFramework.VisualStudio.CTC.ProvideMenuResourceAttribute.Register()
at Microsoft.Practices.RecipeFramework.VisualStudio.Registration.GuidancePackageRegistrationAttribute.Register(RegistrationContext context)
at Microsoft.Practices.RecipeFramework.VisualStudio.RecipeFrameworkInstaller.RegisterInternal(RecipeFrameworkRegContext context, Boolean register)
at Microsoft.Practices.RecipeFramework.VisualStudio.RecipeFrameworkInstaller.RegisterPackage(InstallContext installContext, Boolean register, GuidancePackage packageConfig)
at Microsoft.Practices.RecipeFramework.VisualStudio.RecipeFrameworkInstaller.Microsoft.Practices.RecipeFramework.IHostInstaller.InstallPackage(InstallContext context, GuidancePackage packageConfig)
at Microsoft.Practices.RecipeFramework.ManifestInstaller.InstallPackage(String configuration) - System
MsiExec.exe Error: 0 : Exception: Access is denied - at Microsoft.Practices.RecipeFramework.ManifestInstaller.InstallPackage(String configuration)
at Microsoft.Practices.RecipeFramework.ManifestInstaller.Install(IDictionary stateSaver) - System


Thanks,
Ranjith
ranjith_chev  Wednesday, January 21, 2009 11:45 AM

Hi,


Perhaps, you must read this two links:


http://social.msdn.microsoft.com/Forums/en-US/vsgatk/thread/accc9b27-f79e-4be3-bb49-c10223df7871/

http://social.msdn.microsoft.com/forums/en-US/vsgatk/thread/bb68ac6d-15e2-4dbf-93f1-29bcb37f5e5c/


In these posts have the same problem, and they solve it accessing to the registry and verify if the package guid wasn´t installed.


greetings

Leandro Tuttini
Leandro Tuttini  Wednesday, January 21, 2009 4:17 PM
Hi,

I tried the solution but it does not help either.

Thanks,
Ranjith
ranjith_chev  Tuesday, January 27, 2009 3:08 AM
Hi Ranjith,

In that cases is not recommended make any change in the registry, because it could have multiple side effects.

GAX/GAT was designed to develop under Administrator privileges, you're trying to register a Guidance Package without the proper privileges. If you're on design time you should have been prompted about the Administrator credentials, if you're on installation time, the msi must run using a elevated user.

Prior to Vs 2008, is recommended to run VS using an elevated user.

hth.
jose.

Jose Escrich - weblogs.asp.net/jescrich
  • Proposed As Answer byJose Escrich Thursday, February 19, 2009 7:11 PM
  •  
Jose Escrich  Thursday, February 19, 2009 7:10 PM
Hi,

I'm the administrator of the machine and few months back it got installed without any problem. I had to rebuild my machine in order to get it properly installed.

Thanks
ranjith_chev  Friday, February 20, 2009 3:32 AM
The host in where you're trying to install your guidance package is Windows Vista?
Jose Escrich - weblogs.asp.net/jescrich
Jose Escrich  Monday, February 23, 2009 2:34 AM
Hi,

It's Windows XP SP2.

Thanks,
Ranjith
ranjith_chev  Monday, February 23, 2009 8:23 AM

You can use google to search for other answers

Custom Search

More Threads

• Trying To Use Solution Folders for Projects
• Clean up of wizard base form.
• Code Snippets not uninstalling
• Project Type "Service Factory: Modeling Edition" not found under Guidance Packages
• Customizing a wizard
• Passing a XmlSerializer Class To T4 template
• Create New Project Hangs
• T4 templates editor?
• Add as Link and name space
• Parameterising ProjectType in VS2005 templates