Help! Please. I am trying to convert a PPC 2003 app to WM5 and WM6.
Well, actually I started from scratch and created a WM6 project with
one form and one button just to get started. In the PPC 2003 project,
I can deploy to a PPC 2003 iPaq with no problem. But with my WM6
project when I try to deploy to the device (a T-Mobile Dash running WM
6.0 Standard) I get this error:

Error 1 The device security configuration disallowed the connection.
Ensure that you have the appropriate certificates on your device for
development. Review your SDK documentation for proper security
settings for connecting to this device. Device Connectivity Component

The deploy list offers only one device, Windows Mobile 6 Professional
Device. I don't know what a Professional Device is or if that is
different from a WM 6 Standard device, but that was all that was
offered ohter than emulators. I can deploy to the emulator, by the
way.

I tried a couple things (Authenticode signing and Provisioning the
certificate to the device) but nothing so far has helped. This is my
first time trying to develop a WM6 app and without anyone to help, I
am floundering. The device is a T-Mobile Dash running WM 6
Standard. So any help would be appreciated.

Re: Problem deploying to WM6 device using VS 2008 by silverfox

silverfox
Thu Jul 17 23:31:11 CDT 2008

Update: When I create a CAB file for this solution and copy it to the
device and click on it, it installs the application. I just can't
deploy it directly from VS 2008. Why not? I would really prefer not
to have to go through all the steps of creating a cab file, copying it
to the device, and executing it for every iteration of testing a
fairly large program. Is there a solution?


silverfox wrote:
> Help! Please. I am trying to convert a PPC 2003 app to WM5 and WM6.
> Well, actually I started from scratch and created a WM6 project with
> one form and one button just to get started. In the PPC 2003 project,
> I can deploy to a PPC 2003 iPaq with no problem. But with my WM6
> project when I try to deploy to the device (a T-Mobile Dash running WM
> 6.0 Standard) I get this error:
>
> Error 1 The device security configuration disallowed the connection.
> Ensure that you have the appropriate certificates on your device for
> development. Review your SDK documentation for proper security
> settings for connecting to this device. Device Connectivity Component
>
> The deploy list offers only one device, Windows Mobile 6 Professional
> Device. I don't know what a Professional Device is or if that is
> different from a WM 6 Standard device, but that was all that was
> offered ohter than emulators. I can deploy to the emulator, by the
> way.
>
> I tried a couple things (Authenticode signing and Provisioning the
> certificate to the device) but nothing so far has helped. This is my
> first time trying to develop a WM6 app and without anyone to help, I
> am floundering. The device is a T-Mobile Dash running WM 6
> Standard. So any help would be appreciated.

Re: Problem deploying to WM6 device using VS 2008 by Christopher

Christopher
Fri Jul 18 00:06:20 CDT 2008

Hi,

"silverfox" <dcfrench@gmail.com> wrote in message
news:635bccf7-dc48-450a-9091-652310bc98e7@j1g2000prb.googlegroups.com...
> Update: When I create a CAB file for this solution and copy it to the
> device and click on it, it installs the application. I just can't
> deploy it directly from VS 2008. Why not?

I am now not aware of an automated technique for doing this.

What I typically do is install my application via a CAB file once to get
required registry keys etc configured, and then set the individual projects
I am debugging or modifying to deploy over top of the files installed via
the CAB file.

If you view the project properties dialog for each project within your
solution you should be able to specify the folder where they are deployed
during a debugging session.

Hope this helps,
Christopher Fairbairn



Re: Problem deploying to WM6 device using VS 2008 by minhdanh

minhdanh
Fri Jul 18 09:20:16 CDT 2008

As indicated by the message, the device security configuration has prevented
the deployment from Visual Studio. Use the Device Security Managaer
available from VS2008 to change the security configuration to something less
strict, or for simplicity, you can also use a tool such as Application
Unlock, available from
http://blogs.conchango.com/stuartpreston/files/SDA_ApplicationUnlock.zip
which tell the phone to trust all applications.

