mahiv / ziggis

Automatically exported from code.google.com/p/ziggis
0 stars 0 forks source link

Unable to load layer - error about log4net #11

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
What steps will reproduce the problem?
1. Complete load layer menu
2. Error window appears
3.

What is the expected output? What do you see instead?

What version of the product are you using? On what operating system?
ArcGIS 9.1

Please provide any additional information below.
Sorry - here goes:

System.TypeInitializationException: The type initializer for
'Pulp.ArcGis.ZigGis.PostGisWksFactory' threw an exception. --->
System.IO.FileNotFoundException: Could not load file or assembly 'log4net,
Version=1.2.9.0, Culture=neutral, PublicKeyToken=b32731d11ce58905' or one
of its dependencies. The system cannot find the file specified.
File name: 'log4net, Version=1.2.9.0, Culture=neutral,
PublicKeyToken=b32731d11ce58905'
   at Pulp.ArcGis.ZigGis.PostGisWksFactory..cctor()

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].

   --- End of inner exception stack trace ---
   at Pulp.ArcGis.ZigGis.PostGisWksFactory..ctor()
   at Pulp.ArcGis.ZigGis.AddForm.ok_Click(Object sender, EventArgs e) in
C:\zigGIS2\core\ziggis_button\add_form.cs:line 42
   at System.Windows.Forms.Control.OnClick(EventArgs e)
   at System.Windows.Forms.Button.OnClick(EventArgs e)
   at System.Windows.Forms.Button.OnMouseUp(MouseEventArgs mevent)
   at System.Windows.Forms.Control.WmMouseUp(Message& m, MouseButtons
button, Int32 clicks)
   at System.Windows.Forms.Control.WndProc(Message& m)
   at System.Windows.Forms.ButtonBase.WndProc(Message& m)
   at System.Windows.Forms.Button.WndProc(Message& m)
   at System.Windows.Forms.Control.ControlNativeWindow.OnMessage(Message& m)
   at System.Windows.Forms.Control.ControlNativeWindow.WndProc(Message& m)
   at System.Windows.Forms.NativeWindow.Callback(IntPtr hWnd, Int32 msg,
IntPtr wparam, IntPtr lparam)

************** Loaded Assemblies **************
mscorlib
    Assembly Version: 2.0.0.0
    Win32 Version: 2.0.50727.42 (RTM.050727-4200)
    CodeBase:
file:///c:/WINDOWS/Microsoft.NET/Framework/v2.0.50727/mscorlib.dll
----------------------------------------
AWASV2
    Assembly Version: 1.0.2379.16919
    Win32 Version: 1.0.2379.16919
    CodeBase: file:///C:/Program%20Files/IDS/AWAS%20V2/AWASV2.dll
----------------------------------------
ESRI.ArcGIS.Utility
    Assembly Version: 9.1.0.722
    Win32 Version: 9.1.0.722
    CodeBase:
file:///C:/WINDOWS/assembly/GAC/ESRI.ArcGIS.Utility/9.1.0.722__8fc3cc631e44ad86/
ESRI.ArcGIS.Utility.dll
----------------------------------------
ESRI.ArcGIS.SystemUI
    Assembly Version: 9.1.0.722
    Win32 Version: 9.1.0.722
    CodeBase:
file:///C:/WINDOWS/assembly/GAC/ESRI.ArcGIS.SystemUI/9.1.0.722__8fc3cc631e44ad86
/ESRI.ArcGIS.SystemUI.dll
----------------------------------------
System.Windows.Forms
    Assembly Version: 2.0.0.0
    Win32 Version: 2.0.50727.42 (RTM.050727-4200)
    CodeBase:
file:///C:/WINDOWS/assembly/GAC_MSIL/System.Windows.Forms/2.0.0.0__b77a5c561934e
089/System.Windows.Forms.dll
----------------------------------------
System
    Assembly Version: 2.0.0.0
    Win32 Version: 2.0.50727.42 (RTM.050727-4200)
    CodeBase:
