2017-09-19 4 views
0

私はReact.net、より具体的にはSystem.Web.Optimization.Reactライブラリを使用しています。私はその上に仮想パスとプットいくつかのファイル作成React.netのバンドルと細分化ASP.net

:次に

bundles.Add(new BabelBundle(BundlesVirtualPaths.EditorV2).Include(
    (...) 
)); 

を、私は次の行使ってcshtml内のファイルをインポートします。

@Scripts.Render(BundlesVirtualPaths.EditorV2.Libs.All) 

し、エラーをOut Of Memory投げている:

Server Error in '/' Application.

Exception of type 'System.OutOfMemoryException' was thrown.

Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code.

Exception Details: System.OutOfMemoryException: Exception of type 'System.OutOfMemoryException' was thrown.

Source Error:

Line 13:
@Html.Raw(ItemsHelper.JSGlobalVariables.GetGlobalVariablesArrayJavascript()) Line 14: @Styles.Render(BundlesVirtualPaths.EditorV2CSS.Root) Line 15: @Scripts.Render(BundlesVirtualPaths.EditorV2) Line 16: Line 17:
@Scripts.Render(BundlesVirtualPaths.EditorV1.Shared,

Source File: c:\Repository\Default\adigitalbook\html5\adigitalbook.html5.mainserver\Views\Shared\LayoutEditorV2.cshtml Line: 15

私はバベルを使用してファイルを変換して(次のように)エラーを解決せずにファイルをインポートします。

bundles.Add(new ScriptBundle(BundlesVirtualPaths.EditorV2).Include(
    (...) 
)); 

答えて

0

私のソリューションは、Visual Studioは問題なく変換し、ファイルを縮小化できるよう、各仮想パスは持っているファイルの数を分割しました。

ビジュアルスタジオ2017のツール - >オプション - >プロジェクトとソリューション - > Webプロジェクト - > "Webサイトとプロジェクトに64ビットバージョンのIIS Expressを使用する"のオプションをチェックすることもできます。 64ビットをサポートしていないマシンにソフトウェアを公開すると、エラーが再び表示される可能性があります。

関連する問題