Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Issue in extent.flush - giving below error #1

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

Issue in extent.flush - giving below error #1

ankita1404 opened this issue Sep 14, 2018 · 0 comments

Comments

@ankita1404
Copy link

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....

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant