try { concurrency::streams::fstream::open_istream("myfile.txt"); } catch(...) { std::cout << "Exception Caught \n"; } I am writing one sample client which upload file , but this line return exception.