file:///C:/WINDOWS/assembly/GAC_MSIL/System/2.0.0.0__b77a5c561934e089/System.dll
----------------------------------------
System.Drawing
    Assembly Version: 2.0.0.0
    Win32 Version: 2.0.50727.42 (RTM.050727-4200)
    CodeBase:
file:///C:/WINDOWS/assembly/GAC_MSIL/System.Drawing/2.0.0.0__b03f5f7f11d50a3a/Sy
stem.Drawing.dll
----------------------------------------
ESRI.ArcGIS.ArcMapUI
    Assembly Version: 9.1.0.722
    Win32 Version: 9.1.0.722
    CodeBase:
file:///C:/WINDOWS/assembly/GAC/ESRI.ArcGIS.ArcMapUI/9.1.0.722__8fc3cc631e44ad86
/ESRI.ArcGIS.ArcMapUI.dll
----------------------------------------
ESRI.ArcGIS.Framework
    Assembly Version: 9.1.0.722
    Win32 Version: 9.1.0.722
    CodeBase:
file:///C:/WINDOWS/assembly/GAC/ESRI.ArcGIS.Framework/9.1.0.722__8fc3cc631e44ad8
6/ESRI.ArcGIS.Framework.dll
----------------------------------------
Pulp.ArcGis.ZigGis.Button
    Assembly Version: 1.0.0.0
    Win32 Version: 1.0.0.0
    CodeBase:
file:///C:/Personal/zigGIS/zigGIS2/core/ziggis_button/bin/Release/Pulp.ArcGis.Zi
gGis.Button.DLL
----------------------------------------
Accessibility
    Assembly Version: 2.0.0.0
    Win32 Version: 2.0.50727.42 (RTM.050727-4200)
    CodeBase:
file:///C:/WINDOWS/assembly/GAC_MSIL/Accessibility/2.0.0.0__b03f5f7f11d50a3a/Acc
essibility.dll
----------------------------------------
ESRI.ArcGIS.Geodatabase
    Assembly Version: 9.1.0.722
    Win32 Version: 9.1.0.722
    CodeBase:
file:///C:/WINDOWS/assembly/GAC/ESRI.ArcGIS.Geodatabase/9.1.0.722__8fc3cc631e44a
d86/ESRI.ArcGIS.Geodatabase.dll
----------------------------------------
ESRI.ArcGIS.Carto
    Assembly Version: 9.1.0.722
    Win32 Version: 9.1.0.722
    CodeBase:
file:///C:/WINDOWS/assembly/GAC/ESRI.ArcGIS.Carto/9.1.0.722__8fc3cc631e44ad86/ES
RI.ArcGIS.Carto.dll
----------------------------------------
Pulp.ArcGis.ZigGis.GeoDb
    Assembly Version: 1.0.0.0
    Win32 Version: 1.0.0.0
    CodeBase:
file:///C:/Personal/zigGIS/zigGIS2/core/ziggis_button/bin/Release/Pulp.ArcGis.Zi
gGis.GeoDb.DLL
----------------------------------------
ESRI.ArcGIS.System
    Assembly Version: 9.1.0.722
    Win32 Version: 9.1.0.722
    CodeBase:
file:///C:/WINDOWS/assembly/GAC/ESRI.ArcGIS.System/9.1.0.722__8fc3cc631e44ad86/E
SRI.ArcGIS.System.dll
----------------------------------------
ESRI.ArcGIS.Display
    Assembly Version: 9.1.0.722
    Win32 Version: 9.1.0.722
    CodeBase:
file:///C:/WINDOWS/assembly/GAC/ESRI.ArcGIS.Display/9.1.0.722__8fc3cc631e44ad86/
ESRI.ArcGIS.Display.dll
----------------------------------------
ESRI.ArcGIS.Geometry
    Assembly Version: 9.1.0.722
    Win32 Version: 9.1.0.722
    CodeBase:
