PC Review
Forums
Newsgroups
Microsoft DotNet
Microsoft Dot NET Compact Framework
using FileInfo class
Forums
Newsgroups
Microsoft DotNet
Microsoft Dot NET Compact Framework
using FileInfo class
![]() |
using FileInfo class |
|
|
Thread Tools | Rate Thread |
|
|
#1 |
|
Guest
Posts: n/a
|
Hi,
I was wondering if anyone could help me out, I having issues with a component I have written for .net CF that I now need to use in the .net desktop framework. I am using the log4net library and need to read in my logging settings from a file I place in the same location as my running executable. In the compact framework the following call returns my location System.IO.Path.GetDirectoryName(System.Reflection.Assembly.GetExecutingAssembly().GetName().CodeBase.ToString()) This returns my location as a URI however on the Desktop frame work when I try and pass this into FileInfo fi = new FileInfo(pConfigLoc); it throws an exception about not supporting URI formats. I am pretty new to C# and thought that this should work as is. could anyone explain what I am doing wrong thanks Guus Davidson |
|
![]() |
|
| Thread Tools | |
| Rate This Thread | |
|
|

Main Page 

