ventrian / News-Articles

News Articles for DNN has been helping DNN administrators to publish articles and blogs to their DNN portals since 2004.
MIT License
38 stars 24 forks source link

Error while loading module on DNN 9.8 #56

Open Nicbobbo6 opened 3 years ago

Nicbobbo6 commented 3 years ago

While loading module NewsArticleLatest (0.12.0) on DNN 9.8, it cause this error `Message:Une exception a été levée par l'initialiseur de type pour 'System.Web.Helpers.AntiForgery'.

StackTrace:

InnerMessage:Une exception a été levée par l'initialiseur de type pour 'System.Web.Helpers.AntiForgery'.

InnerStackTrace:

à System.Web.Helpers.AntiForgery.GetHtml() à DotNetNuke.Framework.ServicesFrameworkImpl.RegisterAjaxAntiForgery(Page page) à DotNetNuke.Framework.PageBase.OnPreRender(EventArgs e) à DotNetNuke.Framework.DefaultPage.OnPreRender(EventArgs evt) à System.Web.UI.Control.d249.MoveNext() --- Fin de la trace de la pile à partir de l'emplacement précédent au niveau duquel l'exception a été levée --- à System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task) à System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task) à System.Web.Util.WithinCancellableCallbackTaskAwaitable.WithinCancellableCallbackTaskAwaiter.GetResult() à System.Web.UI.Page.d523.MoveNext()`

skamphuis commented 3 years ago

Hi, can you please elaborate on when and how this error occurs? I tried the module on a DNN9.8 instance but have not seen any errors yet. Also, from the exception message, this looks like a DNN error, not a news articles one.

Nicbobbo6 commented 3 years ago

I just upgrade my instance from DNN 7.4.2 to DNN 9.8. I update the module to the latest version (0.12.0). When I load my homepage, witch contain News Articles Latest, It trigger this error and my website don't load. After removing the dlls Ventrian.NewsArticles, Ventrian.NewsArticles.Secure.dll and Ventrian.NewsArticles.SqlDataProvider.dll, my website load and work correctly.

Timo-Breumelhof commented 3 years ago

Is this about the main module or the news articles latest module?

Nicbobbo6 commented 3 years ago

it is about news articles latest module

Timo-Breumelhof commented 3 years ago

Can you post the template used?

Timo-Breumelhof commented 3 years ago

I have the module running on 9.8.1 too and it works a s expected..