Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
Home
Discussion Groups
End Users
Pocket PCActiveSyncMultimediaEBooksWirelessSmartPhones
Developers
Windows MobileSmartPhonesWinCE ProgrammingVB for WinCEVC++ for WinCEPlatform BuilderTest Tools
PocketPC DirectoryFree SoftwareWeb Resources
Related Topics
PalmMobile PhonesMore Topics ...

Pocket PC Forum / Developers / WinCE Programming / August 2008

Tip: Looking for answers? Try searching our database.

How to debug managed app with Visual Studio 2005

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
SA - 23 Jul 2008 17:55 GMT
I have a target device with Windows CE 5 and I'm able to connect
to the device via ActiveSync. In Visual Studio 2005 I installed
the SDK and created a new C# Smart Device Project. The sample app
is correctly built, deployed and run on the device (F5 key) but
the break points are never hit ("The specified module has not
been loaded"). I already set the registry key:

[HKEY_LOCAL_MACHINE\Software\Microsoft\.NETCompactFramework\Managed
Debugger]
  "AttachEnabled"=dword:1

but it didn't work.
I also tried to run the app via CTRL+F5 and then to "Attach to
Process...",
but it didn't work too.
Can you give me some hint?
MSDN library didn't help me a lot...
SA
Paul G. Tobey [eMVP] - 23 Jul 2008 18:04 GMT
Is it a DEBUG build of the application?  I don't think I've ever seen
that...

Paul T.

>I have a target device with Windows CE 5 and I'm able to connect
> to the device via ActiveSync. In Visual Studio 2005 I installed
[quoted text clipped - 14 lines]
> MSDN library didn't help me a lot...
> SA
SA - 23 Jul 2008 19:01 GMT
>Is it a DEBUG build of the application?  I don't think I've ever seen
>that...

Yes, it is...
SA
Paul G. Tobey [eMVP] - 23 Jul 2008 19:20 GMT
I'd start a new, simple project, just the wizard-generated program and add a
breakpoint to the form constructor.  Does that work?

Paul T.

>>Is it a DEBUG build of the application?  I don't think I've ever seen
>>that...
>
> Yes, it is...
> SA
Paul G. Tobey [eMVP] - 23 Jul 2008 19:26 GMT
I should also ask, what version of .NET CF is on the target device?  VS2005
won't be able to debug a program that's running in the .NET CF 3.5 run-time;
it will only work if the .NET CF 1.0 or 2.0 run-time is on the device.

Paul T.

> I'd start a new, simple project, just the wizard-generated program and add
> a breakpoint to the form constructor.  Does that work?
[quoted text clipped - 6 lines]
>> Yes, it is...
>> SA
SA - 24 Jul 2008 11:00 GMT
>I should also ask, what version of .NET CF is on the target device?  VS2005
>won't be able to debug a program that's running in the .NET CF 3.5 run-time;
>it will only work if the .NET CF 1.0 or 2.0 run-time is on the device.
>Paul T.

Only .NET CF 2.0 is included in the runtime image.
I have the strong feeling it is a problem of my development
environment...
SA
SA - 24 Jul 2008 10:57 GMT
>I'd start a new, simple project, just the wizard-generated program and add a
>breakpoint to the form constructor.  Does that work?
>Paul T.

That's exactly what I did.
SA
Paul G. Tobey [eMVP] - 24 Jul 2008 16:16 GMT
Yes, that sounds as though "something" is broken in the install.  You need
to take care, when you have several IDEs installed on the same system, for
example, to install them in order from oldest to newest.  If you install
VS2008 first, then VS2005, or, in your case, maybe VS2005, then VS.NET2003
or something, you can screw things up.  You also need to be sure that you
aren't firewalling VS2005 away from the network.  If it's Windows Firewall,
just turn it off for a quick test...

Paul T.

> >I'd start a new, simple project, just the wizard-generated program and
> >add a
[quoted text clipped - 3 lines]
> That's exactly what I did.
> SA
SA - 25 Jul 2008 07:40 GMT
>Yes, that sounds as though "something" is broken in the install.  You need
>to take care, when you have several IDEs installed on the same system, for
>example, to install them in order from oldest to newest.  If you install
>VS2008 first, then VS2005, or, in your case, maybe VS2005, then VS.NET2003
>or something, you can screw things up.  

I have only VS2005 installed

>You also need to be sure that you
>aren't firewalling VS2005 away from the network.  If it's Windows Firewall,
>just turn it off for a quick test...

Windows Firewall is configured to allow ActiveSync connections...

I will try to reinstall the operating system from scratch, with all
QFES and patches... I thank you for your help.
SA
Paul G. Tobey [eMVP] - 28 Jul 2008 16:48 GMT
Turn the firewall off.  It's easy and a quick test can tell you a lot...
Yikes!  Don't reinstall the OS!  Uninstall and reinstall VS2005, if
anything.

Paul T.

>>Yes, that sounds as though "something" is broken in the install.  You need
>>to take care, when you have several IDEs installed on the same system, for
[quoted text clipped - 14 lines]
> QFES and patches... I thank you for your help.
> SA
Andy - 20 Aug 2008 13:23 GMT
Hello,

i´ve exactly the same problem.
The reason is that WinCE uses .Net CF 2.0 SP1, but VS2005 is installed only
with .Net CF 2.0.
There is a patch from MS which installs the .Net CF 2.0 SP1 on your
development  pc:

http://www.microsoft.com/downloads/details.aspx?FamilyID=7befd787-9b5e-40c6-8d10
-d3a43e5856b2&displaylang=en


Regards,
Andy

> I have a target device with Windows CE 5 and I'm able to connect
> to the device via ActiveSync. In Visual Studio 2005 I installed
[quoted text clipped - 14 lines]
> MSDN library didn't help me a lot...
> SA
SA - 21 Aug 2008 08:18 GMT
>i´ve exactly the same problem.
>The reason is that WinCE uses .Net CF 2.0 SP1, but VS2005 is installed only
>with .Net CF 2.0.
>There is a patch from MS which installs the .Net CF 2.0 SP1 on your
>development  pc:
>http://www.microsoft.com/downloads/details.aspx?FamilyID=7befd787-9b5e-40c6-8d10
-d3a43e5856b2&displaylang=en

Thanks for the hint.
SA
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.