Extension to Visual Studio 2003 to develop on WM 2005 ?

F

Frederic

Hi,

I am trying to use Visual Studio 2003 to develop a .Net application on
a Windows Mobile 2005 PDAPhone (not a Smartphone, a PDAPhone)

When I run the app in debug mode,
- the files are transferred to the device
- the wait cursor appears on the device
- the Output window says "Launching application" (or something similar)
- BUT nothing is launched AND Visual Studio goes back to [design] mode
instead of [run] (in the title bar).
- (However, I can run the app on the device by tapping it from the
Explorer, but VS doesn't see it and I can't debug it)

The same project behaves perfectly when I connect to my old PocketPC
2002 device.

I have tried with both ActiveSync 4.0 & 4.1.

Is it possible to debug apps on WM 2005 with Visual Studio 2005?
Do I need to download some plug-in/extension to make Visual Studio 2003
work?

I would like my app to run on both WM 2005, WM 2003, and also if
possible PPC 2002.

Thanks for your help,
Frédéric
 
I

Ilya Tumanov [MS]

No, you don't need anything, it just works.



There are some issues though:



1. You will be prompted by WM 5.0 device several times to confirm you want
to run unsigned application. Answer yes to all of them.

2. VS 2003 would be unable to recognize the device and will "install"
separate assemblies instead of CAB file. It will run OK as WM 5.0 has NETCF
V1 SP3 in ROM.

3. If you're using SQL CE, it needs to be installed manually as VS 2003
won't be able to pick the correct CAB as device is unrecognized.


Best regards,


Ilya

This posting is provided "AS IS" with no warranties, and confers no rights.

*** Want to find answers instantly? Here's how... ***

1. Go to
http://groups-beta.google.com/group/microsoft.public.dotnet.framework.compactframework?hl=en
2. Type your question in the text box near "Search this group" button.
3. Hit "Search this group" button.
4. Read answer(s).

Hi,

I am trying to use Visual Studio 2003 to develop a .Net application on
a Windows Mobile 2005 PDAPhone (not a Smartphone, a PDAPhone)

When I run the app in debug mode,
- the files are transferred to the device
- the wait cursor appears on the device
- the Output window says "Launching application" (or something similar)
- BUT nothing is launched AND Visual Studio goes back to [design] mode
instead of [run] (in the title bar).
- (However, I can run the app on the device by tapping it from the
Explorer, but VS doesn't see it and I can't debug it)

The same project behaves perfectly when I connect to my old PocketPC
2002 device.

I have tried with both ActiveSync 4.0 & 4.1.

Is it possible to debug apps on WM 2005 with Visual Studio 2005?
Do I need to download some plug-in/extension to make Visual Studio 2003
work?

I would like my app to run on both WM 2005, WM 2003, and also if
possible PPC 2002.

Thanks for your help,
Frédéric
 
F

Frederic

Thanks for your prompt answer. Regarding your 3 remarks:

1. You will be prompted by WM 5.0 device several times to confirm you
want
to run unsigned application. Answer yes to all of them.
--> You are right,.I am prompted, and I answer yes all time

2. VS 2003 would be unable to recognize the device and will "install"
separate assemblies instead of CAB file. It will run OK as WM 5.0 has
NETCF
V1 SP3 in ROM.
--> yes, it is installing several dlls.

3. If you're using SQL CE, it needs to be installed manually as VS 2003

won't be able to pick the correct CAB as device is unrecognized.
--> I have the problem even with the code generated by the standard
Smart Device Application wizard.
The scenario to reproduce the problem on my environment is:

- connect the device (Qtek 9100) via USB, and wait that Active Sync has
connected and synchronized.
- create a new project of type "Smart Device Application"
- choose platform = PocketPC (rather than Smartphone) and project type
= windows application
- Once the Wizard has generated the code, I switch the deployment
device from Emulator to "Pocket PC Device".
- Press F5
- After having been prompted on the device to accept the exe
installation, Visual Studio produces the following output, and goes
back to [design] mode:

------ Build started: Project: SmartDeviceApplication1, Configuration:
Debug Pocket PC ------

