Click here to Skip to main content
15,846,212 members
Please Sign up or sign in to vote.
1.00/5 (2 votes)
See more:
I have the following problem with rv:ReportViewer instruction working with VS2022 WPF .NET 6.0

<Grid>
        <WindowsFormsHost HorizontalAlignment="Left" Height="410" Margin="10,10,0,0" VerticalAlignment="Top" Width="749">
            <rv:ReportViewer x:Name="_reportviewer" />
        </WindowsFormsHost>

    </Grid>


MissingMethodException: Method not found: 'Void System.AppDomainSetup.set_ActivationArguments(System.Runtime.Hosting.ActivationArguments)'.

That message means that it's imposible work with RDLC and WPF .NET 6.0 and I must have to work with WPF .NET Framefork?
Thanks to all.

What I have tried:

I have been looking for help in different forums without good result.
Posted
Comments
Member 15639943 26-Jan-23 14:52pm    
Hello everyone, the answer to this question is very important to me. I know it's not right to ask for help this way, but I need to get this resolved as soon as possible. Regards
Sandeep Mewara 26-Jan-23 21:49pm    
Not sure - If you are not using the new "ReportViewerCore.WinForms version 15.1.5" then use that instead of "Microsoft.ReportingServices.ReportViewerControl.Winforms".

See here:
Visual Studio Feedback[^]
Microsoft RDLC Report Designer 2022 - Visual Studio Marketplace[^]
Andre Oosthuizen 27-Jan-23 1:10am    
Similar question here - https://www.codeproject.com/Answers/5352976/Csharp-WPF-RDLC-it-does-not-work-with-VS2022#answer1
Member 15639943 27-Jan-23 10:10am    
Hi Andre, the link that you indicate helped me solve other problems, but this other one appeared. And I know that it is a ReportViewer version problem. I have Microsoft Report Viewer Control for .Net Windows 150.1537.0 installed, but no solution.
Sandeep, I already tried that one too but with no good results.
I don't want to abuse, but I don't know if I can send the code by email and check the problem directly. Thanks to all. (yes, I know, my english is not good enough)
Gerry Schmitz 27-Jan-23 12:30pm    
Why use a WPF (host) window in the first place? Windows Forms and WPF Windows can co-exist; you just need the corresponding assemblies referenced.

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900