file:///C:/WINDOWS/assembly/GAC/ESRI.ArcGIS.Geometry/9.1.0.722__8fc3cc631e44ad86
/ESRI.ArcGIS.Geometry.dll
----------------------------------------
logger
    Assembly Version: 1.0.0.0
    Win32 Version: 1.0.0.0
    CodeBase:
file:///C:/Personal/zigGIS/zigGIS2/core/ziggis_button/bin/Release/logger.DLL
----------------------------------------

************** JIT Debugging **************
To enable just-in-time (JIT) debugging, the .config file for this
application or computer (machine.config) must have the
jitDebugging value set in the system.windows.forms section.
The application must also be compiled with debugging
enabled.

For example:

<configuration>
    <system.windows.forms jitDebugging="true" />
</configuration>

When JIT debugging is enabled, any unhandled exception
will be sent to the JIT debugger registered on the computer
rather than be handled by this dialog box.

Original issue reported on code.google.com by bruce.ri...@gmail.com on 23 Feb 2007 at 12:01

Attachments:

GoogleCodeExporter commented 8 years ago
Hi Bruce
did you try the zigGis installer or you just downloaded the code?
The error is strange, you are missing the log4net.dll that is both included in 
the
installer and in the source code.
You may try to install the last release, zigGIS 1.1.1
Let me know,
Paolo

Original comment by pco...@gmail.com on 23 Feb 2007 at 9:32

GoogleCodeExporter commented 8 years ago
I did an uninstall and installed the latest ziggis11.zip.  I also changes the 
configuration files as per the home page.  Now the error is a simple message 
box 
stating:

Error: Object reference not set to an instance of an object.

Any help would be appreciated.
Bruce

Original comment by bruce.ri...@gmail.com on 25 Feb 2007 at 5:11

GoogleCodeExporter commented 8 years ago
Bruce
did you check if you have .NET 2.0 Framework installed and ArcObjects 
assemblies in
the GAC?
let me know

Original comment by pco...@gmail.com on 26 Feb 2007 at 8:34

GoogleCodeExporter commented 8 years ago
I have .net 1.1 and .net 2.0 installed.  I also have ArcGIS Descktop Developer 
Kit installed.
Bruce

Original comment by bruce.ri...@gmail.com on 26 Feb 2007 at 3:45

GoogleCodeExporter commented 8 years ago
1) when do the error appears? Just when you press the zigGis button or later?
2) are you sure that you have the ArcObjects in the assemblies? You may check 
this
article explaining how tho check theese things, unluckly esri made the process 
of
installing the .NET stuff fairly difficult:
http://www.paolocorti.net/public/wordpress/index.php/2007/02/14/installing-ziggi
s-11-for-connecting-arcmap-to-postgis-layers/
3) could you try to run zigGis in debug mode? You just need to set the 
configfile
parameter to a path on your local drive

my main guess is that you lack ArcObjects assemblies in the GAC, many people is
having this problem, and this is - again - a problem from the Esri ArcGIS 
Desktop
installer.
We don't want to redistribuite the ArcObjects assemblies, but want to use the 
PIA.

Bruce, feel free to Istant Message with me at pcorti (gmail).
Let me know

Original comment by pco...@gmail.com on 26 Feb 2007 at 3:54

GoogleCodeExporter commented 8 years ago
The error appears after I fill in the menu with the configuration file and 
specify a table.
I have all the entries for ArcObjects in the c:\windoes\assembly directory.
What do I need to add to the .zig file to run in debug mode?
Thanks
Bruce

Original comment by bruce.ri...@gmail.com on 26 Feb 2007 at 5:34

GoogleCodeExporter commented 8 years ago
to enable debug mode just edit the zig file and set a valid path to the config 
parameter:
ie: configfile = C:\Program Files\Pulp\Ziggis\logging.config
then open the logging.config file (you should find it, if you use default 
settings at
the installer, under C:\Program Files\Pulp\ZigGis).
Edit the logging.config file and change (if you wish) the C:\\log\\debug.log to 
the
desired path. You need to change this path in 2 different places. Or, just 
create a
log folder under c and you are ok).

