Access Denied error at startup

Add-in Express™ Support Service
That's what is more important than anything else

Access Denied error at startup
 
Nicholas Hebb


Guest


A customer is getting an Access Denied error at start up. The adxloader.log file contents are below. My add-in doesn't place any code in the AddinModule constructor. I had the customer check the permissions of the installation folder, and they have full control. Do you know of any reason an Access Denied error can occur?


===

Add-in Express Loader Log File: 06/26/2013 10:45:14:768

Startup directory: C:\Users\e285960\AppData\Roaming\BreezeTree\FlowBreeze3\
Loader version: 7.2.4055.0
Operating System: Microsoft Windows 7 Enterprise Edition Service Pack 1 (build 7601), 64-bit
Process Owner: Administrator
Command Line: "C:\Program Files (x86)\Microsoft Office\Office14\EXCEL.EXE"
Run 'As Administrator': No
Process Elevated: No
Integrity Level: Medium
UAC (User Account Control): On
------------------------------------------------------------------------
10:45:14:769 0884 5256 Start.
10:45:14:769 0884 5256 Reading the registry key 'HKEY_CLASSES_ROOT\CLSID\{C0308E93-8EF5-4F08-8511-6D19A06EBDCD}'
10:45:14:769 0884 5256 Success. The registry key 'HKEY_CLASSES_ROOT\CLSID\{C0308E93-8EF5-4F08-8511-6D19A06EBDCD}' is closed.
10:45:14:769 0884 5256 Converting the '{4BA250A6-8BCA-46A6-982A-F340081187C3}' CLSID from string.
10:45:14:769 0884 5256 Success.
10:45:14:771 0884 5256 Attempting to get the class object by the '{4BA250A6-8BCA-46A6-982A-F340081187C3}' CLSID.
10:45:14:771 0884 5256 Success.
10:45:14:771 0884 5256 Creating a new instance of the add-in loader.
10:45:14:771 0884 5256 Loading mscoree.dll
10:45:14:771 0884 5256 Success.
10:45:14:771 0884 5256 Loading the configuration from the system registry.
10:45:14:772 0884 5256 Getting the latest CLR version.
10:45:14:772 0884 5256 The latest CLR version is 'v4.0.30319'.
10:45:14:772 0884 5256 The configuration has been loaded successfully.
10:45:14:772 0884 5256 Runtime version: v2.0.50727.
10:45:14:772 0884 5256 Assembly name: FlowBreeze_3, PublicKeyToken=8C9A6DF9BCB4E5AA.
10:45:14:772 0884 5256 Class name: FlowBreeze3.AddinModule.
10:45:14:772 0884 5256 Registry key: CLSID\{C0308E93-8EF5-4F08-8511-6D19A06EBDCD}.
10:45:14:772 0884 5256 Attempting to create a new instance of the managed add-in class: CLR - v2.0.50727
10:45:14:772 0884 5256 Loading CLR: v2.0.50727.
10:45:14:772 0884 5256 Calling CLRCreateInstance method.
10:45:14:772 0884 5256 Success.
10:45:14:772 0884 5256 Calling GetRuntime method.
10:45:14:773 0884 5256 Success.
10:45:14:773 0884 5256 Checking if the hosting API of .NET Framework v4.0 beta is installed.
10:45:14:819 0884 5256 The hosting API is up to date.
10:45:14:819 0884 5256 Calling GetInterface method for the CorRuntimeHost interface.
10:45:14:819 0884 5256 Success.
10:45:14:819 0884 5256 Starting CLR...
10:45:14:819 0884 5256 Success.
10:45:14:819 0884 5256 Getting the CLR version.
10:45:14:819 0884 5256 The CLR v2.0.50727 has been initialized successfully.
10:45:14:819 0884 5256 Creating a new domain setup.
10:45:14:824 0884 5256 Success.
10:45:14:824 0884 5256 Getting the add-in directory.
10:45:14:824 0884 5256 Success. The directory is 'C:\Users\e285960\AppData\Roaming\BreezeTree\FlowBreeze3\'
10:45:14:827 0884 5256 The 'shadow copy' is enabled.
10:45:14:827 0884 5256 Creating a new application domain.
10:45:14:838 0884 5256 Success.
10:45:14:839 0884 5256 Creating an instance of the managed class. Assembly identity: 'FlowBreeze_3, PublicKeyToken=8C9A6DF9BCB4E5AA'
10:45:14:859 0884 5256 Access is denied.

