 |
|
|
|
| Author |
Message |
Andy Baker
Joined: 08 Aug 2007 Posts: 23
|
Posted: Wed Feb 06, 2008 7:53 pm Post subject: No Preferred List Found |
|
|
I am using the OpenNetCF 2.1 library when with a VB.NET 2005 application to
connect my CE device to a wireless printer. Occasionally when connecting, I
get the error messages AdapterException in SetWirelessSettingsEx - 'No
Preferred List Found' My code uses SetWirelessSettingsEx to set up the
connection, then BindAdapter. It has recently been upgraded from VB.NET 2003
/ OpenNetCF 1.4, and the connecting process is much more reliable as a
result, but this error message is one that I haven't seen before. What could
be causing this - as far as I know, there is a preferred list, and I was
under the impression that SetWirelessSettingsEx would add the device to the
preferred list if it was not already in it. Thanks in advance.
Andy Baker
Archived from group: microsoft>public>dotnet>framework>compactframework |
|
| Back to top |
|
 |
Paul G. Tobey [eMVP]
Joined: 08 Aug 2007 Posts: 185
|
Posted: Wed Feb 06, 2008 1:12 pm Post subject: Re: No Preferred List Found |
|
|
I think you're going to have to trap the exception in the debugger and see
where it came from. Set the debugger to stop on all exceptions and I think
it should show you the line in the SDF where it's thrown.
Paul T.
"Andy Baker" wrote in message @corp.supernews.com...
>I am using the OpenNetCF 2.1 library when with a VB.NET 2005 application to
>connect my CE device to a wireless printer. Occasionally when connecting, I
>get the error messages AdapterException in SetWirelessSettingsEx - 'No
>Preferred List Found' My code uses SetWirelessSettingsEx to set up the
>connection, then BindAdapter. It has recently been upgraded from VB.NET
>2003 / OpenNetCF 1.4, and the connecting process is much more reliable as a
>result, but this error message is one that I haven't seen before. What
>could be causing this - as far as I know, there is a preferred list, and I
>was under the impression that SetWirelessSettingsEx would add the device to
>the preferred list if it was not already in it. Thanks in advance.
>
> Andy Baker
> |
|
| Back to top |
|
 |
Andy Baker
Joined: 08 Aug 2007 Posts: 23
|
Posted: Thu Feb 07, 2008 8:31 pm Post subject: Re: No Preferred List Found |
|
|
I have today managed to get the problem on my system, and when I came out of
my application and looked in Network connections in CE, the network card was
no longer visible, although the card was enabled. This explains the 'No
preferred list' error, as there is not a network card, but what would cause
it to disappear from the connections list. Disabling and re-enabling the CF
slot fixed the problem, but I would like to know what happened to cause it
in the first place.
Andy Baker
"Paul G. Tobey [eMVP]"
com> wrote in message news:%23UF6%23KNaIHA.4684@TK2MSFTNGP06.phx.gbl...
>I think you're going to have to trap the exception in the debugger and see
>where it came from. Set the debugger to stop on all exceptions and I think
>it should show you the line in the SDF where it's thrown.
>
> Paul T.
>
> "Andy Baker" wrote in message
> @corp.supernews.com...
>>I am using the OpenNetCF 2.1 library when with a VB.NET 2005 application
>>to connect my CE device to a wireless printer. Occasionally when
>>connecting, I get the error messages AdapterException in
>>SetWirelessSettingsEx - 'No Preferred List Found' My code uses
>>SetWirelessSettingsEx to set up the connection, then BindAdapter. It has
>>recently been upgraded from VB.NET 2003 / OpenNetCF 1.4, and the
>>connecting process is much more reliable as a result, but this error
>>message is one that I haven't seen before. What could be causing this - as
>>far as I know, there is a preferred list, and I was under the impression
>>that SetWirelessSettingsEx would add the device to the preferred list if
>>it was not already in it. Thanks in advance.
>>
>> Andy Baker
>>
>
> |
|
| Back to top |
|
 |
Paul G. Tobey [eMVP]
Joined: 08 Aug 2007 Posts: 185
|
Posted: Thu Feb 07, 2008 1:39 pm Post subject: Re: No Preferred List Found |
|
|
Could be that you made a registry change to the driver entries for the card
and then unbound or rebound the adapter. Could be that there was an
exception in the driver and so the device manager no longer had it loaded.
Those are the only two I can think of...
Paul T.
"Andy Baker" wrote in message @corp.supernews.com...
>I have today managed to get the problem on my system, and when I came out
>of my application and looked in Network connections in CE, the network card
>was no longer visible, although the card was enabled. This explains the 'No
>preferred list' error, as there is not a network card, but what would cause
>it to disappear from the connections list. Disabling and re-enabling the CF
>slot fixed the problem, but I would like to know what happened to cause it
>in the first place.
>
> Andy Baker
>
> "Paul G. Tobey [eMVP]"
> com> wrote in message news:%23UF6%23KNaIHA.4684@TK2MSFTNGP06.phx.gbl...
>>I think you're going to have to trap the exception in the debugger and see
>>where it came from. Set the debugger to stop on all exceptions and I
>>think it should show you the line in the SDF where it's thrown.
>>
>> Paul T.
>>
>> "Andy Baker" wrote in message
>> @corp.supernews.com...
>>>I am using the OpenNetCF 2.1 library when with a VB.NET 2005 application
>>>to connect my CE device to a wireless printer. Occasionally when
>>>connecting, I get the error messages AdapterException in
>>>SetWirelessSettingsEx - 'No Preferred List Found' My code uses
>>>SetWirelessSettingsEx to set up the connection, then BindAdapter. It has
>>>recently been upgraded from VB.NET 2003 / OpenNetCF 1.4, and the
>>>connecting process is much more reliable as a result, but this error
>>>message is one that I haven't seen before. What could be causing this -
>>>as far as I know, there is a preferred list, and I was under the
>>>impression that SetWirelessSettingsEx would add the device to the
>>>preferred list if it was not already in it. Thanks in advance.
>>>
>>> Andy Baker
>>>
>>
>>
>
> |
|
| Back to top |
|
 |
