Logos and Images error

For general questions and discussions specific to the AbleCommerce 7.0 Asp.Net product.
Post Reply
num5labonte
Ensign (ENS)
Ensign (ENS)
Posts: 19
Joined: Wed Nov 19, 2008 6:24 am

Logos and Images error

Post by num5labonte » Wed Nov 19, 2008 6:28 am

VERSION: 7.0 BUILD: 10152

When selecting Website / Logos and Images the page generates the following error:

CS0104: 'Image' is an ambiguous reference between 'System.Web.UI.WebControls.Image' and 'System.Drawing.Image'
Line 105: if (!string.IsNullOrEmpty(logoUrl))
Line 106: {
Line 107: Image logo = new Image();
Line 108: logo.ImageUrl = logoUrl + "?tag=" + StringHelper.RandomNumber(6);
Line 109: CurrentLogo.Controls.Add(logo);

Source File: d:\websites\ac_7_0_stable_b10152\Admin\Website\LogoAndImages.aspx Line: 107

Any ideas? I would like to resize the product images to display as a custom size and read in the forums that this is where I can accomplish this.

Thanks.

User avatar
mazhar
Master Yoda
Master Yoda
Posts: 5084
Joined: Wed Jul 09, 2008 8:21 am
Contact:

Re: Logos and Images error

Post by mazhar » Wed Nov 19, 2008 7:03 am

I am unable to produce the problem on the final demo. You can try a quick fix in your case and prefix the Image class with System.Web.UI.WebControls namespace as below

Code: Select all

System.Web.UI.WebControls.Image logo = new System.Web.UI.WebControls.Image();

num5labonte
Ensign (ENS)
Ensign (ENS)
Posts: 19
Joined: Wed Nov 19, 2008 6:24 am

Re: Logos and Images error

Post by num5labonte » Wed Nov 19, 2008 7:17 am

mazhar wrote:I am unable to produce the problem on the final demo. You can try a quick fix in your case and prefix the Image class with System.Web.UI.WebControls namespace as below

Code: Select all

System.Web.UI.WebControls.Image logo = new System.Web.UI.WebControls.Image();
Thanks mazhar. That did the trick.

Post Reply