HomeHome Product Discus... Product Discus...SmithCartSmithCartProduct Image ErrorProduct Image Error
Previous
 
Next
New Post
3/29/2013 11:10 AM
 
I'm trying to upload a product image in the edit screen. I select the image, and then at the bottom when I press "Update" I get the error I've pasted below. This is happening on several portals:

Server Error in '/' Application.

Parameter is not valid.

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.ArgumentException: Parameter is not valid.

Source Error: 

The source code that generated this unhandled exception can only be shown when compiled in debug mode. To enable this, please follow one of the below steps, then request the URL:

1. Add a "Debug=true" directive at the top of the file that generated the error. Example:

  <%@ Page Language="C#" Debug="true" %>

or:

2) Add the following section to the configuration file of your application:

<configuration>
   <system.web>
       <compilation debug="true"/>
   </system.web>
</configuration>

Note that this second technique will cause all files within a given application to be compiled in debug mode. The first technique will cause only that particular file to be compiled in debug mode.

Important: Running applications in debug mode does incur a memory/performance overhead. You should make sure that an application has debugging disabled before deploying into production scenario.

Stack Trace: 

[ArgumentException: Parameter is not valid.] System.Drawing.Bitmap..ctor(Int32 width, Int32 height, PixelFormat format) +1051813 System.Drawing.Bitmap..ctor(Int32 width, Int32 height) +14 Smith.DNN.Modules.BuyNow.AddProducts.ResizeImage(String originalName, String originalPath, String newPath, Int32 NewWidth, Int32 MaxHeight) +274 Smith.DNN.Modules.BuyNow.AddProducts.e() +809 Smith.DNN.Modules.BuyNow.AddProducts.n() +3777 Smith.DNN.Modules.BuyNow.AddProducts.btnSubmit_Click(Object sender, EventArgs e) +25 System.Web.UI.WebControls.LinkButton.OnClick(EventArgs e) +111 System.Web.UI.WebControls.LinkButton.RaisePostBackEvent(String eventArgument) +79 System.Web.UI.WebControls.LinkButton.System.Web.UI.IPostBackEventHandler.RaisePostBackEvent(String eventArgument) +10 System.Web.UI.Page.RaisePostBackEvent(IPostBackEventHandler sourceControl, String eventArgument) +13 System.Web.UI.Page.RaisePostBackEvent(NameValueCollection postData) +175 System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +1565[PageLoadException: Parameter is not valid.] DotNetNuke.Services.Exceptions.Exceptions.ProcessPageLoadException(Exception exc, String URL) +326 DotNetNuke.Framework.PageBase.OnError(EventArgs e) +452 System.Web.UI.Page.HandleError(Exception e) +84 System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +6776 System.Web.UI.Page.ProcessRequest(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +242 System.Web.UI.Page.ProcessRequest() +80 System.Web.UI.Page.ProcessRequestWithNoAssert(HttpContext context) +21 System.Web.UI.Page.ProcessRequest(HttpContext context) +49 ASP.default_aspx.ProcessRequest(HttpContext context) +4 System.Web.CallHandlerExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute() +181 System.Web.HttpApplication.ExecuteStep(IExecutionStep step, Boolean& completedSynchronously) +75

 
New Post
3/29/2013 11:17 AM
 
What is the error in the DNN event viewer?  What version of Windows, DNN and Smith Cart are you running?




Scott Kelly
Project Manager
DotNetNuke Consulting, DotNetNuke Store and DNN Ecommerce
 
New Post
3/29/2013 1:12 PM
 
Windows 7, DNN 6.2 and Smith Cart 5.34. We have 16 portals and it's functioning correctly on most of them, just not others.

Here is the error from the Event Viewer:

AssemblyVersion: 6.2.0

PortalID: 35

PortalName: Wrightsoft: Trane

UserID: 8

UserName: wrightsoft

ActiveTabID: 1504

ActiveTabName: SaaS License

RawURL: /trane/store/saas_license/ctl/addproducts/mid/3507/productid/877.aspx

AbsoluteURL: /Default.aspx

AbsoluteURLReferrer: https://www.wrightsoft.com/trane/store/saas_license/ctl/addproducts/mid/3507/productid/877.aspx

UserAgent: Mozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKit/537.22 (KHTML, like Gecko) Chrome/25.0.1364.172 Safari/537.22

DefaultDataProvider: DotNetNuke.Data.SqlDataProvider, DotNetNuke.SqlDataProvider

ExceptionGUID: 5c343168-f211-4cb3-a19e-3c287006e855

InnerException: Unhandled Error:

FileName:

FileLineNumber: 0

FileColumnNumber: 0

Method: System.Drawing.Bitmap..ctor

StackTrace:

Message: System.Exception: Unhandled Error: ---> DotNetNuke.Services.Exceptions.PageLoadException: Parameter is not valid. ---> System.ArgumentException: Parameter is not valid. at System.Drawing.Bitmap..ctor(Int32 width, Int32 height, PixelFormat format) at System.Drawing.Bitmap..ctor(Int32 width, Int32 height) at Smith.DNN.Modules.BuyNow.AddProducts.ResizeImage(String originalName, String originalPath, String newPath, Int32 NewWidth, Int32 MaxHeight) at Smith.DNN.Modules.BuyNow.AddProducts.e() at Smith.DNN.Modules.BuyNow.AddProducts.n() at Smith.DNN.Modules.BuyNow.AddProducts.btnSubmit_Click(Object sender, EventArgs e) at System.Web.UI.WebControls.LinkButton.OnClick(EventArgs e) at System.Web.UI.WebControls.LinkButton.RaisePostBackEvent(String eventArgument) at System.Web.UI.WebControls.LinkButton.System.Web.UI.IPostBackEventHandler.RaisePostBackEvent(String eventArgument) at System.Web.UI.Page.RaisePostBackEvent(IPostBackEventHandler sourceControl, String eventArgument) at System.Web.UI.Page.RaisePostBackEvent(NameValueCollection postData) at System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) --- End of inner exception stack trace --- at DotNetNuke.Services.Exceptions.Exceptions.ProcessPageLoadException(Exception exc, String URL) at DotNetNuke.Framework.PageBase.OnError(EventArgs e) at System.Web.UI.Page.HandleError(Exception e) at System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) at System.Web.UI.Page.ProcessRequest(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) at System.Web.UI.Page.ProcessRequest() at System.Web.UI.Page.ProcessRequestWithNoAssert(HttpContext context) at System.Web.UI.Page.ProcessRequest(HttpContext context) at ASP.default_aspx.ProcessRequest(HttpContext context) at System.Web.HttpApplication.CallHandlerExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute() at System.Web.HttpApplication.ExecuteStep(IExecutionStep step, Boolean& completedSynchronously) --- End of inner exception stack trace ---

