Open ankita1404 opened 6 years ago
Hi Ankita(@ankita1404 ), Sorry for your inconvenience, This is the demo repository to practice myself. Don't consider this repo as example to your projects. I am not a Automation Tester. I am just Javascript and PHP Developer.
okay ya!
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':
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(System.Collections.Generic.IEnumerable, System.Func<RelevantCodes.ExtentReports.ExtentTest,bool>)' and 'System.Linq.Enumerable.Where(System.Collections.Generic.IEnumerable, System.Func<RelevantCodes.ExtentReports.ExtentTest,bool>)'
error: (901, 62) The call is ambiguous between the following methods or properties: 'System.Linq.Enumerable.Count(System.Collections.Generic.IEnumerable)' and 'System.Linq.Enumerable.Count(System.Collections.Generic.IEnumerable)'
error: (918, 62) The call is ambiguous between the following methods or properties: 'System.Linq.Enumerable.Where(System.Collections.Generic.IEnumerable, System.Func<RelevantCodes.ExtentReports.ExtentTest,bool>)' and 'System.Linq.Enumerable.Where(System.Collections.Generic.IEnumerable, System.Func<RelevantCodes.ExtentReports.ExtentTest,bool>)'
error: (918, 62) The call is ambiguous between the following methods or properties: 'System.Linq.Enumerable.Count(System.Collections.Generic.IEnumerable)' and 'System.Linq.Enumerable.Count(System.Collections.Generic.IEnumerable)'
error: (935, 62) The call is ambiguous between the following methods or properties: 'System.Linq.Enumerable.Where(System.Collections.Generic.IEnumerable, System.Func<RelevantCodes.ExtentReports.ExtentTest,bool>)' and 'System.Linq.Enumerable.Where(System.Collections.Generic.IEnumerable, System.Func<RelevantCodes.ExtentReports.ExtentTest,bool>)'
error: (935, 62) The call is ambiguous between the following methods or properties: 'System.Linq.Enumerable.Count(System.Collections.Generic.IEnumerable)' and 'System.Linq.Enumerable.Count(System.Collections.Generic.IEnumerable)'
error: (961, 62) The call is ambiguous between the following methods or properties: 'System.Linq.Enumerable.Where(System.Collections.Generic.IEnumerable, System.Func<RelevantCodes.ExtentReports.ExtentTest,bool>)' and 'System.Linq.Enumerable.Where(System.Collections.Generic.IEnumerable, System.Func<RelevantCodes.ExtentReports.ExtentTest,bool>)'
error: (961, 62) The call is ambiguous between the following methods or properties: 'System.Linq.Enumerable.Count(System.Collections.Generic.IEnumerable)' and 'System.Linq.Enumerable.Count(System.Collections.Generic.IEnumerable)'
error: (1367, 107) The call is ambiguous between the following methods or properties: 'System.Linq.Enumerable.Count(System.Collections.Generic.IEnumerable)' and 'System.Linq.Enumerable.Count(System.Collections.Generic.IEnumerable)'
error: (1400, 105) The call is ambiguous between the following methods or properties: 'System.Linq.Enumerable.Count(System.Collections.Generic.IEnumerable)' and 'System.Linq.Enumerable.Count(System.Collections.Generic.IEnumerable)'
error: (1439, 102) The call is ambiguous between the following methods or properties: 'System.Linq.Enumerable.Count(System.Collections.Generic.IEnumerable)' and 'System.Linq.Enumerable.Count(System.Collections.Generic.IEnumerable)'
error: (1700, 126) The call is ambiguous between the following methods or properties: 'System.Linq.Enumerable.Count(System.Collections.Generic.IEnumerable)' and 'System.Linq.Enumerable.Count(System.Collections.Generic.IEnumerable<RelevantCodes.ExtentReports.Model....