Why this method cause a NotSupportedException?

Thanks

--
Math Parser : http://www.neodatatype.net

Re: Directory.GetCurrentDirectory by Alex

Alex
Sat Feb 07 16:12:55 CST 2004

http://msdn.microsoft.com/mobility/prodtechinfo/devtools/netcf/faq/default.aspx#7.1

--
Alex Yakhnin, NET CF MVP
IntelliProg, Inc.
http://www.intelliprog.com

"Zanna" <znt.fabio@virgilio.it> wrote in message
news:T9dVb.203881$VW.8358692@news3.tin.it...
> Why this method cause a NotSupportedException?
>
> Thanks
>
> --
> Math Parser : http://www.neodatatype.net
>
>



Re: Directory.GetCurrentDirectory by Alex

Alex
Sat Feb 07 19:07:41 CST 2004

If you are trying to load an assembly from your app directory, takae a look
at the sample I posetd in reply to your previous post

"Zanna" <znt.fabio@virgilio.it> wrote in message
news:T9dVb.203881$VW.8358692@news3.tin.it...
> Why this method cause a NotSupportedException?
>
> Thanks
>
> --
> Math Parser : http://www.neodatatype.net
>
>



Re: Directory.GetCurrentDirectory by Zanna

Zanna
Sat Feb 07 19:12:45 CST 2004


>
http://msdn.microsoft.com/mobility/prodtechinfo/devtools/netcf/faq/default.a
spx#7.1

Ok, but why the Directory.GetCurrentDirectory give the error?

--
Math Parser : http://www.neodatatype.net



Re: Directory.GetCurrentDirectory by Alex

Alex
Sat Feb 07 20:06:44 CST 2004

Because the concept of current directory is not supported under Windows CE.
The method is included for desktop compatibility

"Zanna" <znt.fabio@virgilio.it> wrote in message
news:h2gVb.273891$_P.9397772@news4.tin.it...
>
> >
>
http://msdn.microsoft.com/mobility/prodtechinfo/devtools/netcf/faq/default.a
> spx#7.1
>
> Ok, but why the Directory.GetCurrentDirectory give the error?
>
> --
> Math Parser : http://www.neodatatype.net
>
>



Re: Directory.GetCurrentDirectory by Zanna

Zanna
Sun Feb 08 02:19:24 CST 2004

"Alex Feinman [MVP]" <public_news@alexfeinman.com> wrote in message

> Because the concept of current directory is not supported under Windows
CE.

Ah... this could make sense :)

> The method is included for desktop compatibility

But... it wouldn't be better to remove this method if it doesn't work on
PPc?
Or maybe remapping on the Reflection...CodeBase?

Thanks angain for all your reply :)

--
Math Parser : http://www.neodatatype.net



Re: Directory.GetCurrentDirectory by fernfant

fernfant
Tue Feb 10 17:08:03 CST 2004

Hi, this method throws "NotSupportedException" on current implementations
of Windows CE OS, please take a look at the ".NET Compact FrameWork
Platform note" on
http://msdn.microsoft.com/library/default.asp?url=/library/en-us/cpref/html/
frlrfsystemiodirectoryclassgetcurrentdirectorytopic.asp.

There have been some updates to the documentation since the release of
Visual Studio .NET 2003, so it's always a good idea to take a look at the
online documentation if you have internet access.

Hope this helps,
Fernando

This posting is provided "AS IS" with no warranties, and confers no rights.
--------------------
| From: "Zanna" <znt.fabio@virgilio.it>
| Newsgroups: microsoft.public.dotnet.framework.compactframework
| References: <T9dVb.203881$VW.8358692@news3.tin.it>
<ehEBZfc7DHA.1716@TK2MSFTNGP10.phx.gbl>
<h2gVb.273891$_P.9397772@news4.tin.it>
<utYX0ge7DHA.2044@TK2MSFTNGP10.phx.gbl>
| Subject: Re: Directory.GetCurrentDirectory
| Lines: 19
| X-Priority: 3
| X-MSMail-Priority: Normal
| X-Newsreader: Microsoft Outlook Express 6.00.2800.1106
| X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1106
| Message-ID: <gimVb.274165$_P.9416002@news4.tin.it>
| Date: Sun, 08 Feb 2004 08:19:24 GMT
| NNTP-Posting-Host: 80.116.120.74
| X-Complaints-To: newsmaster@tin.it
| X-Trace: news4.tin.it 1076228364 80.116.120.74 (Sun, 08 Feb 2004 09:19:24
MET)
| NNTP-Posting-Date: Sun, 08 Feb 2004 09:19:24 MET
| Organization: TIN
| Path:
cpmsftngxa07.phx.gbl!cpmsftngxa10.phx.gbl!TK2MSFTNGXA05.phx.gbl!TK2MSFTNGP08