This is a multi-part message in MIME format.

------=_NextPart_000_000A_01C85DB3.D7C8F660
Content-Type: text/plain;
charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable

I've got an app in VS2005 that insists on running on the Cf 2.0 RTM =
(v2.0.5238) unless that is the CAB copied over in dubug run I get errors =
and the app will not run.
A first chance exception of type 'System.IO.FileNotFoundException' =
occurred in mscorlib.dll

I've installed CF2SP2 on the device and it's redistributables are at=20

C:\Program =
Files\Microsoft.NET\SDK\CompactFramework\v2.0\WindowsCE\wce500\armv4i\NET=
CFv2.wm.armv4i.cab

this cab file is dated 2/14/2007 and 2,195KB.

I'm really confused at this point - HAd been working happily in VS2008 =
with CF3.5 and had to go back to my VS2005 project but now debug doesn't =
work. If I just deploy and copy over the CF2.0 RTM and install manually =
then start the app on the device it runs great.=20

How do I tell VS2005 to use a specific version of CF2 during =
construction and debug mode run to device from IDE????

Any help greatly appreciated!!

Harry

PS I'm using a few PInvokes but they ought to work in the latest CF =
versions right?



------=_NextPart_000_000A_01C85DB3.D7C8F660
Content-Type: text/html;
charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META http-equiv=3DContent-Type content=3D"text/html; =
charset=3Diso-8859-1">
<META content=3D"MSHTML 6.00.6000.16587" name=3DGENERATOR>
<STYLE></STYLE>
</HEAD>
<BODY>
<DIV><FONT face=3DArial size=3D2>I've got an app in VS2005 that insists =
on running=20
on the Cf 2.0 RTM (v2.0.5238) unless that is the CAB copied over in =
dubug run I=20
get errors and the app will not run.</FONT></DIV>
<DIV>
<P><FONT face=3DArial size=3D2>A first chance exception of type=20
'System.IO.FileNotFoundException' occurred in mscorlib.dll</FONT></P>
<P><FONT face=3DArial size=3D2>I've installed CF2SP2 on the device and =
it's=20
redistributables are at </FONT></P>
<P><FONT face=3DArial size=3D2>C:\Program=20
Files\Microsoft.NET\SDK\CompactFramework\v2.0\WindowsCE\wce500\armv4i\NET=
CFv2.wm.armv4i.cab</FONT></P>
<P><FONT face=3DArial size=3D2>this cab file is dated 2/14/2007 =
and&nbsp;=20
2,195KB.</FONT></P><FONT face=3DArial size=3D2>
<P><FONT face=3DArial size=3D2>I'm really confused at this point - HAd =
been working=20
happily in VS2008 with CF3.5 and had to go back to my VS2005 project but =
now=20
debug doesn't work.&nbsp; If I just deploy and copy over the CF2.0 RTM =
and=20
install manually then start the app on the device it runs great.=20
</FONT></P></FONT>
<P><FONT face=3DArial><STRONG>How do I tell VS2005 to use a specific =
version of=20
CF2 during construction and debug mode run to device from=20
IDE????</STRONG></FONT></P>
<P><FONT face=3DArial size=3D2>Any help greatly appreciated!!</FONT></P>
<P><FONT face=3DArial size=3D2>Harry</FONT></P>
<P><FONT face=3DArial size=3D2>PS I'm using a few PInvokes but they =
ought to work in=20
the latest CF versions right?</FONT></P>
<P><FONT face=3DArial size=3D2></FONT>&nbsp;</P></DIV></BODY></HTML>

------=_NextPart_000_000A_01C85DB3.D7C8F660--

Re: VS2005 CF2 SP2 setup by Jayesh

Jayesh
Wed Jan 23 22:16:43 CST 2008

