j_vijaydaniel Posted January 14, 2009 Posted January 14, 2009 Hi All.. I have a windows C#.net Application 1.3 which has Uploading and Downloading work over http to local system as well as local system to http. My application runs through Web Service. I encoded Downloading and Uploading options through the Client Windows application itself. My problm is I am not able to check the File Existence over HTTP. Its throwing only exception if i do so. Its urgent. Pls help.. Thanks a lot in Advance..:D Regards., :) Vijay Daniel Quote
Nate Bross Posted January 14, 2009 Posted January 14, 2009 I could be wrong, but the only way you can check for a file is to try to download it from what you believe is its full Url (http://www.mysite.com/files/myfile.bin) and then you can catch Error 404 (File not found). There may be a better way, but I don't know of it. Quote ~Nate� ___________________________________________ Please use the [vb]/[cs] tags on posted code. Please post solutions you find somewhere else. Follow me on Twitter here.
j_vijaydaniel Posted January 15, 2009 Author Posted January 15, 2009 Thanks for ur reply buddy!! Currently i checked my file existence over HTTP thru Catch method only. But at times it always moves on to Catch giving me a message that " This file does not exists in "http://203.303.11/test" This s a custom message given by me only. I need a code to check a file in the Web Server ie, http. Thanks Quote
Administrators PlausiblyDamp Posted January 15, 2009 Administrators Posted January 15, 2009 Could the web service not check for the existence of the file and throw a specific exception if it is missing? The client would then catch this exception and know the file wasn't there. Quote Posting Guidelines FAQ Post Formatting Intellectuals solve problems; geniuses prevent them. -- Albert Einstein
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.