var storePath = ConfigurationManager.AppSettings[configKey];
var dbpath=dbpath.replace("/","\\")
var fullFilePath = Path.Combine(storePath, dbpath);
Value stored in Config Key --> d:\Storage\ResourceStorage
value from database: dbpath : LearnerAnswers\test.pkg
Expected output : d:\Storage\ResourceStorage\LearnerAnswers\test.pkg
Actual output : D:\LearnerAnswers\test.pkg
Updated question to reflect exact scenario
value from debugger for store path : d:\Storage\ResourceStorage
I have spent lot of time on this..But could not find out whats going wrong ?