10:45:26:515 0884 5256 Start.
10:45:26:515 0884 5256 Reading the registry key 'HKEY_CLASSES_ROOT\CLSID\{C0308E93-8EF5-4F08-8511-6D19A06EBDCD}'
10:45:26:516 0884 5256 Success. The registry key 'HKEY_CLASSES_ROOT\CLSID\{C0308E93-8EF5-4F08-8511-6D19A06EBDCD}' is closed.
10:45:26:516 0884 5256 Converting the '{4BA250A6-8BCA-46A6-982A-F340081187C3}' CLSID from string.
10:45:26:516 0884 5256 Success.
10:45:26:516 0884 5256 Attempting to get the class object by the '{4BA250A6-8BCA-46A6-982A-F340081187C3}' CLSID.
10:45:26:517 0884 5256 Success.
10:45:26:517 0884 5256 Creating a new instance of the add-in loader.
10:45:26:517 0884 5256 Success.
10:45:26:517 0884 5256 Loading the configuration from the system registry.
10:45:26:518 0884 5256 Getting the latest CLR version.
10:45:26:518 0884 5256 The latest CLR version is 'v4.0.30319'.
10:45:26:518 0884 5256 The configuration has been loaded successfully.
10:45:26:518 0884 5256 Runtime version: v2.0.50727.
10:45:26:518 0884 5256 Assembly name: FlowBreeze_3, PublicKeyToken=8C9A6DF9BCB4E5AA.
10:45:26:518 0884 5256 Class name: FlowBreeze3.AddinModule.
10:45:26:518 0884 5256 Registry key: CLSID\{C0308E93-8EF5-4F08-8511-6D19A06EBDCD}.
10:45:26:520 0884 5256 Attempting to create a new instance of the managed add-in class: CLR - v2.0.50727
10:45:26:520 0884 5256 Creating an instance of the managed class. Assembly identity: 'FlowBreeze_3, PublicKeyToken=8C9A6DF9BCB4E5AA'
10:45:26:520 0884 5256 Access is denied.
Posted 26 Jun, 2013 19:40:38 Top
Andrei Smolin


Add-in Express team


Posts: 18793
Joined: 2006-05-11
Hi Nicholas,

This can be an initializer of some complex-type variable declared on the class level. Even assigning null/Nothing to such a variable calls a constructor of that type.

Is there an adxregistrator.log describing how this add-in was installed? If there's no such log, please re-install the add-in.


Andrei Smolin
Add-in Express Team Leader
Posted 27 Jun, 2013 04:02:34 Top
Nicholas Hebb


Guest


I've asked the customer for adxregsitrator.log file and I'll report back when they send it..

As for initialization of complex types, there is one complex type declared in the AddinModule and set to null. I've put Debug.WriteLine's in its constructor, and I'm not seeing any output at startup when loaded in debug mode. I've gone ahead and removed the null initialization as a precaution, though.
Posted 27 Jun, 2013 07:58:33 Top
Nicholas Hebb


Guest


Hi Andrei,

Below is the adxregistrator log file. If you can spot any significant issues, please let me know.

====

Add-in Express Registrator Log File: 06/26/2013 10:45:05