Andy Baker
Joined: 08 Aug 2007 Posts: 23
|
Posted: Tue Feb 12, 2008 7:33 pm Post subject: Re: No Preferred List Found |
|
|
I think I have found the problem. We had been getting problems reconnecting
the printer once the user had tried to print when out of range. To try and
force a reconnection, I had called the OpenNetCF UnbindAdapter() and
BindAdapter() in succession. This was ok with VS2003 and OpenNetCF 1.4, but
with VS2005 and 2.1 the UnbindAdapter is causing the network card to
'disappear'. Is this supposed to happen, or is it a driver problem as you
suggested previously? However, taking the call to UnbindAdapter out doesn't
seem to affect the reconnection anyway!
On another (related) topic, we are sometimes getting problems when
switching WiFi connections between a printer (ad-hoc) and LAN
(infrastructure), that require the device to reboot before it will connect.
Our device supplier says that ad-hoc mode is unreliable and we shouldn't be
using it, and has suggested that I install a battery powered WiFi access
point in a vehicle and use infrastructure for the printer connection as
well. This seems to me be alot of cost/effort/complication - and we only get
the problem with his devices/WiFi cards. Is what he is saying true, or is he
just trying to fob me off with something that he knows I won't be able to do
quickly? Thanks for all your help.
Andy Baker
"Paul G. Tobey [eMVP]"
com> wrote in message %23ZaIHA.3756@TK2MSFTNGP04.phx.gbl...
> Could be that you made a registry change to the driver entries for the
> card and then unbound or rebound the adapter. Could be that there was an
> exception in the driver and so the device manager no longer had it loaded.
> Those are the only two I can think of...
>
> Paul T.
>
> "Andy Baker" wrote in message
> @corp.supernews.com...
>>I have today managed to get the problem on my system, and when I came out
>>of my application and looked in Network connections in CE, the network
>>card was no longer visible, although the card was enabled. This explains
>>the 'No preferred list' error, as there is not a network card, but what
>>would cause it to disappear from the connections list. Disabling and
>>re-enabling the CF slot fixed the problem, but I would like to know what
>>happened to cause it in the first place.
>>
>> Andy Baker
>>
>> "Paul G. Tobey [eMVP]"
>> DOT com> wrote in message
>> news:%23UF6%23KNaIHA.4684@TK2MSFTNGP06.phx.gbl...
>>>I think you're going to have to trap the exception in the debugger and
>>>see where it came from. Set the debugger to stop on all exceptions and I
>>>think it should show you the line in the SDF where it's thrown.
>>>
>>> Paul T.
>>>
>>> "Andy Baker" wrote in message
>>> @corp.supernews.com...
>>>>I am using the OpenNetCF 2.1 library when with a VB.NET 2005 application
>>>>to connect my CE device to a wireless printer. Occasionally when
>>>>connecting, I get the error messages AdapterException in
>>>>SetWirelessSettingsEx - 'No Preferred List Found' My code uses
>>>>SetWirelessSettingsEx to set up the connection, then BindAdapter. It has
>>>>recently been upgraded from VB.NET 2003 / OpenNetCF 1.4, and the
>>>>connecting process is much more reliable as a result, but this error
>>>>message is one that I haven't seen before. What could be causing this -
>>>>as far as I know, there is a preferred list, and I was under the
>>>>impression that SetWirelessSettingsEx would add the device to the
>>>>preferred list if it was not already in it. Thanks in advance.
>>>>
>>>> Andy Baker
>>>>
>>>
>>>
>>
>>
>
> |
|
| Back to top |
|
 |
