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

@nabinked I have a similar problem. using 6.0.2 in netcoreapp3.1 razor pages project #122

Open
Aruny4177 opened this issue May 26, 2020 · 7 comments

Comments

@Aruny4177
Copy link

@nabinked I have a similar problem. using 6.0.2 in netcoreapp3.1 razor pages project

image

image

I had to manually put _content/NToastNotify/toastr.js as otherwise, I got 404 error when the viewcomponent for ntoastnotify was trying to do ntoastnotify.init.

image

So with the above in mind, I got the onGet to add a toast message and then it shows on page load. However, when I add a toast onPost, it fails to show the toast on the next page, as it used to when I used netcoreapp2.2 with an older version of NToastNotify nuget package.

Please let me know if you know what the issue could be.

Originally posted by @talksik in #84 (comment)

@Aruny4177
Copy link
Author

same issue I am also getting,

@dotnetshadow
Copy link

I got the same issue doesn't generate the _content/NToastNotify/toastr.js folder and file
Using v6.1.3

@petertirrell
Copy link

Hello, I am running into this same issue with a project I recently upgraded to .NET Core 3.1. If manually copying the toastr.js file structure to the wwwroot folder works, I'm OK with that. Where can I find the file and structure to copy? Is that in the nuget package source somewhere? Thanks,

@nabinked
Copy link
Owner

Sorry Guys. I have not been able to find time to look at this. Will try to fix this issue tonight.

@nabinked
Copy link
Owner

Can I get a simple repro for this issue if possible ?

@nabinked
Copy link
Owner

nabinked commented Jul 3, 2020

Can you guys upgrade to the latest please ?

@nabinked
Copy link
Owner

Also note that You have to Accept the Cookie policy for Post-Redirect to work. Since by default the aspnet uses CookieTempDataProvider which is used by the library to show toasts.

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

4 participants