asp.net - How to get CropImage.Net working? -


i trying latest version of cropimage.net working on site.

i have added imageresizer.dll , imazen.crop.dll project, , able run diagnostics page imageresizer, not report errors, following warnings:

2 issues detected: (warning): potentially see additional errors here, perform image resize request. (warning): nocache development usage, , cannot scale production use. add diskcache or cloudfront production use

i have registered assembly , added control page:

<%@ register assembly="imazen.crop" namespace="imazen.crop" tagprefix="ic" %>  <ic:cropimage id="cropimage1" runat="server" canvasheight="300"  imageid="image1" canvaswidth="300" />   <br /> 

everything fine, when try access page following error:

description: unhandled exception occurred during execution of current web request. please review stack trace more information error , originated in code.

exception details: system.nullreferenceexception: object reference not set instance of object.  source error:   unhandled exception generated during execution of current web request. information regarding origin , location of exception can identified using exception stack trace below.    stack trace:    [nullreferenceexception: object reference not set instance of 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 

any suggestions or ideas on going wrong?

thanks,

eldon

this may little late, managed reproduce error not including asp:image.

as can see, cropimage control references id of image:

<ic:cropimage id="cropimage1" runat="server" canvasheight="300"  imageid="image1" canvaswidth="300" />   <br /> 

adding image same id solves problem:

<asp:image id="image1" runat="server" imageurl="images/328.jpg" /> 

Comments

Popular posts from this blog

linux - xterm copying to CLIPBOARD using copy-selection causes automatic updating of CLIPBOARD upon mouse selection -

c++ - qgraphicsview horizontal scrolling always has a vertical delta -