G
Guest
Today after recompiling a referenced .dll in one of my compact framework
projects I began getting a 'System.Drawing.Icon NotSupportedException' on
this line in my mainform.designer.cs file...
this.imageListStatus.Images.Add(((System.Drawing.Icon)(resources.GetObject("resource"))));
I have found two posts that talk about this exact issue with CF projects
with no solution so far except to remake a new project and build all the UI
components again and paste the code. This will take me days, so Im seeing if
anyone has a shorter solution. At this point, I really can't see that
recreating it will actually do any good anyway, see below about my restore.
So, some background. VS2005 (not converted from 2003). PocketPC 2003
Emulator. All references are to 2.0 assemblies. I removed and recreated all
references. I have hard reset my EMU, rebooted my dev computer and still get
the error. I even tried restoring my project from last night so I could just
apply my changes for the day and I *still* get the exception on a project
that worked just fine yesterday. Something must be hosed with my dev pc???
Some things I noticed...
1. When deploying, It takes considerably longer than it used to. I get
messages such as 'deploying
c:\windows\GAC_MSIL\System.Drawing.2.0.0.0_b757475636362727\System.Drawing.dll'. Im pretty sure that I didn't have the long ambiguous file path previously.
2. If I comment out the image list resource loads, I get an error on the
app.icon resource load... this.Icon =
((System.Drawing.Icon)(resources.GetObject("$this.Icon"))); ... so, something
is somehow messed up with the project resources. I restored my .resx file
from last night as well, no change. Examining the .resx file, everything
looks normal with the resource names above showing just fine.
Any thoughts????? Help!!!
thank you.
projects I began getting a 'System.Drawing.Icon NotSupportedException' on
this line in my mainform.designer.cs file...
this.imageListStatus.Images.Add(((System.Drawing.Icon)(resources.GetObject("resource"))));
I have found two posts that talk about this exact issue with CF projects
with no solution so far except to remake a new project and build all the UI
components again and paste the code. This will take me days, so Im seeing if
anyone has a shorter solution. At this point, I really can't see that
recreating it will actually do any good anyway, see below about my restore.
So, some background. VS2005 (not converted from 2003). PocketPC 2003
Emulator. All references are to 2.0 assemblies. I removed and recreated all
references. I have hard reset my EMU, rebooted my dev computer and still get
the error. I even tried restoring my project from last night so I could just
apply my changes for the day and I *still* get the exception on a project
that worked just fine yesterday. Something must be hosed with my dev pc???
Some things I noticed...
1. When deploying, It takes considerably longer than it used to. I get
messages such as 'deploying
c:\windows\GAC_MSIL\System.Drawing.2.0.0.0_b757475636362727\System.Drawing.dll'. Im pretty sure that I didn't have the long ambiguous file path previously.
2. If I comment out the image list resource loads, I get an error on the
app.icon resource load... this.Icon =
((System.Drawing.Icon)(resources.GetObject("$this.Icon"))); ... so, something
is somehow messed up with the project resources. I restored my .resx file
from last night as well, no change. Examining the .resx file, everything
looks normal with the resource names above showing just fine.
Any thoughts????? Help!!!
thank you.