Paul G. Tobey [eMVP]
Joined: 08 Aug 2007 Posts: 185
|
Posted: Tue Feb 12, 2008 1:48 pm Post subject: Re: No Preferred List Found |
|
|
Hmmm. It's possible, I guess, that the unbinding is broken in one or the
other. Really, what you want is RebindAdapter(), though. You can't just
call unbind, then bind, because the unbinding doesn't complete
synchronously, so you may be calling bind before it's done unbinding and who
knows what will happen then.
I've never used ad hoc for anything but testing the occasional request, like
yours, for device-to-device direct connection. I don't think that most
people ever use it. I can't think of any reason why it would be
less-reliable, unless there are just things that Windows CE itself doesn't
handle as well, perhaps because of the less-defined nature of 'when do I
connect', and 'to whom', etc. I can't figure out why his card/device would
be any more likely to see a problem with ad hoc than any other. All of the
frequencies are the same, etc. If you can localize the problem to just his
device, that seems like enough reason to either have him fix whatever is
going on or replace his devices.
Paul T.
"Andy Baker" wrote in message @corp.supernews.com...
>I think I have found the problem. We had been getting problems reconnecting
>the printer once the user had tried to print when out of range. To try and
>force a reconnection, I had called the OpenNetCF UnbindAdapter() and
>BindAdapter() in succession. This was ok with VS2003 and OpenNetCF 1.4, but
>with VS2005 and 2.1 the UnbindAdapter is causing the network card to
>'disappear'. Is this supposed to happen, or is it a driver problem as you
>suggested previously? However, taking the call to UnbindAdapter out doesn't
>seem to affect the reconnection anyway!
> On another (related) topic, we are sometimes getting problems when
> switching WiFi connections between a printer (ad-hoc) and LAN
> (infrastructure), that require the device to reboot before it will
> connect. Our device supplier says that ad-hoc mode is unreliable and we
> shouldn't be using it, and has suggested that I install a battery powered
> WiFi access point in a vehicle and use infrastructure for the printer
> connection as well. This seems to me be alot of cost/effort/complication -
> and we only get the problem with his devices/WiFi cards. Is what he is
> saying true, or is he just trying to fob me off with something that he
> knows I won't be able to do quickly? Thanks for all your help.
>
> Andy Baker
>
>
> "Paul G. Tobey [eMVP]"
> com> wrote in message %23ZaIHA.3756@TK2MSFTNGP04.phx.gbl...
>> Could be that you made a registry change to the driver entries for the
>> card and then unbound or rebound the adapter. Could be that there was an
>> exception in the driver and so the device manager no longer had it
>> loaded. Those are the only two I can think of...
>>
>> Paul T.
>>
>> "Andy Baker" wrote in message
>> @corp.supernews.com...
>>>I have today managed to get the problem on my system, and when I came out
>>>of my application and looked in Network connections in CE, the network
>>>card was no longer visible, although the card was enabled. This explains
>>>the 'No preferred list' error, as there is not a network card, but what
>>>would cause it to disappear from the connections list. Disabling and
>>>re-enabling the CF slot fixed the problem, but I would like to know what
>>>happened to cause it in the first place.
>>>
>>> Andy Baker
>>>
>>> "Paul G. Tobey [eMVP]"
>>> DOT com> wrote in message
>>> news:%23UF6%23KNaIHA.4684@TK2MSFTNGP06.phx.gbl...
>>>>I think you're going to have to trap the exception in the debugger and
>>>>see where it came from. Set the debugger to stop on all exceptions and
>>>>I think it should show you the line in the SDF where it's thrown.
>>>>
>>>> Paul T.
>>>>
>>>> "Andy Baker" wrote in message
>>>> @corp.supernews.com...
>>>>>I am using the OpenNetCF 2.1 library when with a VB.NET 2005
>>>>>application to connect my CE device to a wireless printer. Occasionally
>>>>>when connecting, I get the error messages AdapterException in
>>>>>SetWirelessSettingsEx - 'No Preferred List Found' My code uses
>>>>>SetWirelessSettingsEx to set up the connection, then BindAdapter. It
>>>>>has recently been upgraded from VB.NET 2003 / OpenNetCF 1.4, and the
>>>>>connecting process is much more reliable as a result, but this error
>>>>>message is one that I haven't seen before. What could be causing this -
>>>>>as far as I know, there is a preferred list, and I was under the
>>>>>impression that SetWirelessSettingsEx would add the device to the
>>>>>preferred list if it was not already in it. Thanks in advance.
>>>>>
>>>>> Andy Baker
>>>>>
>>>>
>>>>
>>>
>>>
>>
>>
>
>
|
|
| Back to top |
|
 |
|
|
| Related Topics: | System.Net.dll not found? I have installed SDK 1.1 and the redist then I run : sdkvars.bat to set up the the environment. I copy a little program just try , this program is trying to connect to Yahoo mail. when I compile using csc pop.cs ( accord
WbemDecoupledBasicEventRegistrar not found for Win2K SP4 In Win2k SP4, for is returning Class Not Found error. Though I had Platform SDK completely installed, I could not find the CLSID corresponding to the interface in the registry. Following is the code snippe
Requested Service Not Found...HOW?!?!?!?!?!? Alright, this one is a doosy....I finally got my CAO to work in IIS on an outside server...all I did was put it on a server that wasn't a domain controller, and it seems to work..I don't know (and I even followed the instructions about settings up an ASP_
Requested Service not found Hi all I have a .NET 1.1 app like this 01: Virtual folder name = 02: The following class...... namespace { public class : } 03: The
Requested Service not Found I have a single call SAO object registered this way: |
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum
|
Powered by phpBB © 2001, 2005 phpBB Group
|