Results 1 to 5 of 5

Thread: Commas not recognized in File.Exists

  1. #1
    Addicted Member
    Join Date
    Sep 02
    Location
    Hendersonville , NC
    Posts
    205

    Commas not recognized in File.Exists

    I have a .net aspx project done with VS 2008 using the .Net 2.xxxx framework. This ASPX application is deployed on and 4 different 2003 Server boxes. 3 are running in total beautifully. In the 4th box is my issue.
    I do a FILE.EXISTS conditional test looking for case file pdf's. These case numbers are structured as such
    2012-C-0421,001,0008.PDF
    Please note the comma's used in the path. 3 of the 4 servers in court houses recognize the path to the pdf WITH the commas in them perfectly and the FILE.EXISTS works 100%. On the fourth box (same config we THINK) the exact same FILE.EXISTS does not return a hit even though we see the document sitting in the folder via explorer. IF we remove the commas and make it 2012-C-0421001008.pdf all is fine and document is indeed discovered with the EXISTS.
    WHY on this one server does the original ducument path not function. We can not ask the court houses to change the way they store their documents so I need to make this work like the other 3. Again... same version..same .net framework... same OS (2003 server)

    HELP ME .. please

    gollnick
    William E Gollnick

  2. #2
    King of sapila
    Join Date
    Oct 06
    Location
    Greece
    Posts
    3,508

    Re: Commas not recognized in File.Exists

    Hi.What i can think of are two possibilities.
    1)An IIS6 issue.Make sure you have updated win2003 to service pack2.
    2)Language issue.Make sure you have correctly set the regional and language options.
    I can also think of issues like not using "~/somedirectory/" or server.mappath but since you say that all the other servers will work then i guess you don't have a problem there.
    A very slim chance would also be if you copied the files to a folder with insufficient read permissions and then by removing the file commas and thus updated, the file would get sufficient permissions with the update, without you noticing it.
    Slow as hell.

  3. #3
    Addicted Member
    Join Date
    Sep 02
    Location
    Hendersonville , NC
    Posts
    205

    Re: Commas not recognized in File.Exists

    Thank you..Will look at those items
    William E Gollnick

  4. #4
    King of sapila
    Join Date
    Oct 06
    Location
    Greece
    Posts
    3,508

    Re: Commas not recognized in File.Exists

    No problem.Let us know how is turning out.
    Slow as hell.

  5. #5
    ASP.NET Moderator gep13's Avatar
    Join Date
    Nov 04
    Location
    The Granite City
    Posts
    21,729

    Re: Commas not recognized in File.Exists

    Hey,

    Just to verify that these isn't something suspect in the code, and also allow us to run some tests, would it be possible for you to upload/post the code that is failing?

    Gary

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •