BUG: DNRGPS Unhandled Exception Setting Projection
Operating System: Windows XP SP3
Registry installation modification privileges: No
Admin Rights: No
When I attempt to set my projection to UTM16N (when using the NAD83 Datum), I get an unhandled exception error, the details of which are pasted below.
Regards,
Chris Morse
Indiana NRCS GIS Coordinator
[cid:image001.png@01CD080D.223925A0]
Details:
See the end of this message for details on invoking
just-in-time (JIT) debugging instead of this dialog box.
************** Exception Text **************
System.TypeInitializationException: The type initializer for 'OSGeo.OSR.OsrPINVOKE' threw an exception. ---> System.TypeInitializationException: The type initializer for 'SWIGExceptionHelper' threw an exception. ---> System.DllNotFoundException: Unable to load DLL 'osr_wrap': The operating system cannot run . (Exception from HRESULT: 0x800700B6)
at OSGeo.OSR.OsrPINVOKE.SWIGExceptionHelper.SWIGRegisterExceptionCallbacks_Osr(ExceptionDelegate applicationDelegate, ExceptionDelegate arithmeticDelegate, ExceptionDelegate divideByZeroDelegate, ExceptionDelegate indexOutOfRangeDelegate, ExceptionDelegate invalidCastDelegate, ExceptionDelegate invalidOperationDelegate, ExceptionDelegate ioDelegate, ExceptionDelegate nullReferenceDelegate, ExceptionDelegate outOfMemoryDelegate, ExceptionDelegate overflowDelegate, ExceptionDelegate systemExceptionDelegate)
at OSGeo.OSR.OsrPINVOKE.SWIGExceptionHelper..cctor()
--- End of inner exception stack trace ---
at OSGeo.OSR.OsrPINVOKE.SWIGExceptionHelper..ctor()
at OSGeo.OSR.OsrPINVOKE..cctor()
--- End of inner exception stack trace ---
at OSGeo.OSR.OsrPINVOKE.new_SpatialReference(String jarg1)
at OSGeo.OSR.SpatialReference..ctor(String wkt)
at dnrgps.GDALCommand.SpatialReference_GetPRJ(String projDesc)
at dnrgps.frmDNRGPSProperties.POSCCode_Select()
at dnrgps.frmDNRGPSProperties.cboPOSCCodes_SelectedIndexChanged(Object sender, EventArgs e)
at System.Windows.Forms.ComboBox.OnSelectedIndexChanged(EventArgs e)
at System.Windows.Forms.ComboBox.WmReflectCommand(Message& m)
at System.Windows.Forms.ComboBox.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: 4.0.0.0
Win32 Version: 4.0.30319.239 (RTMGDR.030319-2300)
CodeBase: file:///C:/WINDOWS/Microsoft.NET/Framework/v4.0.30319/mscorlib.dll
----------------------------------------
dnrgps
Assembly Version: 6.0.0.11
Win32 Version: 6.0.0.11
CodeBase: file:///C:/dnrgps/dnrgps.exe
----------------------------------------
System
Assembly Version: 4.0.0.0
Win32 Version: 4.0.30319.258 built by: RTMGDR
CodeBase: file:///C:/WINDOWS/Microsoft.Net/assembly/GAC_MSIL/System/v4.0_4.0.0.0__b77a5c561934e089/System.dll
----------------------------------------
System.Windows.Forms
Assembly Version: 4.0.0.0
Win32 Version: 4.0.30319.235 built by: RTMGDR
CodeBase: file:///C:/WINDOWS/Microsoft.Net/assembly/GAC_MSIL/System.Windows.Forms/v4.0_4.0.0.0__b77a5c561934e089/System.Windows.Forms.dll
----------------------------------------
System.Drawing
Assembly Version: 4.0.0.0
Win32 Version: 4.0.30319.1 built by: RTMRel
CodeBase: file:///C:/WINDOWS/Microsoft.Net/assembly/GAC_MSIL/System.Drawing/v4.0_4.0.0.0__b03f5f7f11d50a3a/System.Drawing.dll
----------------------------------------
DnrGps_ArcMap
Assembly Version: 1.0.0.0
Win32 Version: 1.0.0.0
CodeBase: file:///C:/dnrgps/DnrGps_ArcMap.DLL
----------------------------------------
gdal_csharp
Assembly Version: 1.0.4392.22945
Win32 Version: 1.0.4392.22945
CodeBase: file:///C:/dnrgps/gdal_csharp.DLL
----------------------------------------
ogr_csharp
Assembly Version: 1.0.4392.22945
Win32 Version: 1.0.4392.22945
CodeBase: file:///C:/dnrgps/ogr_csharp.DLL
----------------------------------------
System.Xml.Linq
Assembly Version: 4.0.0.0
Win32 Version: 4.0.30319.1 built by: RTMRel
CodeBase: file:///C:/WINDOWS/Microsoft.Net/assembly/GAC_MSIL/System.Xml.Linq/v4.0_4.0.0.0__b77a5c561934e089/System.Xml.Linq.dll
----------------------------------------
System.Core
Assembly Version: 4.0.0.0
Win32 Version: 4.0.30319.1 built by: RTMRel
CodeBase: file:///C:/WINDOWS/Microsoft.Net/assembly/GAC_MSIL/System.Core/v4.0_4.0.0.0__b77a5c561934e089/System.Core.dll
----------------------------------------
System.Xml
Assembly Version: 4.0.0.0
Win32 Version: 4.0.30319.1 built by: RTMRel
CodeBase: file:///C:/WINDOWS/Microsoft.Net/assembly/GAC_MSIL/System.Xml/v4.0_4.0.0.0__b77a5c561934e089/System.Xml.dll
----------------------------------------
System.Configuration
Assembly Version: 4.0.0.0
Win32 Version: 4.0.30319.1 (RTMRel.030319-0100)
CodeBase: file:///C:/WINDOWS/Microsoft.Net/assembly/GAC_MSIL/System.Configuration/v4.0_4.0.0.0__b03f5f7f11d50a3a/System.Configuration.dll
----------------------------------------
osr_csharp
Assembly Version: 1.0.4392.22945
Win32 Version: 1.0.4392.22945
CodeBase: file:///C:/dnrgps/osr_csharp.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.
4 tips to improve your experience:
This electronic message contains information generated by the USDA solely for the intended recipients. Any unauthorized interception of this message or the use or disclosure of the information it contains may violate the law and subject the violator to civil or criminal penalties. If you believe you have received this message in error, please notify the sender and delete the email immediately.
Registry installation modification privileges: No
Admin Rights: No
When I attempt to set my projection to UTM16N (when using the NAD83 Datum), I get an unhandled exception error, the details of which are pasted below.
Regards,
Chris Morse
Indiana NRCS GIS Coordinator
[cid:image001.png@01CD080D.223925A0]
Details:
See the end of this message for details on invoking
just-in-time (JIT) debugging instead of this dialog box.
************** Exception Text **************
System.TypeInitializationException: The type initializer for 'OSGeo.OSR.OsrPINVOKE' threw an exception. ---> System.TypeInitializationException: The type initializer for 'SWIGExceptionHelper' threw an exception. ---> System.DllNotFoundException: Unable to load DLL 'osr_wrap': The operating system cannot run . (Exception from HRESULT: 0x800700B6)
at OSGeo.OSR.OsrPINVOKE.SWIGExceptionHelper.SWIGRegisterExceptionCallbacks_Osr(ExceptionDelegate applicationDelegate, ExceptionDelegate arithmeticDelegate, ExceptionDelegate divideByZeroDelegate, ExceptionDelegate indexOutOfRangeDelegate, ExceptionDelegate invalidCastDelegate, ExceptionDelegate invalidOperationDelegate, ExceptionDelegate ioDelegate, ExceptionDelegate nullReferenceDelegate, ExceptionDelegate outOfMemoryDelegate, ExceptionDelegate overflowDelegate, ExceptionDelegate systemExceptionDelegate)
at OSGeo.OSR.OsrPINVOKE.SWIGExceptionHelper..cctor()
--- End of inner exception stack trace ---
at OSGeo.OSR.OsrPINVOKE.SWIGExceptionHelper..ctor()
at OSGeo.OSR.OsrPINVOKE..cctor()
--- End of inner exception stack trace ---
at OSGeo.OSR.OsrPINVOKE.new_SpatialReference(String jarg1)
at OSGeo.OSR.SpatialReference..ctor(String wkt)
at dnrgps.GDALCommand.SpatialReference_GetPRJ(String projDesc)
at dnrgps.frmDNRGPSProperties.POSCCode_Select()
at dnrgps.frmDNRGPSProperties.cboPOSCCodes_SelectedIndexChanged(Object sender, EventArgs e)
at System.Windows.Forms.ComboBox.OnSelectedIndexChanged(EventArgs e)
at System.Windows.Forms.ComboBox.WmReflectCommand(Message& m)
at System.Windows.Forms.ComboBox.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: 4.0.0.0
Win32 Version: 4.0.30319.239 (RTMGDR.030319-2300)
CodeBase: file:///C:/WINDOWS/Microsoft.NET/Framework/v4.0.30319/mscorlib.dll
----------------------------------------
dnrgps
Assembly Version: 6.0.0.11
Win32 Version: 6.0.0.11
CodeBase: file:///C:/dnrgps/dnrgps.exe
----------------------------------------
System
Assembly Version: 4.0.0.0
Win32 Version: 4.0.30319.258 built by: RTMGDR
CodeBase: file:///C:/WINDOWS/Microsoft.Net/assembly/GAC_MSIL/System/v4.0_4.0.0.0__b77a5c561934e089/System.dll
----------------------------------------
System.Windows.Forms
Assembly Version: 4.0.0.0
Win32 Version: 4.0.30319.235 built by: RTMGDR
CodeBase: file:///C:/WINDOWS/Microsoft.Net/assembly/GAC_MSIL/System.Windows.Forms/v4.0_4.0.0.0__b77a5c561934e089/System.Windows.Forms.dll
----------------------------------------
System.Drawing
Assembly Version: 4.0.0.0
Win32 Version: 4.0.30319.1 built by: RTMRel
CodeBase: file:///C:/WINDOWS/Microsoft.Net/assembly/GAC_MSIL/System.Drawing/v4.0_4.0.0.0__b03f5f7f11d50a3a/System.Drawing.dll
----------------------------------------
DnrGps_ArcMap
Assembly Version: 1.0.0.0
Win32 Version: 1.0.0.0
CodeBase: file:///C:/dnrgps/DnrGps_ArcMap.DLL
----------------------------------------
gdal_csharp
Assembly Version: 1.0.4392.22945
Win32 Version: 1.0.4392.22945
CodeBase: file:///C:/dnrgps/gdal_csharp.DLL
----------------------------------------
ogr_csharp
Assembly Version: 1.0.4392.22945
Win32 Version: 1.0.4392.22945
CodeBase: file:///C:/dnrgps/ogr_csharp.DLL
----------------------------------------
System.Xml.Linq
Assembly Version: 4.0.0.0
Win32 Version: 4.0.30319.1 built by: RTMRel
CodeBase: file:///C:/WINDOWS/Microsoft.Net/assembly/GAC_MSIL/System.Xml.Linq/v4.0_4.0.0.0__b77a5c561934e089/System.Xml.Linq.dll
----------------------------------------
System.Core
Assembly Version: 4.0.0.0
Win32 Version: 4.0.30319.1 built by: RTMRel
CodeBase: file:///C:/WINDOWS/Microsoft.Net/assembly/GAC_MSIL/System.Core/v4.0_4.0.0.0__b77a5c561934e089/System.Core.dll
----------------------------------------
System.Xml
Assembly Version: 4.0.0.0
Win32 Version: 4.0.30319.1 built by: RTMRel
CodeBase: file:///C:/WINDOWS/Microsoft.Net/assembly/GAC_MSIL/System.Xml/v4.0_4.0.0.0__b77a5c561934e089/System.Xml.dll
----------------------------------------
System.Configuration
Assembly Version: 4.0.0.0
Win32 Version: 4.0.30319.1 (RTMRel.030319-0100)
CodeBase: file:///C:/WINDOWS/Microsoft.Net/assembly/GAC_MSIL/System.Configuration/v4.0_4.0.0.0__b03f5f7f11d50a3a/System.Configuration.dll
----------------------------------------
osr_csharp
Assembly Version: 1.0.4392.22945
Win32 Version: 1.0.4392.22945
CodeBase: file:///C:/dnrgps/osr_csharp.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.
4 tips to improve your experience:
- The email subject will become the ticket summary.
- Attachments in your email will be included in the ticket.
- Reply to a ticket alert from Assembla and your email will be posted as a ticket comment.
- If you want to change other fields, read the extra documentation: http://www.assembla.com/wiki/show/breakoutdocs/Email2TicketsGateway
This electronic message contains information generated by the USDA solely for the intended recipients. Any unauthorized interception of this message or the use or disclosure of the information it contains may violate the law and subject the violator to civil or criminal penalties. If you believe you have received this message in error, please notify the sender and delete the email immediately.
Leave a comment
I did not get an error on startup surprisingly enough. The first launch did prompt me if I wanted to import settings from DNR Garmin, but I opted not to pull over my custom settings from DNR Garmin. I believe the only real custom settings I had in old DNR Garmin were to set projection and turn off the checkboxes for displayed fields under waypoints, tracks, and real time.
-Chris
-Chris
I would suggest that you did get that error at startup, usually on the first run of the program, it is hidden but you here a couple of windows prompts / sounds ) and program appears to be working ( main screen open ). But as you have discovered, go to change the projection or download tracks / waypoints and the error pops up. Hope it gets fixed soon, Chris, as I have stated before, I have it working on my XP Pro machine at home, but the work unit using the same OS gets the error. Maybe you might like to check some settings on my working machine ( ie logme in or I can use teamviewer to share PC )
Understood. We are soon to switch to Windows 7 at NRCS I think anyway. They won't tell us a firm date for the switch, but from experience I see the wheels starting to move that will implement that transition, hopefully within calendar year 2012. That is no guarantee of success either though. For any OS we run in the office so much gets changed by our security and IT teams from a basic OS install that the problem could almost be anything (from my limited viewpoint). I've also tried placing the folder and running the program from the top level of my drive and in deeper sub-directories, as well as subbed under Program Files, all of which generated the same error. A lot of changes to our systems happen at the national level and the local specialists are playing catch up to learn them.
I suppose I should also mention that it seems .NET framework 4 "extended" is what is installed on my machine. I don't know if the version of that would make a difference as well. It looks like it is version 4.0.30319.
-Chris, NRCS
I suppose I should also mention that it seems .NET framework 4 "extended" is what is installed on my machine. I don't know if the version of that would make a difference as well. It looks like it is version 4.0.30319.
-Chris, NRCS