Source:

Server Name: moltok


 
New Post
4/2/2013 2:05 PM
 
Hi Christopher,

Out of your 16 portals, how many of your Cart's are not uploading images correctly?

The issue may be that if the image you are trying to change is being viewed on the portal and windows may be locking the file preventing a new one from being uploaded.
 
New Post
4/3/2013 6:49 AM
 
Out of the 16, 4 are not working. What is the resolution for getting these images on there?
 
New Post
4/3/2013 1:03 PM
 
Are you sharing products between the portals or is each buynow independent to the portal.

In your buynow settings how do you have the "Cross Portal Share Type" setting configured?

Are all your portals running Smith Cart child portals or parent portals?


Scott Kelly
Project Manager
DotNetNuke Consulting, DotNetNuke Store and DNN Ecommerce
 
New Post
4/3/2013 1:03 PM
 
There may be a file lock on the images when you are trying to save them.

Are you sharing products between the portals or is each buynow independent to the portal.

In your buynow settings how do you have the "Cross Portal Share Type" setting configured?

Are all your portals running Smith Cart child portals or parent portals?


Scott Kelly
Project Manager
DotNetNuke Consulting, DotNetNuke Store and DNN Ecommerce
 
Previous
 
Next
HomeHome Product Discus... Product Discus...SmithCartSmithCartProduct Image ErrorProduct Image Error