I have problem when run identifier....Please Help me

Jul 27, 2010 at 7:54 AM
i am trying to develop an application using MapWindow6.dll ,here i want to identifier for any object in the mapcontrol.But when i uses identifier i got an exception called "Unhandled exception has occured in your application. if you click continue,the application will ignore this error and attempt to continue. if you click the application will close immediately. An attempt was made to move the file pointer before the beginning of the file." Why this exception occurred. The Detail of Errors: ---------------------------------- See the end of this message for details on invoking just-in-time (JIT) debugging instead of this dialog box. ************** Exception Text ************** System.IO.IOException: An attempt was made to move the file pointer before the beginning of the file. at System.IO.__Error.WinIOError(Int32 errorCode, String maybeFullPath) at System.IO.FileStream.SeekCore(Int64 offset, SeekOrigin origin) at System.IO.FileStream.Seek(Int64 offset, SeekOrigin origin) at MapWindow.Data.AttributeTable.SupplyPageOfData(Int32 lowerPageBondary, Int32 rowsPerPage) at MapWindow.Data.Shapefile.GetAttributes(Int32 startIndex, Int32 numRows) at MapWindow.Forms.FeatureIdentifier.Add(IFeatureLayer layer, IEnvelope bounds) at MapWindow.Map.IdentifyFunction.Identify(IEnumerable`1 layers, IEnvelope strict, IEnvelope tolerant) at MapWindow.Map.IdentifyFunction.OnMouseUp(GeoMouseArgs e) at MapWindow.Map.MapFunction.DoMouseUp(GeoMouseArgs e) at MapWindow.Map.Map.OnMouseUp(MouseEventArgs e) at System.Windows.Forms.Control.WmMouseUp(Message& m, MouseButtons button, Int32 clicks) at System.Windows.Forms.Control.WndProc(Message& m) at System.Windows.Forms.ScrollableControl.WndProc(Message& m) at System.Windows.Forms.ContainerControl.WndProc(Message& m) at System.Windows.Forms.UserControl.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.1433 (REDBITS.050727-1400) CodeBase: file:///E:/WINDOWS/Microsoft.NET/Framework/v2.0.50727/mscorlib.dll ---------------------------------------- MapWindow6 Assembly Version: 1.0.0.1 Win32 Version: 1.0.0.1 CodeBase: file:///E:/Program%20Files/MapWindow/MapWindow6/MapWindow6.exe ---------------------------------------- System.Windows.Forms Assembly Version: 2.0.0.0 Win32 Version: 2.0.50727.1433 (REDBITS.050727-1400) CodeBase: file:///E:/WINDOWS/assembly/GAC_MSIL/System.Windows.Forms/2.0.0.0__b77a5c561934e089/System.Windows.Forms.dll ---------------------------------------- System Assembly Version: 2.0.0.0 Win32 Version: 2.0.50727.1433 (REDBITS.050727-1400) CodeBase: file:///E:/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.1433 (REDBITS.050727-1400) CodeBase: file:///E:/WINDOWS/assembly/GAC_MSIL/System.Drawing/2.0.0.0__b03f5f7f11d50a3a/System.Drawing.dll ---------------------------------------- MapWindow Assembly Version: 6.0.0.0 Win32 Version: 6.0.0.0 CodeBase: file:///E:/Program%20Files/MapWindow/MapWindow6/MapWindow.DLL ---------------------------------------- System.Configuration Assembly Version: 2.0.0.0 Win32 Version: 2.0.50727.1433 (REDBITS.050727-1400) CodeBase: file:///E:/WINDOWS/assembly/GAC_MSIL/System.Configuration/2.0.0.0__b03f5f7f11d50a3a/System.Configuration.dll ---------------------------------------- System.Xml Assembly Version: 2.0.0.0 Win32 Version: 2.0.50727.1433 (REDBITS.050727-1400) CodeBase: file:///E:/WINDOWS/assembly/GAC_MSIL/System.Xml/2.0.0.0__b77a5c561934e089/System.Xml.dll ---------------------------------------- System.Core Assembly Version: 3.5.0.0 Win32 Version: 3.5.21022.8 built by: RTM CodeBase: file:///E:/WINDOWS/assembly/GAC_MSIL/System.Core/3.5.0.0__b77a5c561934e089/System.Core.dll ---------------------------------------- gdalconst_csharp Assembly Version: 1.0.3224.23168 Win32 Version: 1.0.3224.23168 CodeBase: file:///E:/Program%20Files/MapWindow/MapWindow6/Plugins/MwGdal32/gdalconst_csharp.dll ---------------------------------------- GDALPlugin Assembly Version: 1.0.0.0 Win32 Version: 1.0.0.0 CodeBase: file:///E:/Program%20Files/MapWindow/MapWindow6/Plugins/MwGdal32/GDALPlugin.dll ---------------------------------------- gdal_csharp Assembly Version: 1.0.3224.23168 Win32 Version: 1.0.3224.23168 CodeBase: file:///E:/Program%20Files/MapWindow/MapWindow6/Plugins/MwGdal32/gdal_csharp.DLL ---------------------------------------- mapscript_csharp Assembly Version: 1.0.3224.23397 Win32 Version: 1.0.3224.23397 CodeBase: file:///E:/Program%20Files/MapWindow/MapWindow6/Plugins/MwGdal32/mapscript_csharp.dll ---------------------------------------- ogr_csharp Assembly Version: 1.0.3224.23168 Win32 Version: 1.0.3224.23168 CodeBase: file:///E:/Program%20Files/MapWindow/MapWindow6/Plugins/MwGdal32/ogr_csharp.dll ---------------------------------------- osr_csharp Assembly Version: 1.0.3224.23167 Win32 Version: 1.0.3224.23167 CodeBase: file:///E:/Program%20Files/MapWindow/MapWindow6/Plugins/MwGdal32/osr_csharp.dll ---------------------------------------- MwShapeEditor Assembly Version: 1.0.0.0 Win32 Version: 1.0.0.0 CodeBase: file:///E:/Program%20Files/MapWindow/MapWindow6/Plugins/MwShapeEditor/MwShapeEditor.dll ---------------------------------------- System.Data Assembly Version: 2.0.0.0 Win32 Version: 2.0.50727.1433 (REDBITS.050727-1400) CodeBase: file:///E:/WINDOWS/assembly/GAC_32/System.Data/2.0.0.0__b77a5c561934e089/System.Data.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.
Aug 3, 2010 at 11:34 AM

Hi Ali,

Did you relate the toolstrip with the map? you can go to the properties window of the toolstrip and select your map's name in the field.

Hope this will solve your problem.

Cheers....

Jul 2, 2013 at 10:08 PM
which DLL contains the toolstrip assembly?