0

私のサイトで動作する CropImage.Net の最新バージョンを取得しようとしています。

プロジェクトに ImageResizer.dll と Imazen.Crop.dll を追加しました。ImageResizer の診断ページを実行できます。エラーは報告されず、次の警告のみが報告されます。

2 件の問題が検出されました: (警告): ここに追加のエラーが表示される可能性がある場合は、画像のサイズ変更リクエストを実行してください。(警告): NoCache は開発用のみであり、本番用に拡張することはできません。本番用にDiskCacheまたはCloudFrontを追加

アセンブリを登録し、ページにコントロールを追加しました。

<%@ Register Assembly="Imazen.Crop" Namespace="Imazen.Crop" TagPrefix="ic" %>

<ic:CropImage ID="CropImage1" runat="server" CanvasHeight="300"  ImageID="Image1" CanvasWidth="300" />   <br />

すべて問題ないように見えますが、ページにアクセスしようとすると、次のエラーが発生します。

説明: 現在の Web 要求の実行中に未処理の例外が発生しました。エラーの詳細とコード内のどこでエラーが発生したかについては、スタック トレースを確認してください。

Exception Details: System.NullReferenceException: Object reference not set to an instance of an object.

Source Error: 

An unhandled exception was generated during the execution of the current web request. Information regarding the origin and location of the exception can be identified using the exception stack trace below.  

Stack Trace: 


[NullReferenceException: Object reference not set to an instance of an object.]
   Imazen.Crop.CropImage.AddFileReferences() +1917
   Imazen.Crop.CropImage.CreateChildControls() +88
   System.Web.UI.Control.EnsureChildControls() +188
   System.Web.UI.Control.PreRenderRecursiveInternal() +59
   System.Web.UI.Control.PreRenderRecursiveInternal() +221
   System.Web.UI.Control.PreRenderRecursiveInternal() +221
   System.Web.UI.Control.PreRenderRecursiveInternal() +221
   System.Web.UI.Control.PreRenderRecursiveInternal() +221
   System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +4296

私が間違っていることについての提案やアイデアはありますか?

ありがとう、

エルドン

4

1 に答える 1