Viewer.Common.Model ctor() - Field Not Found

Posted by: RFranco on 4 December 2017, 6:55 am EST

  • Posted 4 December 2017, 6:55 am EST

    Hello,

    I have an ARv8 issue. I’m instantiating a Grapecity Activereports Viewer - to display a simple section report document. As you can see in the stack trace - the viewer constructor eventually triggers a System.MissingFieldException for Field not found. I don’t see any other AR assemblies registered on the workstation and the report functions correctly on other machines. Can you please point me in the right direction here?

    Thank you!

  • Posted 5 December 2017, 9:58 am EST

    Hi,

    I deployed the XML section report sample to my client’s system and received the exact same error when running the report there - see screenshot. Thanks for any help you can provide!

    
    System.MissingFieldException: Field not found: 'System.Dynamic.Utils.EmptyReadOnlyCollection`1.Instance'.
       at System.Dynamic.Utils.CollectionExtensions.ToReadOnly[T](IEnumerable`1 enumerable)
       at System.Linq.Expressions.Expression.Lambda[TDelegate](Expression body, String name, Boolean tailCall, IEnumerable`1 parameters)
       at GrapeCity.Viewer.Common.Model.ReportPaneModel.SubscribeToModelChanges(Action setCurrentPageIndex)
       at GrapeCity.Viewer.Common.Model.ReportPaneModel..ctor(ViewerModel viewerModel)
       at GrapeCity.Viewer.Common.Model.ViewerModel..ctor()
       at GrapeCity.ActiveReports.Viewer.Win.Viewer..ctor()
       at GrapeCity.ActiveReports.Samples.XML.ViewerForm.InitializeComponent()
       at GrapeCity.ActiveReports.Samples.XML.ViewerForm..ctor()
       at GrapeCity.ActiveReports.Samples.XML.StartForm.btnCustomers_Click(Object sender, EventArgs e)
       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)
    
    
  • Posted 6 December 2017, 11:32 pm EST

    Hi,

    Thank you for sharing a screen-shot of error message.

    Are you able to replicate the issue with GrapeCity samples located at C:\Users\GPCTAdmin\Documents\GrapeCity Samples\ActiveReports 8\Section Reports.

    If not, then the issue must be in your application. So, could you share your application or the report you are trying to open in Viewer.

    Since, we could not reproduce the same issue could you share the AR8 version you are using.

    Thanks,

    Ruchir Agarwal

  • Posted 6 December 2017, 11:37 pm EST

    Hi,

    This confirms that the issue is not specific to your application. You mentioned that the report functions correctly on other machines., so could you share the environment details of your client machine on which you are getting this exception.

    Also, it would be really helpful if you could share the steps you are following while observing this issue, it would rectify any step that we might be missing.

    ~Ruchir Agarwal

  • Posted 7 December 2017, 6:33 am EST

    Hi,

    Yes - the report functions correctly on other client’s systems and locally as well. The steps to reproduce were that I loaded up the XML section report sample that’s provided, left the first radio button selected for all results, and then clicked “Run Customers XML Report”.

    Here are the environmental details for the client system that is displaying the error:

    OS Name Microsoft Windows 10 Home

    Version 10.0.15063 Build 15063

    Other OS Description Not Available

    OS Manufacturer Microsoft Corporation

    System Name MARY-1

    System Manufacturer System manufacturer

    System Model System Product Name

    System Type X86-based PC

    System SKU To Be Filled By O.E.M.

    Processor AMD Athlon™ II X2 250 Processor, 3000 Mhz, 2 Core(s), 2 Logical Processor(s)

    BIOS Version/Date American Megatrends Inc. 0601, 3/19/2010

    SMBIOS Version 2.5

    Embedded Controller Version 255.255

    BIOS Mode Legacy

    BaseBoard Manufacturer ASUSTeK Computer INC.

    BaseBoard Model Not Available

    BaseBoard Name Base Board

    Platform Role Desktop

    Secure Boot State Unsupported

    PCR7 Configuration Binding Not Possible

    Windows Directory C:\WINDOWS

    System Directory C:\WINDOWS\system32

    Boot Device \Device\HarddiskVolume1

    Locale United States

    Hardware Abstraction Layer Version = “10.0.15063.502”

    User Name MARY-1\user

    Time Zone US Mountain Standard Time

    Installed Physical Memory (RAM) 4.00 GB

    Total Physical Memory 3.25 GB

    Available Physical Memory 1.00 GB

    Total Virtual Memory 4.75 GB

    Available Virtual Memory 1.62 GB

    Page File Space 1.50 GB

    Page File C:\pagefile.sys

    Device Encryption Support Reasons for failed automatic device encryption: TPM is not usable, PCR7 binding is not supported, Hardware Security Test Interface failed and device is not InstantGo, Un-allowed DMA capable bus/device(s) detected, Disabled by policy, TPM is not usable

    Hyper-V - VM Monitor Mode Extensions Yes

    Hyper-V - Second Level Address Translation Extensions Yes

    Hyper-V - Virtualization Enabled in Firmware No

    Hyper-V - Data Execution Protection Yes

    Thank you for the assistance in this matter!

  • Posted 11 December 2017, 11:22 pm EST

    Hi,

    We tested the application upon various Win10 machines with version 1607,1703,1709, both *32 & *64 bit, but could not reproduce the issue.

    We are deploying the application as mentioned in following URL and using AR 8.3.634.0: http://help.grapecity.com/activereports/webhelp/AR12/webframe.html#DeployWindowsApplications.html

    Could you please confirm that you are deploying the application same way and using this latest version for AR8.

    Thanks,

    Ruchir Agarwal

  • Posted 12 December 2017, 2:37 am EST

    Hello,

    Yes - I can confirm that we are distributing the application per the guidelines. The application inclusive of the report in question functions correctly for all other installations except for the one. I’m inclined to agree with the direction you’re heading - that it’s an OS/Environmental issue and not something internal to the component. Given the exception - could you possibly give me direction as to what to look at on the clients system as far as troubleshooting the issue? I’d like to avoid from having to go back to our client and tell them they need to reinstall their OS unless that’s their only avenue of correction.

    Thank you for the continued support with this issue.

    Rudy

  • Posted 14 December 2017, 4:03 am EST

    Hello,

    Any update on this? I have my client on a modified version of my application that bypasses the report printing functionality due to this issue. Any help on troubleshooting the problem as far as what area I should be looking would be extremely beneficial.

    Thank you,

    Rudy

  • Posted 14 December 2017, 10:05 am EST

    Thank you for the update!

  • Posted 14 December 2017, 5:31 pm EST

    Rudy,

    We understand the importance of this issue for you. However, I am investigating on the reasons why this issue might be occurring only at yours’ client machine. I will come back to you as soon as we have some information {Tracking ID: 251630}.

    Thanks,

  • Posted 16 December 2017, 5:12 pm EST

    Hi Rudy,

    This issue might be caused due to some AntiVirus software. So, could you please check for it at that client’s machine and test the issue once, turning the AntiVirus off.

    If turning that off does not resolve the issue, then could you try repairing the .Net Framework installation at client’s machine.

    Hope it helps.

    Thanks,

    Ruchir Agarwal

Need extra support?

Upgrade your support plan and get personal unlimited phone support with our customer engagement team

Learn More

Forum Channels