GDI+ Error after installation when tryign to access default page

This topic was automatically closed 365 days after the last reply. New replies are no longer allowed.
14 years ago
Hello,

I don't know if this has been addressed before but my employer has installed nopcommerce on his server.  When we try accessing the default page we get the standard 'something went wrong error'.  I checked the error log and thsi is the error that is occurring:

Unknown  
Severity:  11  
Message:  Exception of type 'System.Web.HttpUnhandledException' was thrown.  
Exception:  System.Web.HttpUnhandledException: Exception of type 'System.Web.HttpUnhandledException' was thrown. ---> System.Runtime.InteropServices.ExternalException: A generic error occurred in GDI+. at System.Drawing.Image.Save(String filename, ImageCodecInfo encoder, EncoderParameters encoderParams) at NopSolutions.NopCommerce.BusinessLogic.Media.PictureManager.GetPictureUrl(Picture picture, Int32 TargetSize, Boolean showDefaultPicture) in F:\Own\NopCommerce\Solution\Solution\Libraries\Nop.BusinessLogic\Media\PictureManager.cs:line 307 at NopSolutions.NopCommerce.BusinessLogic.Media.PictureManager.GetPictureUrl(Int32 imageId, Int32 TargetSize, Boolean showDefaultPicture) in F:\Own\NopCommerce\Solution\Solution\Libraries\Nop.BusinessLogic\Media\PictureManager.cs:line 144 at NopSolutions.NopCommerce.Web.Modules.HomePageCategories.dlCategories_ItemDataBound(Object sender, DataListItemEventArgs e) in F:\Own\NopCommerce\Solution\Solution\NopCommerceStore\Modules\HomePageCategories.ascx.cs:line 67 at System.Web.UI.WebControls.DataList.OnItemDataBound(DataListItemEventArgs e) at System.Web.UI.WebControls.DataList.CreateItem(Int32 itemIndex, ListItemType itemType, Boolean dataBind, Object dataItem) at System.Web.UI.WebControls.DataList.CreateControlHierarchy(Boolean useDataSource) at System.Web.UI.WebControls.BaseDataList.OnDataBinding(EventArgs e) at System.Web.UI.WebControls.BaseDataList.DataBind() at NopSolutions.NopCommerce.Web.Modules.HomePageCategories.BindData() in F:\Own\NopCommerce\Solution\Solution\NopCommerceStore\Modules\HomePageCategories.ascx.cs:line 52 at NopSolutions.NopCommerce.Web.Modules.HomePageCategories.Page_Load(Object sender, EventArgs e) in F:\Own\NopCommerce\Solution\Solution\NopCommerceStore\Modules\HomePageCategories.ascx.cs:line 42 at System.Web.Util.CalliHelper.EventArgFunctionCaller(IntPtr fp, Object o, Object t, EventArgs e) at System.Web.Util.CalliEventHandlerDelegateProxy.Callback(Object sender, EventArgs e) at System.Web.UI.Control.OnLoad(EventArgs e) at System.Web.UI.Control.LoadRecursive() at System.Web.UI.Control.LoadRecursive() at System.Web.UI.Control.LoadRecursive() at System.Web.UI.Control.LoadRecursive() at System.Web.UI.Control.LoadRecursive() at System.Web.UI.Control.LoadRecursive() at System.Web.UI.Control.LoadRecursive() at System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) --- End of inner exception stack trace --- 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) in c:\windows\Microsoft.NET\Framework\v2.0.50727\Temporary ASP.NET Files\nopcomm\06d83ed6\f46c02dc\App_Web_k_phpxip.8.cs:line 0 at System.Web.HttpApplication.CallHandlerExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute() at System.Web.HttpApplication.ExecuteStep(IExecutionStep step, Boolean& completedSynchronously)  

Any help would be appreciated.

Thanks.
14 years ago
This is a permissions error.  Make sure network service has full rights to images directory.
14 years ago
We did try that on one image directory, I think it was a sub directory.  We will double check the image directory.

Thanks for the help.
14 years ago
Skiltz meant \images\thumb directory
14 years ago
Thank you both for your help.  We did get it to work,

Appreciated. :)
13 years ago
Worked perfectly, thanks.
13 years ago
To change permissions I would have to go to my web host?
13 years ago
I am getting the same error, but oddly the path it is pointing to is the path on my local machine. ???  The error is on the published site at the host.  
Why is it looking on my local machine?  And how do I change that?
I published the site using Visual Studio 2008.
13 years ago
I am betting you need to modify your webconfig file to direct to the host DB and not the local host you tested it on.
13 years ago
Here is my issue.  I am thinking it is a permission error with my host?

[ExternalException (0x80004005): A generic error occurred in GDI+.]
   System.Drawing.Image.Save(String filename, ImageCodecInfo encoder, EncoderParameters encoderParams) +377630
   NopSolutions.NopCommerce.BusinessLogic.Media.PictureManager.GetDefaultPictureUrl(PictureTypeEnum DefaultPictureType, Int32 TargetSize) in PictureManager.cs:260
   NopSolutions.NopCommerce.BusinessLogic.Media.PictureManager.GetDefaultPictureUrl(Int32 TargetSize) in PictureManager.cs:202
   NopSolutions.NopCommerce.BusinessLogic.Media.PictureManager.GetPictureUrl(Picture picture, Int32 TargetSize, Boolean showDefaultPicture) in PictureManager.cs:284
   NopSolutions.NopCommerce.BusinessLogic.Media.PictureManager.GetPictureUrl(Int32 imageId, Int32 TargetSize, Boolean showDefaultPicture) in PictureManager.cs:192
   NopSolutions.NopCommerce.Web.Modules.HomePageCategories.dlCategories_ItemDataBound(Object sender, DataListItemEventArgs e) in HomePageCategories.ascx.cs:67
   System.Web.UI.WebControls.DataListItemEventHandler.Invoke(Object sender, DataListItemEventArgs e) +0
   System.Web.UI.WebControls.DataList.OnItemDataBound(DataListItemEventArgs e) +8667686
   System.Web.UI.WebControls.DataList.CreateItem(Int32 itemIndex, ListItemType itemType, Boolean dataBind, Object dataItem) +137
   System.Web.UI.WebControls.DataList.CreateControlHierarchy(Boolean useDataSource) +459
   System.Web.UI.WebControls.BaseDataList.OnDataBinding(EventArgs e) +54
   System.Web.UI.WebControls.BaseDataList.DataBind() +55
   NopSolutions.NopCommerce.Web.Modules.HomePageCategories.BindData() in HomePageCategories.ascx.cs:52
   NopSolutions.NopCommerce.Web.Modules.HomePageCategories.Page_Load(Object sender, EventArgs e) in HomePageCategories.ascx.cs:42
   System.Web.Util.CalliHelper.EventArgFunctionCaller(IntPtr fp, Object o, Object t, EventArgs e) +14
   System.Web.Util.CalliEventHandlerDelegateProxy.Callback(Object sender, EventArgs e) +35
   System.Web.UI.Control.OnLoad(EventArgs e) +99
   System.Web.UI.Control.LoadRecursive() +50
   System.Web.UI.Control.LoadRecursive() +141
   System.Web.UI.Control.LoadRecursive() +141
   System.Web.UI.Control.LoadRecursive() +141
   System.Web.UI.Control.LoadRecursive() +141
   System.Web.UI.Control.LoadRecursive() +141
   System.Web.UI.Control.LoadRecursive() +141
   System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +627


Any thoughts?
This topic was automatically closed 365 days after the last reply. New replies are no longer allowed.