Jump to content
Xtreme .Net Talk

Recommended Posts

Posted

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

Posted

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.

~Nate�

___________________________________________

Please use the [vb]/[cs] tags on posted code.

Please post solutions you find somewhere else.

Follow me on Twitter here.

Posted

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

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...