Very strange problem
I have windows service, that using information from inside App.config by
ConfigurationSettings.AppSettings["ConfigPath"] <- Everything is ok here
BUT, once I want to read string such as
<add key="ConfigPath" value="%my_home_dir%\config\file.xml" />
or
<add key="ConfigPath" value="C:\Program
Files\MyApplication\Sinfo\config\file.xml" />
it failed on "Illegal String exception"
Once using THE SAME string from INSIDE service - works file, but from
App.config failed.
Notice1: The same string from App.config works fine from Console Application
Notice2: Tried to save myservice.exe.config in service directory and in
System32 directory as well. The same problem.
Notice3: Other string I can read without problems
What is the problem, as I missing something?
--
Tamir Khason
You want dot.NET? Just ask:
"Please, www.dotnet.us "