On Jan 23, 9:33 am, "Harry Simpson" <harry.simp...@phgt.net> wrote:
> I've got an app in VS2005 that insists on running on the Cf 2.0 RTM (v2.0.5238) unless that is the CAB copied over in dubug run I get errors and the app will not run.
> A first chance exception of type 'System.IO.FileNotFoundException' occurred in mscorlib.dll
>
> I've installed CF2SP2 on the device and it's redistributables are at
>
> C:\Program Files\Microsoft.NET\SDK\CompactFramework\v2.0\WindowsCE\wce500\armv4i\NETCFv2.wm.armv4i.cab
>
> this cab file is dated 2/14/2007 and 2,195KB.
>
> I'm really confused at this point - HAd been working happily in VS2008 with CF3.5 and had to go back to my VS2005 project but now debug doesn't work. If I just deploy and copy over the CF2.0 RTM and install manually then start the app on the device it runs great.
>
> How do I tell VS2005 to use a specific version of CF2 during construction and debug mode run to device from IDE????
>
> Any help greatly appreciated!!
>
> Harry
>
> PS I'm using a few PInvokes but they ought to work in the latest CF versions right?

Hi,
Two things you can do in this matter. These may not be exact solution
to the problem but you can consider it as workaround.
1) You can tell VS2005 not to deploy CF2.0 every time you start the
application in debug mode. Project Properties -> Device Tab -> uncheck
option Deploy Latest version of .NET CF. It won't deploy the CF2.0.

2) You can build your project and copy the dlls to the device, start
the application manually on the device and attach the process to
VS2005 debugger.
here is the complete explanation about how to attach managed process
on devices.
http://msdn2.microsoft.com/en-us/library/b1ksfbk7(VS.80).aspx
Go to : Attach to an Already Running Managed Process

Thanks,
Jayesh Modha

Re: VS2005 CF2 SP2 setup by Harry

Harry
Thu Jan 24 11:17:00 CST 2008

Thanks Jayesh,

I've actually dug a deeper hole to fall into.....

I flashed the ROM with the CF2 SP2 and now I can't get my original app to
finish deploying at all without an error and the device will not let me copy
over and install the the CF2 RTM version since it would require removing the
existing version according to the device prompts. So I'm gonna have to give
MS a shout to see how I can explicitly run the CF2 SP2 from debug mode for
this project.

Thanks
Harry

"Jayesh" <jayesh.modha@gmail.com> wrote in message
news:3c5c8515-2a1e-4443-9b4e-3b322a5b61bd@u10g2000prn.googlegroups.com...
> On Jan 23, 9:33 am, "Harry Simpson" <harry.simp...@phgt.net> wrote:
>> I've got an app in VS2005 that insists on running on the Cf 2.0 RTM
>> (v2.0.5238) unless that is the CAB copied over in dubug run I get errors
>> and the app will not run.
>> A first chance exception of type 'System.IO.FileNotFoundException'
>> occurred in mscorlib.dll
>>
>> I've installed CF2SP2 on the device and it's redistributables are at
>>
>> C:\Program
>> Files\Microsoft.NET\SDK\CompactFramework\v2.0\WindowsCE\wce500\armv4i\NETCFv2.wm.armv4i.cab
>>
>> this cab file is dated 2/14/2007 and 2,195KB.
>>
>> I'm really confused at this point - HAd been working happily in VS2008
>> with CF3.5 and had to go back to my VS2005 project but now debug doesn't
>> work. If I just deploy and copy over the CF2.0 RTM and install manually
>> then start the app on the device it runs great.
>>
>> How do I tell VS2005 to use a specific version of CF2 during construction
>> and debug mode run to device from IDE????
>>
>> Any help greatly appreciated!!
>>
>> Harry
>>
>> PS I'm using a few PInvokes but they ought to work in the latest CF
>> versions right?
>
> Hi,
> Two things you can do in this matter. These may not be exact solution
> to the problem but you can consider it as workaround.
> 1) You can tell VS2005 not to deploy CF2.0 every time you start the
> application in debug mode. Project Properties -> Device Tab -> uncheck
> option Deploy Latest version of .NET CF. It won't deploy the CF2.0.
>
> 2) You can build your project and copy the dlls to the device, start
> the application manually on the device and attach the process to
> VS2005 debugger.
> here is the complete explanation about how to attach managed process
> on devices.
> http://msdn2.microsoft.com/en-us/library/b1ksfbk7(VS.80).aspx
> Go to : Attach to an Already Running Managed Process
>
> Thanks,
> Jayesh Modha