System.filenotfoundexception
<p>First of all sorry abt this confusing question. </p>

<p>I am using this dll to crop a image. <a href="http://webcropimage.codeplex.com/SourceControl/changeset/view/55276#470209" rel="nofollow">http://webcropimage.codeplex.com/SourceControl/changeset/view/55276#470209</a></p>

<p>here's my aspx page </p>

<pre><code>&lt;asp:FileUpload ID="FileUpload" runat="server"&gt;&lt;/asp:FileUpload&gt; //User uploads a photo(original image)
//large image is to be made and cropped.
asp:Image ID="LargeImage" runat="server" /&gt;
&lt;asp:Button ID="btnCrop" runat="server" Text="Crop" onclick="btnCrop_Click" /&gt;

    &lt;p&gt;
        &lt;cs:CropImage ID="wci1" runat="server" 
            Image="Image1"            
            MinSize="150,150"
            MaxSize="150,150"
            W="150"
            H="150"
             /&gt;  
</code></pre>

<p>//the cropped image is to be saved as a thumb image. </p>

<p>How do I change the code so that it can Crop the image uploaded and sized by the user. 
I tried doing some modifications to the imageurl but no use. Basically the original image uploaded by the user will be sized and then cropped. 
Insted of saying:</p>

<pre><code>&lt;asp:Image ID="Image2" runat="server" ImageUrl="images/uncropped_fullimage.jpg" /&gt;, 
I did
&lt;asp:Image ID="Image2" runat="server" /&gt;
</code></pre>

<p>I think the dll is expecting a imageurl. </p>

<pre><code>Object reference not set to an instance of an object.
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.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.]
   CS.Web.UI.CropImage.GetRawSize(String rawimage) +558
   CS.Web.UI.CropImage.CreateChildControls() +4639
   System.Web.UI.Control.EnsureChildControls() +102
   System.Web.UI.Control.PreRenderRecursiveInternal() +42
   System.Web.UI.Control.PreRenderRecursiveInternal() +175
   System.Web.UI.Control.PreRenderRecursiveInternal() +175
   System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +2496
</code></pre>
