PC Review Forums Newsgroups Microsoft DotNet Microsoft Dot NET Compact Framework Re: Unhandled Exceptions FileNotFoundException and RegistryException

Reply

Re: Unhandled Exceptions FileNotFoundException and RegistryException

 
Thread Tools Rate Thread
Old 04-12-2006, 09:32 PM   #1
Paul G. Tobey [eMVP]
Guest
 
Posts: n/a
Default Re: Unhandled Exceptions FileNotFoundException and RegistryException


And you *are* running on a WM5 device? Just because something is in the
framework doesn't mean that the OS supports it.

Paul T.

"Erick Gonzales" <erickgonzales@hotmail.com> wrote in message
news:OWcSEi%23FHHA.5104@TK2MSFTNGP03.phx.gbl...
> I´m using VS2005 and CF 2.0 to test some applications for mobile devices,
> but i´m receiving FileNotFoundException exception (see attach sshot-1)...
> i found weird that the exception is thrown from Dns class...
>
> also i´m receiving RegistryException when trying to read a SystemState
> property value....(see attach sshot-2) could be a permission problem???
>
> thanks!
>
> Erick Gonzales.
>
>
>



  Reply With Quote
Old 04-12-2006, 09:37 PM   #2
Erick Gonzales
Guest
 
Posts: n/a
Default Re: Unhandled Exceptions FileNotFoundException and RegistryException

yes Paul, running on a WM5 device "emulator"...

thanks

"Paul G. Tobey [eMVP]" <p space tobey no spam AT no instrument no spam DOT
com> wrote in message news:uOHsIu%23FHHA.960@TK2MSFTNGP04.phx.gbl...
> And you *are* running on a WM5 device? Just because something is in the
> framework doesn't mean that the OS supports it.
>
> Paul T.
>
> "Erick Gonzales" <erickgonzales@hotmail.com> wrote in message
> news:OWcSEi%23FHHA.5104@TK2MSFTNGP03.phx.gbl...
>> I´m using VS2005 and CF 2.0 to test some applications for mobile devices,
>> but i´m receiving FileNotFoundException exception (see attach
>> sshot-1)... i found weird that the exception is thrown from Dns class...
>>
>> also i´m receiving RegistryException when trying to read a SystemState
>> property value....(see attach sshot-2) could be a permission problem???
>>
>> thanks!
>>
>> Erick Gonzales.
>>
>>
>>

>
>



  Reply With Quote
Old 04-12-2006, 10:43 PM   #3
Paul G. Tobey [eMVP]
Guest
 
Posts: n/a
Default Re: Unhandled Exceptions FileNotFoundException and RegistryException

Are you actually seeing the debug break at that point or are you getting
something suitable returned from the property access? False, for example?
I think that the exception is generated as a matter of course, at least for
unpartnered devices which are not connected to ActiveSync. It seems to do
the right thing when cradled and connected to AS on my system.

Paul T.

"Erick Gonzales" <erickgonzales@hotmail.com> wrote in message
news:ediX7x%23FHHA.1252@TK2MSFTNGP02.phx.gbl...
> yes Paul, running on a WM5 device "emulator"...
>
> thanks
>
> "Paul G. Tobey [eMVP]" <p space tobey no spam AT no instrument no spam DOT
> com> wrote in message news:uOHsIu%23FHHA.960@TK2MSFTNGP04.phx.gbl...
>> And you *are* running on a WM5 device? Just because something is in the
>> framework doesn't mean that the OS supports it.
>>
>> Paul T.
>>
>> "Erick Gonzales" <erickgonzales@hotmail.com> wrote in message
>> news:OWcSEi%23FHHA.5104@TK2MSFTNGP03.phx.gbl...
>>> I´m using VS2005 and CF 2.0 to test some applications for mobile
>>> devices, but i´m receiving FileNotFoundException exception (see attach
>>> sshot-1)... i found weird that the exception is thrown from Dns class...
>>>
>>> also i´m receiving RegistryException when trying to read a SystemState
>>> property value....(see attach sshot-2) could be a permission problem???
>>>
>>> thanks!
>>>
>>> Erick Gonzales.
>>>
>>>
>>>

>>
>>

>
>



  Reply With Quote
Old 04-12-2006, 11:33 PM   #4
Erick Gonzales
Guest
 
Posts: n/a
Default Re: Unhandled Exceptions FileNotFoundException and RegistryException

hmmm

you are right.. now the problem is that i´m not receiving the cradle event
change notification...

i'll keep trying...

thanks

"Paul G. Tobey [eMVP]" <p space tobey no spam AT no instrument no spam DOT
com> wrote in message news:ucdg5V$FHHA.4580@TK2MSFTNGP05.phx.gbl...
> Are you actually seeing the debug break at that point or are you getting
> something suitable returned from the property access? False, for example?
> I think that the exception is generated as a matter of course, at least
> for unpartnered devices which are not connected to ActiveSync. It seems
> to do the right thing when cradled and connected to AS on my system.
>
> Paul T.
>
> "Erick Gonzales" <erickgonzales@hotmail.com> wrote in message
> news:ediX7x%23FHHA.1252@TK2MSFTNGP02.phx.gbl...
>> yes Paul, running on a WM5 device "emulator"...
>>
>> thanks
>>
>> "Paul G. Tobey [eMVP]" <p space tobey no spam AT no instrument no spam
>> DOT com> wrote in message news:uOHsIu%23FHHA.960@TK2MSFTNGP04.phx.gbl...
>>> And you *are* running on a WM5 device? Just because something is in the
>>> framework doesn't mean that the OS supports it.
>>>
>>> Paul T.
>>>
>>> "Erick Gonzales" <erickgonzales@hotmail.com> wrote in message
>>> news:OWcSEi%23FHHA.5104@TK2MSFTNGP03.phx.gbl...
>>>> I´m using VS2005 and CF 2.0 to test some applications for mobile
>>>> devices, but i´m receiving FileNotFoundException exception (see attach
>>>> sshot-1)... i found weird that the exception is thrown from Dns
>>>> class...
>>>>
>>>> also i´m receiving RegistryException when trying to read a SystemState
>>>> property value....(see attach sshot-2) could be a permission problem???
>>>>
>>>> thanks!
>>>>
>>>> Erick Gonzales.
>>>>
>>>>
>>>>
>>>
>>>

>>
>>

>
>



  Reply With Quote
Reply



Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off