0
我在MpaBundleConfig.cs文件中添加了以下方法。我還爲JS文件添加了類似的方法。ASPNETBOILERPLATE - MVC Bundle內存不足錯誤
private static void EXLNTAddMpaCssLibs(BundleCollection bundles, bool isRTL)
{
bundles.Add(
new StyleBundle("~/Bundles/Common/EXLNT/css" + (isRTL ? "RTL" : ""))
.Include(StylePaths.Bootstrap_DatePicker)
.Include(StylePaths.Bootstrap_DateTimePicker)
.Include(StylePaths.Bootstrap_DataTables)
.Include(StylePaths.DataTables)
.Include(StylePaths.Select2)
.Include(StylePaths.Select2_Bootstrap)
.ForceOrdered()
);
}
當我運行應用程序,登錄後,我得到的錯誤:
Exception of type 'System.OutOfMemoryException' was thrown.
所有我想要做的是補充一點,我向溶液中添加一些JS/CSS文件,從ASPNETZERO下載得到我的解決方案後。關於如何解決此錯誤的任何想法?
是否有任何堆棧跟蹤? – hikalkan
這裏是堆棧跟蹤:https://drive.google.com/file/d/0B5HAoiVVXzY7X2N4S21uWW44YTQ/view?usp=sharing – exlnt
你的堆棧跟蹤顯示這個異常是由bundler/minifier庫引發的。也許其中一個樣式文件添加了一些CSS代碼,導致bundler失敗。您可以逐個刪除,以瞭解它是哪一個。這個問題似乎與ABP或ASPNET ZERO沒有關係。 – hikalkan