|
-
Jul 21st, 2012, 03:14 PM
#1
Thread Starter
Hyperactive Member
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
-
Jul 21st, 2012, 09:07 PM
#2
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.
ἄνδρα μοι ἔννεπε, μοῦσα, πολύτροπον, ὃς μάλα πολλὰ
πλάγχθη, ἐπεὶ Τροίης ἱερὸν πτολίεθρον ἔπερσεν·
-
Jul 21st, 2012, 09:18 PM
#3
Thread Starter
Hyperactive Member
Re: Commas not recognized in File.Exists
Thank you..Will look at those items
-
Jul 21st, 2012, 09:25 PM
#4
Re: Commas not recognized in File.Exists
No problem.Let us know how is turning out.
ἄνδρα μοι ἔννεπε, μοῦσα, πολύτροπον, ὃς μάλα πολλὰ
πλάγχθη, ἐπεὶ Τροίης ἱερὸν πτολίεθρον ἔπερσεν·
-
Jul 23rd, 2012, 01:08 AM
#5
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
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|