Skip to content
This repository has been archived by the owner on Jul 17, 2020. It is now read-only.

@anshooarora Extent.Flush - giving an issue in selenium C# project. Please help me out- below error I'm getting. Im taking RelevantCodes.ExtentReports from Nuget (version 2.41) #1110

Open
ankita1404 opened this issue Sep 14, 2018 · 0 comments

Comments

@ankita1404
Copy link

ankita1404 commented Sep 14, 2018

@anshooarora @iamlux - extent.flush -giving an issue in selenium C# project. Please help me out- below error I'm getting. Im taking RelevantCodes.ExtentReports from Nuget (version 2.41) #1110

  • An exception of type 'RazorEngine.Templating.TemplateCompilationException' occurred in RelevantCodes.ExtentReports.dll but was not handled in user code

Additional information: Errors while compiling a Template.

Please try the following to solve the situation:

  • If the problem is about missing/invalid references or multiple defines either try to load

    the missing references manually (in the compiling appdomain!) or

    Specify your references manually by providing your own IReferenceResolver implementation.

    See https://antaris.github.io/RazorEngine/ReferenceResolver.html for details.

    Currently all references have to be available as files!

  • If you get 'class' does not contain a definition for 'member':

    try another modelType (for example 'null' to make the model dynamic).
    
    NOTE: You CANNOT use typeof(dynamic) to make the model dynamic!
    

    Or try to use static instead of anonymous/dynamic types.