"Christopher Fairbairn [MVP]" <christopher@christec.co.nz> wrote in message
news:eu375PJ6IHA.1592@TK2MSFTNGP04.phx.gbl...
> Hi,
>
> "silverfox" <dcfrench@gmail.com> wrote in message
> news:635bccf7-dc48-450a-9091-652310bc98e7@j1g2000prb.googlegroups.com...
>> Update: When I create a CAB file for this solution and copy it to the
>> device and click on it, it installs the application. I just can't
>> deploy it directly from VS 2008. Why not?
>
> I am now not aware of an automated technique for doing this.
>
> What I typically do is install my application via a CAB file once to get
> required registry keys etc configured, and then set the individual
> projects I am debugging or modifying to deploy over top of the files
> installed via the CAB file.
>
> If you view the project properties dialog for each project within your
> solution you should be able to specify the folder where they are deployed
> during a debugging session.
>
> Hope this helps,
> Christopher Fairbairn
>



Re: Problem deploying to WM6 device using VS 2008 by silverfox

silverfox
Sat Jul 19 16:31:59 CDT 2008

On Jul 18, 7:20 am, "minhdanh" <nore...@hotmail.com> wrote:
> As indicated by the message, the device security configuration has prevented
> the deployment from Visual Studio. Use the Device Security Managaer
> available from VS2008 to change the security configuration to something less
> strict, or for simplicity, you can also use a tool such as Application
> Unlock, available fromhttp://blogs.conchango.com/stuartpreston/files/SDA_ApplicationUnlock.zip
> which tell the phone to trust all applications.
>
> "Christopher Fairbairn [MVP]" <christop...@christec.co.nz> wrote in messagenews:eu375PJ6IHA.1592@TK2MSFTNGP04.phx.gbl...
>
> > Hi,
>
> > "silverfox" <dcfre...@gmail.com> wrote in message
> >news:635bccf7-dc48-450a-9091-652310bc98e7@j1g2000prb.googlegroups.com...
> >> Update: When I create a CAB file for this solution and copy it to the
> >> device and click on it, it installs the application. I just can't
> >> deploy it directly from VS 2008. Why not?
>
> > I am now not aware of an automated technique for doing this.
>
> > What I typically do is install my application via a CAB file once to get
> > required registry keys etc configured, and then set the individual
> > projects I am debugging or modifying to deploy over top of the files
> > installed via the CAB file.
>
> > If you view the project properties dialog for each project within your
> > solution you should be able to specify the folder where they are deployed
> > during a debugging session.
>
> > Hope this helps,
> > Christopher Fairbairn

The first suggestion, to use the Device Security Manager has a catch
22. First it says "You are not connected to a device currently.
After connecting to a device, you can add or edit the device's
security configuration and add or remove security certificates from
the device." , But when you click Connect to the device, you get a
message saying "Connection failed. The device security configuration
disallowe the connection. Ensure that you have the appropriate
certificates on your r device for development."

So, to set the security low, you have to already have the security set
low! Sigh!

I will next try the second suggestion, Application Unlock, and get
back to you.

Re: Problem deploying to WM6 device using VS 2008 by silverfox

silverfox
Sat Jul 19 16:37:03 CDT 2008

On Jul 17, 10:06 pm, "Christopher Fairbairn [MVP]"
<christop...@christec.co.nz> wrote:
> Hi,
>
> "silverfox" <dcfre...@gmail.com> wrote in message
>
> news:635bccf7-dc48-450a-9091-652310bc98e7@j1g2000prb.googlegroups.com...
>
> > Update: When I create a CAB file for this solution and copy it to the
> > device and click on it, it installs the application. I just can't
> > deploy it directly from VS 2008. Why not?


> I am now not aware of an automated technique for doing this.
>
> What I typically do is install my application via a CAB file once to get
> required registry keys etc configured, and then set the individual projects
> I am debugging or modifying to deploy over top of the files installed via
> the CAB file.
>
> If you view the project properties dialog for each project within your
> solution you should be able to specify the folder where they are deployed
> during a debugging session.
>
> Hope this helps,
> Christopher Fairbairn


Well, I don't seem to be able to deploy over anything!