Try our conversational search powered by Generative AI!

UnifiedFile.Open on a checked out file does not work



I ran into a problem. This is how my code looks

UnifiedFile uf = (UnifiedFile)GenericHostingEnvironment.VirtualPathProvider.GetFile(sPath); 

path is taken from a property on the page url to document

Stream fs = uf.Open();

This works until the file is checked out; after this i get an error saying that the path is invalid


Is it normal?



Feb 04, 2009 15:09

ok i am able to read the file while is checked out obtaining a stream reader based on unifiedfile.locapath, however this is going nowhere because that file has the last checkedin version 


So, is there any way to read the file that was saved but not checked in yet?



Feb 05, 2009 11:15
* You are NOT allowed to include any hyperlinks in the post because your account hasn't associated to your company. User profile should be updated.