Preparing resources...
Updating references...
Performing main compilation...

Build complete -- 0 errors, 0 warnings
Building satellite assemblies...
Visual Studio is ready to deploy SmartDeviceApplication1



------ Deploy started: Project: SmartDeviceApplication1, Configuration:
Debug Pocket PC ------

Connected to Pocket PC Device (Pocket PC) running on ARMV4T.
Copying files from
'c:\docs\devdotnet\SmartDeviceApplication1\bin\Debug' to '\Program
Files\SmartDeviceApplication1'
Copying SmartDeviceApplication1.exe
Copying files from 'E:\Programs\Visual Studio .NET
Professional\CompactFrameworkSDK\v1.0.5000\Windows CE\' to '\Program
Files\SmartDeviceApplication1'
Copying System.Windows.Forms.dll
Copying System.dll
Copying System.Data.dll
Copying MSCorLib.dll
Copying System.XML.dll
Copying System.Drawing.dll



---------------------- Done ----------------------

Build: 1 succeeded, 0 failed, 0 skipped
Deploy: 1 succeeded, 0 failed, 0 skipped


Launching Application


Nothing is run on the device (the list of running programs does not
show my app).
However, in the \Programs\SmartDeviceApplication1, I have the following
files:
MSCorLib
SmartDeviceApplication1
System.Data
System
System.Drawing
System.Windows.Forms
System.XML

All files but the .EXE are dated Sept 25 2002.

If I tap the SmartDeviceApplication1 file, it runs, but once again, it
is out of any connection with the V.S. debugger.

Would you have any suggestion to fix this and help me use the debugger?
Many thanks,
Frédéric
 
R

Rüdiger Kardel

Frederic,

I don't know if it is the same issue with 5.0 devices but:
is toolhelp.dll missing on the device?

Ruediger

Thanks for your prompt answer. Regarding your 3 remarks:

1. You will be prompted by WM 5.0 device several times to confirm you
want
to run unsigned application. Answer yes to all of them.
--> You are right,.I am prompted, and I answer yes all time

2. VS 2003 would be unable to recognize the device and will "install"
separate assemblies instead of CAB file. It will run OK as WM 5.0 has
NETCF
V1 SP3 in ROM.
--> yes, it is installing several dlls.

3. If you're using SQL CE, it needs to be installed manually as VS 2003

won't be able to pick the correct CAB as device is unrecognized.
--> I have the problem even with the code generated by the standard
Smart Device Application wizard.
The scenario to reproduce the problem on my environment is:

- connect the device (Qtek 9100) via USB, and wait that Active Sync has
connected and synchronized.
- create a new project of type "Smart Device Application"
- choose platform = PocketPC (rather than Smartphone) and project type
= windows application
- Once the Wizard has generated the code, I switch the deployment
device from Emulator to "Pocket PC Device".
- Press F5
- After having been prompted on the device to accept the exe
installation, Visual Studio produces the following output, and goes
back to [design] mode:

------ Build started: Project: SmartDeviceApplication1, Configuration:
Debug Pocket PC ------

Preparing resources...
Updating references...
Performing main compilation...

Build complete -- 0 errors, 0 warnings
Building satellite assemblies...
Visual Studio is ready to deploy SmartDeviceApplication1



------ Deploy started: Project: SmartDeviceApplication1, Configuration:
Debug Pocket PC ------

Connected to Pocket PC Device (Pocket PC) running on ARMV4T.
Copying files from
'c:\docs\devdotnet\SmartDeviceApplication1\bin\Debug' to '\Program
Files\SmartDeviceApplication1'
Copying SmartDeviceApplication1.exe
Copying files from 'E:\Programs\Visual Studio .NET
Professional\CompactFrameworkSDK\v1.0.5000\Windows CE\' to '\Program
Files\SmartDeviceApplication1'
Copying System.Windows.Forms.dll
Copying System.dll
Copying System.Data.dll
Copying MSCorLib.dll
Copying System.XML.dll
Copying System.Drawing.dll



---------------------- Done ----------------------