Installation directory: C:\Users\e285960\AppData\Roaming\BreezeTree\FlowBreeze3\
Registrator version: 7.2.4055.0
Operating System: Microsoft Windows 7 Enterprise Edition Service Pack 1 (build 7601), 64-bit
Process Owner: Administrator
Command Line: "C:\Users\e285960\AppData\Roaming\BreezeTree\FlowBreeze3\adxregistrator.exe" /install="FlowBreeze_3.dll" /privileges=user /clrVersion="2.0"
Run 'As Administrator': No
Process Elevated: No
Integrity Level: Medium
UAC (User Account Control): On
--------------------------------------------------------------
10:45:05 0192 Starting the add-in registration process.
10:45:05 0192 Loading mscoree.dll
10:45:05 0192 Success.
10:45:05 0192 .NET Framework installation directory:
10:45:05 0192 The latest version of .NET Framework: 'v4.0.30319'
10:45:05 0192 Loading CLR: v2.0.50727.
10:45:05 0192 Calling CLRCreateInstance method.
10:45:05 0192 Success.
10:45:05 0192 Calling GetRuntime method.
10:45:05 0192 Success.
10:45:05 0192 Checking if the hosting API of .NET Framework v4.0 beta is installed.
10:45:05 0192 The hosting API is up to date.
10:45:05 0192 Calling GetInterface method for the CorRuntimeHost interface.
10:45:05 0192 Success.
10:45:05 0192 Starting CLR...
10:45:05 0192 Success.
10:45:05 0192 Getting the CLR version.
10:45:05 0192 The CLR v2.0.50727 has been initialized successfully.
10:45:05 0192 Creating a new domain setup.
10:45:05 0192 Success.
10:45:05 0192 Getting the add-in directory.
10:45:05 0192 Success. The directory is 'C:\Users\e285960\AppData\Roaming\BreezeTree\FlowBreeze3\'
10:45:05 0192 The 'shadow copy' is disabled.
10:45:05 0192 Creating a new application domain.
10:45:05 0192 Success.
10:45:05 0192 Getting the base directory for the domain.
10:45:05 0192 Success. The directory is 'C:\Users\e285960\AppData\Roaming\BreezeTree\FlowBreeze3\'.
10:45:05 0192 Searching for the Add-in Express core library.
10:45:05 0192 Success. The 'AddinExpress.MSO.2005.dll' file is found.
10:45:05 0192 Creating an instance of the 'AddinExpress.Deployment.ADXRegistrator' class.
10:45:05 0192 Assembly identity is 'AddinExpress.MSO.2005'.
10:45:05 0192 Success.
10:45:05 0192 Unwrapping the instance of the 'AddinExpress.Deployment.ADXRegistrator' class.
10:45:05 0192 Success.
10:45:05 0192 Calling the managed registration procedure.
10:45:05 1072 Connecting to the application domain of the Add-in Express loader.
10:45:05 1072 Success.
10:45:05 1072 Loading the 'flowbreeze_3.dll' assembly.
10:45:06 1072 Success.
10:45:06 1072 Registering the 'flowbreeze_3.dll' assembly (user).
10:45:07 1072 The ' flowbreeze_3.dll' assembly has been registered successfully.
10:45:07 0192 Success.
10:45:07 0192 The add-in registration process is completed with HRESULT = 0.
Posted 27 Jun, 2013 08:10:11 Top
Andrei Smolin


Add-in Express team


Posts: 18793
Joined: 2006-05-11
Nicholas,

The log seems okay to me. Is it possible to try installing a new empty add-in on that machine?


Andrei Smolin
Add-in Express Team Leader
Posted 27 Jun, 2013 09:59:19 Top
Nicholas Hebb


Guest


I'll try the empty project test.

I'm still on a fishing expedition to find the source of this problem, so I had another possibly related question. When are the task panes initialized?

My task panes read some configuration files, plus they have image lists with 50-200 images. I have a bool in the AddinModule that I don't set to true until a ribbon button is clicked, and the ADXBeforeTaskPaneInstanceCre ate event code checks the bool and sets e.Cancel if the bool is not true.

In my tests the task panes don't appear to be initialized on startup, but I don't know what may be going on "under the hood".

Thanks for any help.

- Nicholas Hebb
Posted 27 Jun, 2013 15:53:37 Top
Andrei Smolin


Add-in Express team


Posts: 18793
Joined: 2006-05-11
Nicholas,

I would check if the panes get initialized. Also note that their events are in a degree independent of add-in-level events such a AddinStartupComplete etc. See eg http://www.add-in-express.com/forum/read.php?FID=5&TID=11334.


Andrei Smolin
Add-in Express Team Leader
Posted 28 Jun, 2013 07:39:38 Top