'System.NotSupportedException' occurred in mscorlib.dll

S

stone1977

In my code I call following procedure. I use the Compact Framework.

string path= System.IO.Directory.GetCurrentDirectory();

I get an expcepiton: 'System.NotSupportedException' occurred in
mscorlib.dll

Due to the class library this should be avaiable. I use .NET 1.1. Do I
need to include something more?

Thanks for your help!
 
J

Jon Skeet [C# MVP]

stone1977 said:
In my code I call following procedure. I use the Compact Framework.

string path= System.IO.Directory.GetCurrentDirectory();

I get an expcepiton: 'System.NotSupportedException' occurred in
mscorlib.dll

Due to the class library this should be avaiable. I use .NET 1.1. Do I
need to include something more?

There's no such concept as a current directory on the Pocket PC. I'm
not sure why they didn't just exclude the method from the Compact
Framework entirely...
 

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