You should also check if the installer installed all the necessary files. This 
are
the files that you should find under ziggis installation path:
11/16/2006  07:21p                 147 ArcMap.exe.config
12/21/2006  04:01p                 676 example.zig
12/21/2006  01:07p              15,424 license.txt
12/21/2006  01:05p             270,336 log4net.dll
12/21/2006  03:53p               1,256 logging.config
08/26/2005  10:59p             255,488 Mono.Security.dll
12/21/2006  01:05p              69,632 Nini.dll
12/21/2006  01:03p             303,104 Npgsql.dll
02/26/2007  07:01p                   0 out.txt
02/21/2007  11:21a               4,051 readme.txt
02/21/2007  11:21a             122,880 ZigGis.dll
02/26/2007  06:56p               2,012 ZigGis.InstallState
02/21/2007  11:21a              19,036 ZigGis.tlb

Finally it is still possible that ArcGis is configured for using .NET 1.0 (if 
you
installed 2.0 framework after installing ArcObject assemblies and at that time 
there
was only 1.0 framework). In that case just copy the
In that case you should copy the ArcMap.exe.config file (included at the 
installation
path) under the bin folder of ArcGis.

Let me know if this solved - hopefully - the issue.

Good luck!

Original comment by pco...@gmail.com on 26 Feb 2007 at 6:04

GoogleCodeExporter commented 8 years ago
by the way, if you enable debug mode don't forget to post the log file after 
getting
the error here, so I can investigate.
But before doing anything else, try the last thing I suggested (copying the
ArcMap.exe.config file in the bin folder of ArcGis) maybe - I strongly suspect 
now -
is your case.

Original comment by pco...@gmail.com on 26 Feb 2007 at 6:07

GoogleCodeExporter commented 8 years ago
Tried everything and not working.  I am going for a reinstall of ArcGIS
Bruce

Original comment by bruce.ri...@gmail.com on 26 Feb 2007 at 6:22

GoogleCodeExporter commented 8 years ago
sorry for that Bruce
hopefully after doing that you will get zigGis working...
good luck!

Original comment by pco...@gmail.com on 26 Feb 2007 at 6:24

GoogleCodeExporter commented 8 years ago
No change after a reinstall.  No log file is created.
I installed ArcGIS in c:\ArcGIS instead of the default.  Could this be an issue?
Bruce

Original comment by bruce.ri...@gmail.com on 26 Feb 2007 at 7:39

GoogleCodeExporter commented 8 years ago
Bruce, could you solve this?
thanks

Original comment by pco...@gmail.com on 6 Mar 2007 at 4:42

GoogleCodeExporter commented 8 years ago
No nothing worked even after a reinstall.  I was wondering if my installation
directory of c:/ArcGIS instead of the c:/Program Files/ArcGIS could be a 
problem.  Is
this hard coded into zigGIS?  Otherwise I will wait until I update to 9.1
Bruce

Original comment by bruce.ri...@gmail.com on 10 Mar 2007 at 1:35

GoogleCodeExporter commented 8 years ago
No nothing is hard coded.
Bruce, I thought you were using 9.1. If you are using 9.0 don't forget to 
install
service pack 3, otherwise it won't work.
Let me know.

Original comment by pco...@gmail.com on 12 Mar 2007 at 9:03

GoogleCodeExporter commented 8 years ago
Sorry it was a typo.  I am on 9.1
Bruce

Original comment by bruce.ri...@gmail.com on 12 Mar 2007 at 5:50

GoogleCodeExporter commented 8 years ago
Bruce
can you send me one of your PostGIS layers?
I only need the table, and 4-5 records, just to test...
Let me know

Original comment by pco...@gmail.com on 26 Mar 2007 at 4:38

GoogleCodeExporter commented 8 years ago
Success!
I just downloaded 1.2 and uninstalled the old version.  I used all the defaults 
and
carefully redid the configuration file.  I was missing the [connection] line -
probably from an earlier version.
Bruce

Original comment by bruce.ri...@gmail.com on 3 May 2007 at 2:39