Build: 1 succeeded, 0 failed, 0 skipped
Deploy: 1 succeeded, 0 failed, 0 skipped


Launching Application


Nothing is run on the device (the list of running programs does not
show my app).
However, in the \Programs\SmartDeviceApplication1, I have the following
files:
MSCorLib
SmartDeviceApplication1
System.Data
System
System.Drawing
System.Windows.Forms
System.XML

All files but the .EXE are dated Sept 25 2002.

If I tap the SmartDeviceApplication1 file, it runs, but once again, it
is out of any connection with the V.S. debugger.

Would you have any suggestion to fix this and help me use the debugger?
Many thanks,
Frédéric
 
I

Ilya Tumanov [MS]

Can you debug on WM 2003 devices? Would application start without debugging
(Ctrl-F5)?
Also, please try this tool (see readme for details):
http://www.microsoft.com/downloads/...a6-2095-4086-b0cc-7c6c39b28762&displaylang=en

Best regards,

Ilya

This posting is provided "AS IS" with no warranties, and confers no rights.

*** Want to find answers instantly? Here's how... ***

1. Go to
http://groups-beta.google.com/group/microsoft.public.dotnet.framework.compactframework?hl=en
2. Type your question in the text box near "Search this group" button.
3. Hit "Search this group" button.
4. Read answer(s).

Thanks for your prompt answer. Regarding your 3 remarks:

1. You will be prompted by WM 5.0 device several times to confirm you
want
to run unsigned application. Answer yes to all of them.
--> You are right,.I am prompted, and I answer yes all time

2. VS 2003 would be unable to recognize the device and will "install"
separate assemblies instead of CAB file. It will run OK as WM 5.0 has
NETCF
V1 SP3 in ROM.
--> yes, it is installing several dlls.

3. If you're using SQL CE, it needs to be installed manually as VS 2003

won't be able to pick the correct CAB as device is unrecognized.
--> I have the problem even with the code generated by the standard
Smart Device Application wizard.
The scenario to reproduce the problem on my environment is:

- connect the device (Qtek 9100) via USB, and wait that Active Sync has
connected and synchronized.
- create a new project of type "Smart Device Application"
- choose platform = PocketPC (rather than Smartphone) and project type
= windows application
- Once the Wizard has generated the code, I switch the deployment
device from Emulator to "Pocket PC Device".
- Press F5
- After having been prompted on the device to accept the exe
installation, Visual Studio produces the following output, and goes
back to [design] mode:

------ Build started: Project: SmartDeviceApplication1, Configuration:
Debug Pocket PC ------

Preparing resources...
Updating references...
Performing main compilation...

Build complete -- 0 errors, 0 warnings
Building satellite assemblies...
Visual Studio is ready to deploy SmartDeviceApplication1



------ Deploy started: Project: SmartDeviceApplication1, Configuration:
Debug Pocket PC ------

Connected to Pocket PC Device (Pocket PC) running on ARMV4T.
Copying files from
'c:\docs\devdotnet\SmartDeviceApplication1\bin\Debug' to '\Program
Files\SmartDeviceApplication1'
Copying SmartDeviceApplication1.exe
Copying files from 'E:\Programs\Visual Studio .NET
Professional\CompactFrameworkSDK\v1.0.5000\Windows CE\' to '\Program
Files\SmartDeviceApplication1'
Copying System.Windows.Forms.dll
Copying System.dll
Copying System.Data.dll
Copying MSCorLib.dll
Copying System.XML.dll
Copying System.Drawing.dll



---------------------- Done ----------------------

Build: 1 succeeded, 0 failed, 0 skipped
Deploy: 1 succeeded, 0 failed, 0 skipped


Launching Application


Nothing is run on the device (the list of running programs does not
show my app).
However, in the \Programs\SmartDeviceApplication1, I have the following
files:
MSCorLib
SmartDeviceApplication1
System.Data
System
System.Drawing
System.Windows.Forms
System.XML

All files but the .EXE are dated Sept 25 2002.

If I tap the SmartDeviceApplication1 file, it runs, but once again, it
is out of any connection with the V.S. debugger.

