Click here to Skip to main content
15,884,298 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
'Image' is an ambiguous reference between 'System.Web.UI.WebControls.Image' and 'System.Drawing.Image
Posted

1 solution

You have that error because you are using two different namespaces.

For example:
Probably something like that:
C#
System.Web.UI.WebControls.Image img = new System.Drawing.Image();

You should reference the same namespaces such as:
C#
System.Drawing.Image img = new System.Drawing.Image();

-OR-
C#
System.Web.UI.WebControls.Image img = new System.Web.UI.WebControls.Image();


Good luck,
OI
 
Share this answer
 
Comments
Amirsalgar1 7-Mar-13 7:09am    
oya thanks ;)

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900