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

Extent Reports 5.0.0-beta2 error on Flush(); [C# / Selenium] #187

Open
AuToTe5ter opened this issue Sep 11, 2023 · 6 comments
Open

Extent Reports 5.0.0-beta2 error on Flush(); [C# / Selenium] #187

AuToTe5ter opened this issue Sep 11, 2023 · 6 comments
Labels
help wanted Extra attention is needed

Comments

@AuToTe5ter
Copy link

Message: 
TearDown : System.TypeLoadException : Could not load type 'Microsoft.AspNetCore.Razor.Language.RazorTemplateEngine' from assembly 'Microsoft.AspNetCore.Razor.Language, Version=6.0.21.0, Culture=neutral, PublicKeyToken=adb9793829ddae60'.

@anshooarora
Copy link
Member

Can you share any additional details that can help me reproduce this?

  • OS
  • .NET version

@anshooarora
Copy link
Member

Also see this comment: #173 (comment)

Please make sure to remove all other ExtentReports packages and update to the latest 5.0.0 from 5.0.0-beta2.

@AuToTe5ter
Copy link
Author

@anshooarora
OS = Windows 10 Enterprise (22H2)
.Net Framework = 4.8

I have removed all previous versions from packages folder and can confirm version is 5.0.0-beta2

@anshooarora
Copy link
Member

Something is off with the version of Microsoft.AspNetCore.Razor.Language. Below are the versions of RazorEngine dependencies and it's supposed to be on 2.2.0 instead of 6.0.21.0.

image

@AuToTe5ter
Copy link
Author

That didnt resolve issue downgrading to 2.2.0 (deprecated) version of Razor, however i have rolled by to a previous version of ExtentReports for now.

@anshooarora
Copy link
Member

This is quite worrisome though as an incorrect package dependency version was associated with your project. A future version may have backward incompatible changes which may cause such issues.

@anshooarora anshooarora added the help wanted Extra attention is needed label Sep 14, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
help wanted Extra attention is needed
Projects
None yet
Development

No branches or pull requests

2 participants