More details about the error:

  • warning: (0, 0) The predefined type 'System.Func' is defined in multiple assemblies in the global alias; using definition from 'c:\Windows\Microsoft.NET\Framework\v4.0.30319\mscorlib.dll'

    • warning: (0, 0) The predefined type 'System.Func' is defined in multiple assemblies in the global alias; using definition from 'c:\Windows\Microsoft.NET\Framework\v4.0.30319\mscorlib.dll'

    • warning: (0, 0) The predefined type 'System.Func' is defined in multiple assemblies in the global alias; using definition from 'c:\Windows\Microsoft.NET\Framework\v4.0.30319\mscorlib.dll'

    • warning: (0, 0) The predefined type 'System.Func' is defined in multiple assemblies in the global alias; using definition from 'c:\Windows\Microsoft.NET\Framework\v4.0.30319\mscorlib.dll'

    • warning: (0, 0) The predefined type 'System.Func' is defined in multiple assemblies in the global alias; using definition from 'c:\Windows\Microsoft.NET\Framework\v4.0.30319\mscorlib.dll'

    • warning: (0, 0) The predefined type 'System.Action' is defined in multiple assemblies in the global alias; using definition from 'c:\Windows\Microsoft.NET\Framework\v4.0.30319\mscorlib.dll'

    • warning: (0, 0) The predefined type 'System.Action' is defined in multiple assemblies in the global alias; using definition from 'c:\Windows\Microsoft.NET\Framework\v4.0.30319\mscorlib.dll'

    • warning: (0, 0) The predefined type 'System.Action' is defined in multiple assemblies in the global alias; using definition from 'c:\Windows\Microsoft.NET\Framework\v4.0.30319\mscorlib.dll'

    • warning: (0, 0) The predefined type 'System.Action' is defined in multiple assemblies in the global alias; using definition from 'c:\Windows\Microsoft.NET\Framework\v4.0.30319\mscorlib.dll'

    • warning: (0, 0) The predefined type 'System.Runtime.CompilerServices.ExtensionAttribute' is defined in multiple assemblies in the global alias; using definition from 'c:\Windows\Microsoft.NET\Framework\v4.0.30319\mscorlib.dll'

    • error: (901, 62) The call is ambiguous between the following methods or properties: 'System.Linq.Enumerable.Where<RelevantCodes.ExtentReports.ExtentTest>(System.Collections.Generic.IEnumerable<RelevantCodes.ExtentReports.ExtentTest>, System.Func<RelevantCodes.ExtentReports.ExtentTest,bool>)' and 'System.Linq.Enumerable.Where<RelevantCodes.ExtentReports.ExtentTest>(System.Collections.Generic.IEnumerable<RelevantCodes.ExtentReports.ExtentTest>, System.Func<RelevantCodes.ExtentReports.ExtentTest,bool>)'

    • error: (901, 62) The call is ambiguous between the following methods or properties: 'System.Linq.Enumerable.Count<RelevantCodes.ExtentReports.ExtentTest>(System.Collections.Generic.IEnumerable<RelevantCodes.ExtentReports.ExtentTest>)' and 'System.Linq.Enumerable.Count<RelevantCodes.ExtentReports.ExtentTest>(System.Collections.Generic.IEnumerable<RelevantCodes.ExtentReports.ExtentTest>)'

    • error: (918, 62) The call is ambiguous between the following methods or properties: 'System.Linq.Enumerable.Where<RelevantCodes.ExtentReports.ExtentTest>(System.Collections.Generic.IEnumerable<RelevantCodes.ExtentReports.ExtentTest>, System.Func<RelevantCodes.ExtentReports.ExtentTest,bool>)' and 'System.Linq.Enumerable.Where<RelevantCodes.ExtentReports.ExtentTest>(System.Collections.Generic.IEnumerable<RelevantCodes.ExtentReports.ExtentTest>, System.Func<RelevantCodes.ExtentReports.ExtentTest,bool>)'

    • error: (918, 62) The call is ambiguous between the following methods or properties: 'System.Linq.Enumerable.Count<RelevantCodes.ExtentReports.ExtentTest>(System.Collections.Generic.IEnumerable<RelevantCodes.ExtentReports.ExtentTest>)' and 'System.Linq.Enumerable.Count<RelevantCodes.ExtentReports.ExtentTest>(System.Collections.Generic.IEnumerable<RelevantCodes.ExtentReports.ExtentTest>)'

    • error: (935, 62) The call is ambiguous between the following methods or properties: 'System.Linq.Enumerable.Where<RelevantCodes.ExtentReports.ExtentTest>(System.Collections.Generic.IEnumerable<RelevantCodes.ExtentReports.ExtentTest>, System.Func<RelevantCodes.ExtentReports.ExtentTest,bool>)' and 'System.Linq.Enumerable.Where<RelevantCodes.ExtentReports.ExtentTest>(System.Collections.Generic.IEnumerable<RelevantCodes.ExtentReports.ExtentTest>, System.Func<RelevantCodes.ExtentReports.ExtentTest,bool>)'

    • error: (935, 62) The call is ambiguous between the following methods or properties: 'System.Linq.Enumerable.Count<RelevantCodes.ExtentReports.ExtentTest>(System.Collections.Generic.IEnumerable<RelevantCodes.ExtentReports.ExtentTest>)' and 'System.Linq.Enumerable.Count<RelevantCodes.ExtentReports.ExtentTest>(System.Collections.Generic.IEnumerable<RelevantCodes.ExtentReports.ExtentTest>)'

    • error: (961, 62) The call is ambiguous between the following methods or properties: 'System.Linq.Enumerable.Where<RelevantCodes.ExtentReports.ExtentTest>(System.Collections.Generic.IEnumerable<RelevantCodes.ExtentReports.ExtentTest>, System.Func<RelevantCodes.ExtentReports.ExtentTest,bool>)' and 'System.Linq.Enumerable.Where<RelevantCodes.ExtentReports.ExtentTest>(System.Collections.Generic.IEnumerable<RelevantCodes.ExtentReports.ExtentTest>, System.Func<RelevantCodes.ExtentReports.ExtentTest,bool>)'

    • error: (961, 62) The call is ambiguous between the following methods or properties: 'System.Linq.Enumerable.Count<RelevantCodes.ExtentReports.ExtentTest>(System.Collections.Generic.IEnumerable<RelevantCodes.ExtentReports.ExtentTest>)' and 'System.Linq.Enumerable.Count<RelevantCodes.ExtentReports.ExtentTest>(System.Collections.Generic.IEnumerable<RelevantCodes.ExtentReports.ExtentTest>)'

    • error: (1367, 107) The call is ambiguous between the following methods or properties: 'System.Linq.Enumerable.Count<RelevantCodes.ExtentReports.Model.TestAttribute>(System.Collections.Generic.IEnumerable<RelevantCodes.ExtentReports.Model.TestAttribute>)' and 'System.Linq.Enumerable.Count<RelevantCodes.ExtentReports.Model.TestAttribute>(System.Collections.Generic.IEnumerable<RelevantCodes.ExtentReports.Model.TestAttribute>)'

    • error: (1400, 105) The call is ambiguous between the following methods or properties: 'System.Linq.Enumerable.Count<RelevantCodes.ExtentReports.Model.TestAttribute>(System.Collections.Generic.IEnumerable<RelevantCodes.ExtentReports.Model.TestAttribute>)' and 'System.Linq.Enumerable.Count<RelevantCodes.ExtentReports.Model.TestAttribute>(System.Collections.Generic.IEnumerable<RelevantCodes.ExtentReports.Model.TestAttribute>)'

    • error: (1439, 102) The call is ambiguous between the following methods or properties: 'System.Linq.Enumerable.Count<RelevantCodes.ExtentReports.Model.Log>(System.Collections.Generic.IEnumerable<RelevantCodes.ExtentReports.Model.Log>)' and 'System.Linq.Enumerable.Count<RelevantCodes.ExtentReports.Model.Log>(System.Collections.Generic.IEnumerable<RelevantCodes.ExtentReports.Model.Log>)'

    • error: (1700, 126) The call is ambiguous between the following methods or properties: 'System.Linq.Enumerable.Count<RelevantCodes.ExtentReports.Model.Log>(System.Collections.Generic.IEnumerable<RelevantCodes.ExtentReports.Model.Log>)' and 'System.Linq.Enumerable.Count<RelevantCodes.ExtentReports.Model.Log>(System.Collections.Generic.IEnumerable<RelevantCodes.ExtentReports.Model....

@ankita1404 ankita1404 changed the title Extent.Flush - giving an issue in selenium C# project. Please help me out- below error I'm getting Extent.Flush - giving an issue in selenium C# project. Please help me out- below error I'm getting. Im taking RelevantCodes.ExtentReports from Nuget (version 2.41) Sep 14, 2018
@ankita1404 ankita1404 changed the title Extent.Flush - giving an issue in selenium C# project. Please help me out- below error I'm getting. Im taking RelevantCodes.ExtentReports from Nuget (version 2.41) @anshooarora Extent.Flush - giving an issue in selenium C# project. Please help me out- below error I'm getting. Im taking RelevantCodes.ExtentReports from Nuget (version 2.41) Sep 14, 2018
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant