Registering the plugin dll is failing.

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

Registering the plugin dll is failing.
 
ravinukala




Posts: 103
Joined: 2012-10-05
Hi,

I have developed plug in. I have used log4net for logging. One of our client machine Registering the plugin dll is failing due to following error

Exception Source: log4net
Exception Type: System.ArgumentNullException
Exception Message: Value cannot be null.
Parameter name: name
Exception Target Site: GetLogger

Please help.

It is win7 system.
Posted 22 Feb, 2013 03:32:13 Top
Andrei Smolin


Add-in Express team


Posts: 14094
Joined: 2006-05-11
Hi Ravinukala,

I'm sorry, I don't see how this relates to Add-in Express. Anyway, the information you provided isn't sufficient. I suggest that you study the exception's details and google for solution. Probably, it would be better to debug your code. I don't think that we are able to help you with this.

Regards from Belarus (GMT+3),

Andrei Smolin
Add-in Express Team Leader
Posted 22 Feb, 2013 06:30:23 Top
ravinukala




Posts: 103
Joined: 2012-10-05
Hi,

While registering plug in why it is calling IEBar_Resize event?

Please check log adxregistrator.log as below:


13:17:03 0192 Starting the add-in registration process.
13:17:03 0192 Loading mscoree.dll
13:17:03 0192 Success.
13:17:03 0192 .NET Framework installation directory:
13:17:03 0192 The latest version of .NET Framework: 'v4.0.30319'
13:17:03 0192 Loading CLR: v4.0.30319.
13:17:03 0192 Calling CLRCreateInstance method.
13:17:03 0192 Success.
13:17:03 0192 Calling GetRuntime method.
13:17:03 0192 Success.
13:17:03 0192 Checking if the hosting API of .NET Framework v4.0 beta is installed.
13:17:03 0192 The hosting API is up to date.
13:17:03 0192 Calling GetInterface method for the CorRuntimeHost interface.
13:17:03 0192 Success.
13:17:03 0192 Starting CLR...
13:17:03 0192 Success.
13:17:03 0192 Getting the CLR version.
13:17:03 0192 The CLR v4.0.30319 has been initialized successfully.
13:17:03 0192 Creating a new domain setup.
13:17:03 0192 Success.
13:17:03 0192 Getting the add-in directory.
13:17:03 0192 Success. The directory is 'C:\Program Files (x86)\Qualitia\Qualitia_ObjectSpy\ObjectSpy\'
13:17:03 0192 The 'shadow copy' is disabled.
13:17:03 0192 Creating a new application domain.
13:17:03 0192 Success.
13:17:03 0192 Getting the base directory for the domain.
13:17:03 0192 Success. The directory is 'C:\Program Files (x86)\Qualitia\Qualitia_ObjectSpy\ObjectSpy\'.
13:17:03 0192 Searching for the Add-in Express core library.
13:17:03 0192 Success. The 'AddinExpress.IE.dll' file is found.
13:17:03 0192 Creating an instance of the 'AddinExpress.Deployment.ADXRegistrator' class.
13:17:03 0192 Assembly identity is 'AddinExpress.IE'.
13:17:03 0192 Success.
13:17:03 0192 Unwrapping the instance of the 'AddinExpress.Deployment.ADXRegistrator' class.
13:17:03 0192 Success.
13:17:03 0192 Calling the managed registration procedure.
13:17:03 0644 Connecting to the application domain of the Add-in Express loader.
13:17:03 0644 Success.
13:17:03 0644 Loading the 'objectspy.dll' assembly.
13:17:03 0644 Success.
13:17:03 0644 Registering the 'objectspy.dll' assembly (administrator).
13:17:04 0192 Managed Error:
(Inner Exception)
(Inner Exception)
Date and Time: 22-02-2013 13:17:04
Machine Name: RENAIR2L1
IP Address: 130.21.36.194
Current User: PTCNET\renair

Application Domain: C:\Program Files (x86)\Qualitia\Qualitia_ObjectSpy\ObjectSpy\
Assembly Codebase: file:///C:/Program Files (x86)/Qualitia/Qualitia_ObjectSpy/ObjectSpy/AddinExpress.IE.DLL
Assembly Full Name: AddinExpress.IE, Version=8.1.5065.0, Culture=neutral, PublicKeyToken=4416dd98f0861965
Assembly Version: 8.1.5065.0
Assembly Build Date: 03-10-2012 11:57:18

