Sep 10, 2011 07:58 AM|stevedotnet|LINK
i made a cms project in C#.
i wrote <add key="RootDirectory" value="D:\cms\"/></appSettings>
and in cms.cs i wrote
string MyDir = ConfigurationSettings.AppSettings["RootDirectory"].Trim();
DirectoryInfo dirInfo = new DirectoryInfo(MyDir);
FileInfo info = dirInfo.GetFiles();
DirectoryInfo dirs = dirInfo.GetDirectories();
. my project is running well in my systemor as offline.
but when i hosted this project on remote server. so its showing error
if you have any solution for the problem so please let me know.