Base solution for your next web application
Open Closed

abp.toastr.js Error #2245


User avatar
0
bbakermmc created

In my code I'm calling a apb.notify and its throwing an error. Its related to toastr it looks like

.done(function(data) {
                abp.notify.success('Address Verification Reset!', 'test');
                grid.dataSource.read();
            });

Its trying to do this:

http://localhost:30001/Content/data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABgAAAAYCAYAAADgdz34AAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAAAAJcEhZcwAADsMAAA7DAcdvqGQAAADsSURBVEhLY2AYBfQMgf/3P8+/evAIgvA/FsIF+BavYDDWMBGroaSMMBiE8VC7AZDrIFaMFnii3AZTjUgsUUWUDA8OdAH6iQbQEhw4HyGsPEcKBXBIC4ARhex4G4BsjmweU1soIFaGg/WtoFZRIZdEvIMhxkCCjXIVsATV6gFGACs4Rsw0EGgIIH3QJYJgHSARQZDrWAB+jawzgs+Q2UO49D7jnRSRGoEFRILcdmEMWGI0cm0JJ2QpYA1RDvcmzJEWhABhD/pqrL0S0CWuABKgnRki9lLseS7g2AlqwHWQSKH4oKLrILpRGhEQCw2LiRUIa4lwAAAABJRU5ErkJggg==

I'm assuming its trying to load an image that goes with the message? Since I don't see a "Check" on the success, just a green message box.

It tells me: The length of the URL for this request exceeds the configured maxUrlLength value.


1 Answer(s)
  • User Avatar
    0
    bbakermmc created
    bundles.Add(
                    new StyleBundle("~/Bundles/vendor/css")
                        //.Include("~/Content/themes/base/all.css", new CssRewriteUrlTransform())
                        .Include("~/Content/themes/bootstrap-simplex.css", new CssRewriteUrlTransform())
                        .Include("~/Content/toastr.min.css")
                        .Include("~/Scripts/sweetalert/sweet-alert.css", new CssRewriteUrlTransform())
                        .Include("~/Content/flags/famfamfam-flags.css", new CssRewriteUrlTransform())
                        .Include("~/Content/font-awesome.min.css", new CssRewriteUrlTransform())
                    );
    

    Had to remove the CssRewriteUrlTransform() and then it worked..