Exception Source: log4net
Exception Type: System.ArgumentNullException
Exception Message: Value cannot be null.
Parameter name: name
Exception Target Site: GetLogger

---- Stack Trace ----
log4net.Core.LoggerManager.GetLogger(repositoryAssembly As Assembly, name As String)
AddinExpress.IE.DLL: N 0046 (0x2E) IL
log4net.LogManager.GetLogger(repositoryAssembly As Assembly, name As String)
AddinExpress.IE.DLL: N 0000 (0x0) IL
log4net.LogManager.GetLogger(name As String)
AddinExpress.IE.DLL: N 0000 (0x0) IL
QualitiaCore.Log.getInstance(PageName As String)
AddinExpress.IE.DLL: N 0017 (0x11) IL
QualitiaCore.Log.Debug(strMessage As Object, PageName As String)
AddinExpress.IE.DLL: N 0001 (0x1) IL
ObjectSpy.ORBar.ORBar_Resize(sender As Object, e As EventArgs)
AddinExpress.IE.DLL: N 0001 (0x1) IL
System.Windows.Forms.Control.OnResize(e As EventArgs)
AddinExpress.IE.DLL: N 0069 (0x45) IL
System.Windows.Forms.UserControl.OnResize(e As EventArgs)
AddinExpress.IE.DLL: N 0000 (0x0) IL
System.Windows.Forms.Control.OnSizeChanged(e As EventArgs)
AddinExpress.IE.DLL: N 0000 (0x0) IL
System.Windows.Forms.Control.UpdateBounds(x As Int32, y As Int32, width As Int32, height As Int32, clientWidth As Int32, clientHeight As Int32)
AddinExpress.IE.DLL: N 0133 (0x85) IL
System.Windows.Forms.Control.UpdateBounds(x As Int32, y As Int32, width As Int32, height As Int32)
AddinExpress.IE.DLL: N 0117 (0x75) IL
System.Windows.Forms.Control.SetBoundsCore(x As Int32, y As Int32, width As Int32, height As Int32, specified As BoundsSpecified)
AddinExpress.IE.DLL: N 0128 (0x80) IL
System.Windows.Forms.Control.ScaleControl(factor As SizeF, specified As BoundsSpecified)
AddinExpress.IE.DLL: N 0546 (0x222) IL
System.Windows.Forms.ScrollableControl.ScaleControl(factor As SizeF, specified As BoundsSpecified)
AddinExpress.IE.DLL: N 0020 (0x14) IL
System.Windows.Forms.Control.ScaleControl(includedFactor As SizeF, excludedFactor As SizeF, requestingControl As Control)
AddinExpress.IE.DLL: N 0045 (0x2D) IL
System.Windows.Forms.ContainerControl.Scale(includedFactor As SizeF, excludedFactor As SizeF, requestingControl As Control)
AddinExpress.IE.DLL: N 0189 (0xBD) IL
System.Windows.Forms.ContainerControl.PerformAutoScale(includedBounds As Boolean, excludedBounds As Boolean)
AddinExpress.IE.DLL: N 0060 (0x3C) IL
System.Windows.Forms.ContainerControl.PerformNeededAutoScaleOnLayout()
AddinExpress.IE.DLL: N 0018 (0x12) IL
System.Windows.Forms.ContainerControl.OnLayoutResuming(performLayout As Boolean)
AddinExpress.IE.DLL: N 0000 (0x0) IL
System.Windows.Forms.Control.ResumeLayout(performLayout As Boolean)
AddinExpress.IE.DLL: N 0035 (0x23) IL
ObjectSpy.ORBar.InitializeComponent()
AddinExpress.IE.DLL: N 6481 (0x1951) IL
ObjectSpy.ORBar..ctor(mode As Int32)
AddinExpress.IE.DLL: N 0083 (0x53) IL
Posted 22 Feb, 2013 06:47:05 Top
Sergey Grischenko


Add-in Express team


Posts: 7187
Joined: 2004-07-05
Hi Ravi,

When the add-on is registered, adxregistrator creates instances of iemodule, toolbars and explorer bars. That is why you see calls to System.Windows.Forms controls. Please change the code so that 'log4net' works if the current process is 'iexplore'. I think it should fix the issue.
Posted 22 Feb, 2013 07:55:19 Top