0
アクションメソッド内で同じサーバーに新しい(別名ネストされた)リクエストを生成する関数を呼び出すことは可能ですか?asp.net mvcでネストされたリクエスト
私はevohtmltopdf pdfコンバータを使用していくつかのpdfsを1つに結合しようとしているため、これが表示されます。問題:個々のpdfsも同じサーバーによって生成されます。
以下のアクションメソッドのスニペットは、現在の要求を処理している間にコンバータが/ Attachment/Pdfのドキュメントをフェッチできないことを示すエラーメッセージを作成します。
// create pdfDocument with main content retrieved from RenderViewToString output
// [...]
// Now add appendixes by handing converter urls and letting it fetch the docs.
UrlHelper url = new UrlHelper(HttpContext.Request.RequestContext);
HtmlToPdfElement attachment = new HtmlToPdfElement(0, 500, url.Action("Pdf", "Attachment");
pdfDocument.Pages[summary.LastPageIndex].AddElement(attachment);
これは実際には不可能ですか?その場合、制限を回避するにはどうすればよいですか? Duffy