Would you have any suggestion to fix this and help me use the debugger?
Many thanks,
Frédéric
 
F

Frederic

Thanks for your help, sorry for my late answer.

Yes, I could debug on WM 2003 the same application.

Strangly enough, I made your second test (running by Ctrl-F5), and it
worked.

Then I retried to run with F5, and it now works!!

I don't understand the reason why it now works, but anyway the result
is here => many thanks!!

Frédéric
(if you have an explanation, I am interested)
-----


Ilya Tumanov [MS] a écrit :
Can you debug on WM 2003 devices? Would application start without debugging
(Ctrl-F5)?
Also, please try this tool (see readme for details):
http://www.microsoft.com/downloads/...a6-2095-4086-b0cc-7c6c39b28762&displaylang=en

Best regards,

Ilya

This posting is provided "AS IS" with no warranties, and confers no rights.

*** Want to find answers instantly? Here's how... ***

1. Go to
http://groups-beta.google.com/group/microsoft.public.dotnet.framework.compactframework?hl=en
2. Type your question in the text box near "Search this group" button.
3. Hit "Search this group" button.
4. Read answer(s).

Thanks for your prompt answer. Regarding your 3 remarks:

1. You will be prompted by WM 5.0 device several times to confirm you
want
to run unsigned application. Answer yes to all of them.
--> You are right,.I am prompted, and I answer yes all time

2. VS 2003 would be unable to recognize the device and will "install"
separate assemblies instead of CAB file. It will run OK as WM 5.0 has
NETCF
V1 SP3 in ROM.
--> yes, it is installing several dlls.

3. If you're using SQL CE, it needs to be installed manually as VS 2003

won't be able to pick the correct CAB as device is unrecognized.
--> I have the problem even with the code generated by the standard
Smart Device Application wizard.
The scenario to reproduce the problem on my environment is:

- connect the device (Qtek 9100) via USB, and wait that Active Sync has
connected and synchronized.
- create a new project of type "Smart Device Application"
- choose platform = PocketPC (rather than Smartphone) and project type
= windows application
- Once the Wizard has generated the code, I switch the deployment
device from Emulator to "Pocket PC Device".
- Press F5
- After having been prompted on the device to accept the exe
installation, Visual Studio produces the following output, and goes
back to [design] mode:

------ Build started: Project: SmartDeviceApplication1, Configuration:
Debug Pocket PC ------

Preparing resources...
Updating references...
Performing main compilation...

Build complete -- 0 errors, 0 warnings
Building satellite assemblies...
Visual Studio is ready to deploy SmartDeviceApplication1



------ Deploy started: Project: SmartDeviceApplication1, Configuration:
Debug Pocket PC ------

Connected to Pocket PC Device (Pocket PC) running on ARMV4T.
Copying files from
'c:\docs\devdotnet\SmartDeviceApplication1\bin\Debug' to '\Program
Files\SmartDeviceApplication1'
Copying SmartDeviceApplication1.exe
Copying files from 'E:\Programs\Visual Studio .NET
Professional\CompactFrameworkSDK\v1.0.5000\Windows CE\' to '\Program
Files\SmartDeviceApplication1'
Copying System.Windows.Forms.dll
Copying System.dll
Copying System.Data.dll
Copying MSCorLib.dll
Copying System.XML.dll
Copying System.Drawing.dll



---------------------- Done ----------------------

Build: 1 succeeded, 0 failed, 0 skipped
Deploy: 1 succeeded, 0 failed, 0 skipped


Launching Application


Nothing is run on the device (the list of running programs does not
show my app).
However, in the \Programs\SmartDeviceApplication1, I have the following
files:
MSCorLib
SmartDeviceApplication1
System.Data
System
System.Drawing
System.Windows.Forms
System.XML

All files but the .EXE are dated Sept 25 2002.

If I tap the SmartDeviceApplication1 file, it runs, but once again, it
is out of any connection with the V.S. debugger.

Would you have any suggestion to fix this and help me use the debugger?
Many thanks,
Frédéric
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top