I'm building a windows form app using vb.net, Visual Studio 2008, and CR 2008 (12.0.2000.0). I have a very simple app that loads a report into a viewer control when the form is loaded. About 80% of the time, the report loads with no issue. The other 20% of the time, I receive an exception which Visual Studio doesn't point out where in my code it is, so I'm assuming its the CR viewer that is throwing it. Here is the code I am using, and the associated exception is below. I can't for the life of me figure this out, and the issue has been replicated on a clean system running the CR 2008 SP3 Runtime. Any advice would be GREATLY appreciated.
VB Code:
-
Private Sub Form1_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load
Dim Report As CrystalDecisions.CrystalReports.Engine.ReportDocument
Report.Load("c:\report.rpt")
crystalreportviewer_main.ReportSource = Report
End Sub
-
Exception:
-
System.NullReferenceException was unhandled
Message="Object reference not set to an instance of an object."
Source="CrystalDecisions.Windows.Forms"
StackTrace: 3
at CrystalDecisions.Windows.Forms.PageControl.OnMouseMove(MouseEventArgs e)
at System.Windows.Forms.Control.WmMouseMove(Message& m)
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 CrystalDecisions.Windows.Forms.PageControl.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.DebuggableCallback(IntPtr hWnd, Int32 msg, IntPtr wparam, IntPtr lparam)
at System.Windows.Forms.UnsafeNativeMethods.DispatchMessageW(MSG& msg)
at System.Windows.Forms.Application.ComponentManager.System.Windows.Forms.UnsafeNativeMethods.IMsoComponentManager.FPushMessageLoop(Int32 dwComponentID, Int32 reason, Int32 pvLoopData)
at System.Windows.Forms.Application.ThreadContext.RunMessageLoopInner(Int32 reason, ApplicationContext context)
at System.Windows.Forms.Application.ThreadContext.RunMessageLoop(Int32 reason, ApplicationContext context)
at System.Windows.Forms.Application.Run(ApplicationContext context)
at Microsoft.VisualBasic.ApplicationServices.WindowsFormsApplicationBase.OnRun()
at Microsoft.VisualBasic.ApplicationServices.WindowsFormsApplicationBase.DoApplicationModel()
at Microsoft.VisualBasic.ApplicationServices.WindowsFormsApplicationBase.Run(String[] commandLine)
at Rock_Pond_Solutions.My.MyApplication.Main(String[] Args) in 17d14f5c-a337-4978-8281-53493378c1071.vb:line 81
at System.AppDomain._nExecuteAssembly(Assembly assembly, String[] args)
at System.AppDomain.ExecuteAssembly(String assemblyFile, Evidence assemblySecurity, String[] args)
at Microsoft.VisualStudio.HostingProcess.HostProc.RunUsersAssembly()
at System.Threading.ThreadHelper.ThreadStart_Context(Object state)
at System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state)
at System.Threading.ThreadHelper.ThreadStart()
InnerException:
-
Edited by: mlager on Oct 20, 2010 12:41 AM
Edited by: mlager on Oct 20, 2010 12:44 AM
Request clarification before answering.
Hello everybody
This thread is marked as 'Answered' but where is the answer? Seems ideas have been thrown around but no definitive answer given to eliminating the exception being thrown. What 'fixable' is to be fixed? I use try catch events in all my code to try and rid myself of this problem but still get this same MouseMove error, is it an object related exception thrown by the CrystalReportViewer? Ludek, can this be related to the dock property of the control?
Sorry if I have missed something but I see this exception in my sleep now and my eyes are tired!
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Unfortunately, this thread has been just about everywhere. It started with the error "Object reference not set to an instance of an object." using the CR 2008 Viewer in Visual Studio 2008.
The above then changed to same error on drill down after applying SP3, FP3.1
Then; Sometimes I'll get that exception immediately after pressing OK on the parameter screen, and other times the report will load, and I'll get that exception when clicking on an on-demand report
On Nov. 3, there is a mention (for the 1st time - I think) of an exception happening on OnMouseMove
On Jan 12, we get CRVS2010 NullReferenceException with an onMouseOver event added to the thread.
On Jan. 18, there was a suggestion on how to catch the error and probably this resulted in the thread being marked as answered. I do not know as I did not mark it as such.
So from what I see, we've evolved this thread from "Object reference not set to an instance of an object." when viewing, to "Object reference not set to an instance of an object." when drilling down, to the exception occurring with a onMouseOver event. All for CR 2008 and presumably .NET 2008. Lastly, we throw in CRVS2010.
Re. onMouseOver event. There is another [thread|] that I marked as "Answered" and locked due to some rather nasty communications that we had to clean up.
At the above referenced thread on Jan 20, 2011 I invited anyone experiencing the issue to supply a sample app that reliably demonstrates the issue. I have had no takers, just a number of rather nasty messages. I plead with all of you to help us, help you. Remember, I am not the only one supporting this product. E.g.; I am not the only one that has attempted to reproduce the issue with no success. If you have an app that will demo the issue, let me know. I will contact you off of the forums and you can share the app with me.
- Ludek
Ludek, I totally understand where you are coming from, but I think people's not getting you firm examples is because we can't reproduce this issue consistently ourselves. No matter how hard ive tried to find a consistent way to reproduce the "onmousemove" error. That's why I titled this thread "frustrating". I can reproduce this error (inconsistenly that is) in the simplest of code, as simple as putting the crystal report viewer object on the windows form, and loading a report into it, so I'm not sure what I'd send to you that would be of much value.
I don't pretend to understand the complexities of the control, but isn't there an onmousemove event that can be looked at that you could come up with a list of possible ways it could throw an exception that hasn't been handled?
Hello,
I've contacted MLager off line for more info and a dump file.
One thing you can do also is to fully qualify all of the CR components. Example:
CrystalDecisions.Shared.ExportOptions exportOpts = new CrystalDecisions.Shared.ExportOptions();
We are thinking that possibly there is a collision somewhere in a common class name that only shows up in a specific order of events and resources being called....
A Dump file is a start.
Thank you all for your patience...
Don
Hi Ludek
I have tried replicating this problem by writing new apps and modifying existing ones but can only get the exception to occur in my existing apps which load .rpt files to the viewer.
The only way I can replicate the problem and get the exception to be thrown is by quickly moving my mouse over the report as it is being loaded and whilst the message "Please wait while the document is processing" is being displayed. If I move my mouse quickly after the message has gone, I do not get the exception. As mlager mentions above it is inconsistent.
Exception variation 1 (which doesnt close my dialog form)
Exception:
See the end of this message for details on invoking
just-in-time (JIT) debugging instead of this dialog box.
System.NullReferenceException: Object reference not set to an instance of an object.
at CrystalDecisions.Windows.Forms.PageControl.OnMouseMove(MouseEventArgs e)
at System.Windows.Forms.Control.WmMouseMove(Message& m)
at System.Windows.Forms.Control.WndProc(Message& m)
at System.Windows.Forms.ScrollableControl.WndProc(Message& m)
at System.Windows.Forms.UserControl.WndProc(Message& m)
at CrystalDecisions.Windows.Forms.PageControl.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)
Exception variation 2 (which does close my dialog form)
System.NullReferenceException: Object reference not set to an instance of an object. at CrystalDecisions.Windows.Forms.PageControl.OnMouseMove(MouseEventArgs e) at System.Windows.Forms.Control.WmMouseMove(Message& m) at System.Windows.Forms.Control.WndProc(Message& m) at System.Windows.Forms.ScrollableControl.WndProc(Message& m) at System.Windows.Forms.UserControl.WndProc(Message& m) at CrystalDecisions.Windows.Forms.PageControl.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.DebuggableCallback(IntPtr hWnd, Int32 msg, IntPtr wparam, IntPtr lparam) at System.Windows.Forms.UnsafeNativeMethods.DispatchMessageW(MSG& msg) at System.Windows.Forms.Application.ComponentManager.System.Windows.Forms.UnsafeNativeMethods.IMsoComponentManager.FPushMessageLoop(IntPtr dwComponentID, Int32 reason, Int32 pvLoopData) at System.Windows.Forms.Application.ThreadContext.RunMessageLoopInner(Int32 reason, ApplicationContext context) at System.Windows.Forms.Application.ThreadContext.RunMessageLoop(Int32 reason, ApplicationContext context) at System.Windows.Forms.Application.RunDialog(Form form) at System.Windows.Forms.Form.ShowDialog(IWin32Window owner) at FMS.frmQuotes.LoadItemData(Boolean ItemUpdated) in F:\SQLQuotes Project 2010 FMSv4\frmQuotes.vb:line 4683
Not sure if this is of any help whatsoever but the exception does seem to only throw on my machine when my mouse is moving over the report ?? !!
I'm using VS2010 with CR for .Net 2010 and runtime for .Net 4
Thanks for your help.
Keith
Hi Kieth,
I'm working with M also, curious, what kind of hardware do you have? Can you run BelArc Advisor, it's a free tool and lists everything installed including hardware.
Hardware and if any other versions of CR is what I'm interested in.
We have not been able to duplicate it here so looking for other things that are not common now...
Thank you
Don
Hi Keith,
Just curious if this is hardware related. It's about the only thing different now.
just paste in the hardware info in this thread. If you type in "code" your code or text followed by "code" this viewer won't try to format it. Replace the double quote with a open/close curly brace....
I tried to dup at home and I can't there either.
Thank you
Don
Edited by: Don Williams on Feb 11, 2011 12:59 PM
Here goes ...
Operating System
System Model
Windows 7 Professional (x64) (build 7600)
Install Language: English (United States)
System Locale: English (United Kingdom)
Dell Inc. Vostro1710
System Service Tag: (support for this PC)
Chassis Serial Number:
Enclosure Type: Portable
2.00 gigahertz Intel Core2 Duo
64 kilobyte primary memory cache
2048 kilobyte secondary memory cache
64-bit ready
Multi-core (2 total)
Not hyper-threaded
Board: Dell Inc. 0Y183C
Serial Number:
Bus Clock: 800 megahertz
BIOS: Dell Inc. A12 03/18/2009
319.97 Gigabytes Usable Hard Drive Capacity
246.22 Gigabytes Hard Drive Free Space
Optiarc DVD+-RW AD-7640A ATA Device [Optical drive]
Hitachi HTS723216L9A362 [Hard drive] (160.04 GB)
-- drive 1, s/n 090218FC4200NCGLHJ2C, rev FC2OC30F, SMART Status: Healthy
ST9160411ASG [Hard drive] (160.04 GB)
-- drive 0, s/n 5TG18LZK, rev DE17, SMART Status: Healthy
4088 Megabytes Usable Installed Memory
Slot 'JDIM1' has 2048 MB (serial number 00005149)
Slot 'JDIM2' has 2048 MB (serial number 00007147)
Local Drive Volumes
c: (NTFS on drive 0)
159.93 GB
94.13 GB free
d: (NTFS on drive 1)
160.03 GB
152.10 GB free
Display
ATA Channel 0 [Controller] (2x)
ATA Channel 1 [Controller] (2x)
ATA Channel 2 [Controller]
Intel(R) ICH8M Ultra ATA Storage Controllers - 2850
Standard AHCI 1.0 Serial ATA Controller
Mobile Intel(R) 965 Express Chipset Family
(Microsoft Corporation - WDDM 1.1) [Display adapter] (2x)
Generic PnP Monitor (17.2 vis, January 2007)
Bus Adapters
Multimedia
O2Micro Integrated MMC/SD controller
O2Micro Integrated MS/MSPRO/xD Controller
Intel(R) ICH8 Family USB Universal Host Controller - 2830
Intel(R) ICH8 Family USB Universal Host Controller - 2831
Intel(R) ICH8 Family USB Universal Host Controller - 2832
Intel(R) ICH8 Family USB Universal Host Controller - 2834
Intel(R) ICH8 Family USB Universal Host Controller - 2835
Intel(R) ICH8 Family USB2 Enhanced Host Controller - 2836
Intel(R) ICH8 Family USB2 Enhanced Host Controller - 283A
High Definition Audio Device
Virus Protection [Back to Top]
eTrust ITM Version 8.1
Virus Definitions Version Not Up To Date
Realtime File Scanning On
Other Devices
Standard Modem
Standard Modem over Bluetooth link
Standard Modem over Bluetooth link #2
Bluetooth Device (Personal Area Network)
Physical Address:
Bluetooth Device (RFCOMM Protocol TDI)
Cisco Systems VPN Adapter for 64-bit Windows
Dell Wireless 1505 Draft 802.11n WLAN Mini-Card
primary
Physical Address:
Microsoft ISATAP Adapter
Microsoft Virtual WiFi Miniport Adapter
Physical Address:
Realtek RTL8168C(P)/8111C(P) Family PCI-E Gigabit Ethernet NIC (NDIS 6.20)
Physical Address:
Teredo Tunneling Pseudo-Interface
1394 OHCI Compliant Host Controller
Microsoft AC Adapter
Microsoft ACPI-Compliant Control Method Battery
Microsoft Composite Battery
Generic Bluetooth Adapter
Microsoft Bluetooth Enumerator
HID-compliant consumer control device
HID-compliant device (2x)
USB Input Device (2x)
Laptop Integrated Webcam
Standard PS/2 Keyboard
HID-compliant mouse
PS/2 Compatible Mouse
USB Composite Device (2x)
USB Root Hub (7x)
Generic volume shadow copy
And for deployment machine ...
Operating System System Model
Windows 7 Professional (x64) (build 7600)
Install Language: English (United States)
System Locale: English (United Kingdom)
Gigabyte Technology Co., Ltd. GA-MA78LM-S2H
Enclosure Type: Desktop
3.10 gigahertz AMD Phenom II X2 550
256 kilobyte primary memory cache
512 kilobyte secondary memory cache
64-bit ready
Multi-core (2 total)
Not hyper-threaded
Board: Gigabyte Technology Co., Ltd. GA-MA78LM-S2H
Bus Clock: 200 megahertz
BIOS: Award Software International, Inc. F2 09/16/2009
Drives Memory Modules c,d
249.95 Gigabytes Usable Hard Drive Capacity
127.08 Gigabytes Hard Drive Free Space
ATAPI iHAS124 Y ATA Device [Optical drive]
3.5'' format removeable media [Floppy drive]
Sony Storage Media USB Device [Hard drive]
(4.02 GB) -- drive 1, s/n
WDC WD2500AAKS-00F0A0 [Hard drive]
(250.06 GB) -- drive 0, s/n WD-WCAT1E821853,
rev 12.01B02, SMART Status: Healthy 1792 Megabytes Usable Installed Memory
Slot 'A0' has 2048 MB
Slot 'A1' is Empty
Local Drive Volumes
c: (NTFS on drive 0) 167.67 GB 112.79 GB free
d: (NTFS on drive 0) 82.29 GB 14.29 GB free
Controllers Display
Standard floppy disk controller
ATA Channel 0 [Controller] (2x)
ATA Channel 1 [Controller] (2x)
Standard Dual Channel PCI IDE Controller (2x) AMD 760G [Display adapter]
LG L1710B [Monitor] (17.1vis, s/n 83124, January 2003)
Bus Adapters Multimedia
Standard Enhanced PCI to USB Host Controller (2x)
Standard OpenHCD USB Host Controller (5x) High Definition Audio Device (2x)
Virus Protection [Back to Top]
eTrust ITM Version 8.1
Virus Definitions Version Not Up To Date
Realtime File Scanning On
Communications Other Devices
Microsoft ISATAP Adapter
Realtek RTL8168D/8111D Family PCI-E Gigabit Ethernet NIC (NDIS 6.20)
Teredo Tunneling Pseudo-Interface
HID-compliant consumer control device
USB Input Device (3x)
HID Keyboard Device
HID-compliant mouse
USB Composite Device
USB Mass Storage Device
USB Root Hub (7x)
Hi Guys,
I have no other suggestions other than to make sure your Video Card drivers are up to date.
Maybe it's your mouse driver is causing the problem also.... Try downloading their latest driver too.... When I first updated to Windows 7 I was using the Logitech driver for Vista and it caused a blue screen about once a week. Once I removed and installed their Driver for 7 I have not had any more problems....
We have not been able to duplicate the issue here or at home in various configurations.
I have a 54 meg report with saved data and the viewer is busy for a long time.... No errors being thrown...
If the updates don't help then all I can suggest is one of you purchase a case on line and then we can get the Developers to investigate using stack dumps and specific logging enabled. There doesn't appear to be any commonalities between each site or hardware.... that I can see.
Thanks again
Don
I guess my original thread title of "frustrating" was appropriate :)The hardest part is that I (and maybe others) deploy our applications to a large amount of people, it's a tough thing to ask and make sure that everyone who installs our products verifies drivers, updates, etc.
Have you tried going apesh*t with your mouse while a report is loading? I mean clicking, highlighting, moving, double clicking, very rapidly and agressivly. This seems to harass the monster behind the exception and cause him to throw it.
Yes I did, as fast as my fingers and wrist will go, and yes I am as frustrated as you not being able to duplicate the issue.
So far I believe there are only 3 or 4 of you with the problem, or at least in these threads. Have any of you deployed your Beta app's to any users or is all of your testing in house so far?
One other thing I just thought of, are you guys using any of those third party viewer controls? I know we've had issues with them not returning the X/Y position of the click events properly. They adjusted border width and did not take into account the offset for their changes which caused our viewer to set the point to an invalid memory location. I don't recall the name now though.
I've also asked multiple times for test app's that will duplicate the problem and so far no one has offered or said they would but I'm still waiting.
Even if it's your main app we have a standing Non-Disclosure Agree and once it's been resolved all copies are deleted.
Problem is Escalations set to Investigation are on the bottom of the list for our developers to work on. Without a case or an app that can duplicate the issue the Business case for the issue is low priority.... Purchasing a case tells them you are serious ( figure of speech ) to get the issue resolved.
Thanks again
Don
Working with Keith, I and others here were able to reproduce the issue as described below.
The application must be using:
1) VS2010
2) CRVS2010
3) Framework 2.0
4) (this may not be a must - need to test more) Report uses crdb_adoplus.dll; in the report look at Set Datasource Location. Expand the "Properties" node. You will see Database Type: ADO.NET (XML)
5) There are three framework references throwing warnings. The references are:
System.Core
System.Xml.Linq
System.Data.DataSetExtensions
The warning is:
Namespace or type specified in the project-level Imports '<name of assembly above>' doesn't contain any public member or cannot be found. Make sure the namespace or the type is defined and contains at least one public member. Make sure the imported element name doesn't use any aliases. mouse3
Removing the above three references resolved the issue.
I would appreciate feedback from all of those on this thread regarding the above:
Are you using
1) VS2010
2) CRVS2010
3) Framework 2.0
4) Are your reports based off of crdb_adoplus.dll?
5) Do you references to the above system assemblies with the warnings?
Are you able to resolve the issue by either removing the references, or setting the project to use the full framework 4.0?
- Ludek
Ludek, my application matches your scenario almost exactly as you described below:
VS2010
CRVS2010
.NET 2.0
I had a warning about System.XML.Linq
So I switched the application to the full .NET 4, and removed the System.XML.Linq reference. I was able to re-produce the error. My reports are not based off of crdb_adoplus.dll.
SBC, I would then say this is a different issue as I can not reproduce it using Keith's report, or framework 2.0 (I actually did try his).
Two choices:
1) Create a new thread and supply as much info as possible, patterning your self on my possible solution post.
2) Create a phone case where we can work on this as we did with Keith.
- Ludek
Hi Ludek,
I was providing info simply to demonstrate that what you are describing is not the full picture.
I stopped participating once it was clear that your team is not pursuing a reasonable track (see my original proposal on how to handle this issue). It's time for me to stop participating again. I can't understand why a detective squad approach is needed for a solved crime (though I do understand you are working under the constraints imposed by the development team).
Regards,
- Ido
Hi Ido,
Not to take anything away from your abilities and skills but if we can't duplicate the issue how are our developers supposed to fix something that they don't see wrong and can't trigger the event error?
Because this is happening in both VS 2008 and VS 2010 it's possible some patch MS pushed out has broken the way CR handles the events. And at the same time it could be something our developers introduced with a patch also. It's low level enough to be buried deep in our code and only under specific circumstances....
Our code is full of mouse event handlers, not just the viewer controls, so it's not as simple as asking them to fix it. Especially when we can't trigger the error, until now with the help from a cooperative user/developer. It only happens with his report, we can't create reports the duplicate it either....
If you are not willing to help then just sit back and hope what ever solution configuration/patch we come up with resolves your problem also.
Thank you all for your patience
Don
Hi Don,
You are probably right in that it seems like I'm not making sense to you or to Ludek. Just in case, I'll try one last time:
The location of the problem is in the Crviewer mouse move event. The problem is that, in some scenarios, one of the event arguments is not yet set to a valid object. Proposed solution: capture that error and ignore it in your internal code.
My last update before I head home, put my taxi driver hat on and taxi the kids to soccer.
Looking a the three references (System.Core, System.Xml.Linq, System.Data.DataSetExtensions) in more detail...
1) If we create a brand new project on the "New Project" screen, at the top (next to "recent templates") we can select the framework. If we select framework 2.0, it is not possible to import System.Core, System.Xml.Linq, System.Data.DataSetExtensions. E.g.; framework 2.0 does not support these assemblies.
Only way I was able to get the three assemblies into a new project was to create a 4.0 framework project, then go to the properties of the project and change the framework there to 2.0. At which point we get the warning:
Namespace or type specified in the project-level Imports '<name of assembly>' doesn't contain any public member or cannot be found. Make sure the namespace or the type is defined and contains at least one public member. Make sure the imported element name doesn't use any aliases. mouse3
From the above, it looks to me like "forcing" those assemblies into framework 2.0 is a questionable strategy - perhaps better answered by Microsoft re. supportability...
2) Running DebugDiag on the application, results in a dump where no CR file is ever specified as being at fault. The only files DebugDiag reports are MS core files.
Based on the above;
1) Using assemblies not supported by the framework
2) No CR files identified as being at fault
it will not be possible to submit this issue to R&D for a fix as there is nothing to fix. Please do keep in mind that this is for CRVS2010. New thread should be created for other versions of CR.
- Ludek
HI Experts,
I am also getting same issue which you guys are discussing about. And i can reproduce that almost every times. I have a sample application which can reproduce this issue. I can send through e-mail if anyone provide their Mail id.
I was working around on this to get proper scenarios.But unfortunatly not in 100% success.But I feel something is going wrong with drill-down fuctionality. Becouse if i set "crystalReportViewer.EnableDrillDown = false", reports are woking fine.
I have a subreport which is placed in main report's group header. If we click on subreport header, application crashes.
I am using,
VS2010,
CR2010(ref. version is 13.0),
setting Datasource through ADO.NET(XML)
Thanks,
Salah.
Hi Don,
I have seen Ludek's post already. But i am using VS framework 4.0. and i am not getting any warning as well. So according that post it has to work properly right? but no luck for me
In my application all my reference are versioned by 13.0.nothing with 14.0. From where i can get the download links for 14.0. or is it because of my 32 bit machine(XP)?
Thanks,
Salah.
Hi Salah,
If you ran Modules you have seen the 4 or 5 dll's that were version 14. there is no download for them.
Did you set the Legacymode in your app.config file?
Are you getting the mouse event error or just crashing?
If you are not getting the mouse event error then please post a new question.
Thank you
Don
Hi Don,
I have Legacymode in my app.config file like tis,
<configuration>
<startup useLegacyV2RuntimeActivationPolicy="true">
<supportedRuntime version="v4.0" sku=".NETFramework,Version=v4.0"/>
</startup>
</configuration>And i am getting the same mousemove event error which is mentioned in above posts,
System.NullReferenceException: Object reference not set to an instance of an object.
at CrystalDecisions.Windows.Forms.PageControl.OnMouseMove(MouseEventArgs e)
at System.Windows.Forms.Control.WmMouseMove(Message& m)
at System.Windows.Forms.Control.WndProc(Message& m)
at System.Windows.Forms.ScrollableControl.WndProc(Message& m)
at System.Windows.Forms.UserControl.WndProc(Message& m)
at CrystalDecisions.Windows.Forms.PageControl.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)I can send you the sample with all these things. (I really dont know what i can do more on this.. My product release date is getting closer )
Thanks again,
Salah.
Edited by: salahudheen muhammed on Mar 3, 2011 12:17 PM
Salahudheen I've been able to reproduce the issue with framework, 2, 3, and 3.5 but not 4.
See if the suggestion in [this|http://social.msdn.microsoft.com/Forums/en/vscrystalreports/thread/98bb4330-e3e5-46e2-abbb-76c730dddeab] post helps.
If not, at this time I'd ask that you create a phone case here;
Keith did create a phone case and while we have no fix for him we did determine the cause within 24 hours... (as per normal process, Keith's case will be refunded as will yours if this is a CR issue).
One other suggestion;
If you can, remove the references to System.Core, System.XML.Linq and System.Data.DataSetExtensions in your app and try that.
- Ludek
Hi Ludek,
None of the suggestions are working for me. :(. If phone case is the last option i have to go for a long process to get approval from my management side.
My reports was working fine with CR2008-Sp3. This issue started only after upgrading to CR2010. So its very clear that something wrong with CR new version. And I am not understanding, why you guys are not ready to take my sample application for testing.
Thanks,
Salah.
And I am not understanding, why you guys are not ready to take my sample application for testing.
- These are community forums. Not support. Support is only done via phone cases. On exception, some of us will accept an applicaiton to test with. This is an exception depending on many factors, including phone work load. E.g.; phone cases do take precedence.
- Ludek
Don, when I change the CanGrow property I dont seem to get the exception. Ludek has an example .net 4 app that I uploaded to ftp and also which repro's the exception without the above references in use (Except datasetextensions)
I thought that if other people dont get the exception with trying this it might help.
Hi All,
I think it's time to close and lock this post. If anyone still has a problem please post anew and copy the link to this one for reference.
Ludek has found a bunch of solutions. Anything new should be posted in the new post.
Thanks all for your patience and help in finding solutions we have so far....
Don
Update, Ludek and I were discussing this and we are going to leave it open and unlocked...
This issue isresolved in Service Pack 2 for CRVS2010:
<a class="jive_macro jive_macro_document" href="" __jive_macro_name="document" modifiedtitle="true" __default_attr="7824"></a>
Edited by: Don Williams on Mar 9, 2011 2:26 PM
Edited by: Ludek Uher on Nov 30, 2011 8:26 AM
Hello everyone
Working with Keith (my hero - honest ), we have additional points to all of the other points made in this thread. But to review and add the latest:
1) Do not start a project as framework 4 and then change it to a lower framework without eliminating references to any framework references that throw warnings. Specifically System.Core, System.XML.Linq and System.Data.DataSetExtensions will throw the following warning:
Namespace or type specified in the project-level Imports '<name of assembly above' doesn't contain any public member or cannot be found. Make sure the namespace or the type is defined and contains at least one public member. Make sure the imported element name doesn't use any aliases. projectname
(e.g.; some framework 4 references will cause issues if you change the project to a lower framework).
2) Using framework 3.5 should work with the System.XML.Linq assembly as this assembly is compiled for framework 3.5. It does not and for this case a Technical Escalation has been submitted to R&D (TE5000318553).
3) Using a specific report provided by Keith we can duplicate the issue with framework 4.0. Note that I have not been able to duplicate the issue with any other reports. However Keith has found that the report has text fields set to "Can Grow". If he changes this to "False", the issue appears to go away. I will be testing this as soon as I complete this post.
4) A call to all of you for help. If you can reproduce the issue with a _ saved data_ report, can you please share the report with us? If you can, let me know and I will contact you via email. Ido, I'd be specifically interested in one of your reports as you mentioned that all you had to do is throw a few boxes on a report, no DB connection and voila, crash on mouse move event.
Many thanks to all willing to help,
- Ludek
| User | Count |
|---|---|
| 8 | |
| 5 | |
| 5 | |
| 5 | |
| 3 | |
| 2 | |
| 1 | |
| 1 | |
| 1 | |
| 1 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.