Click here to Skip to main content
15,892,674 members
Home / Discussions / ASP.NET
   

ASP.NET

 
AnswerRe: add hyperlink dynamically using a gridview Pin
kubben23-Feb-07 8:31
kubben23-Feb-07 8:31 
QuestionClose my Page Pin
i-p-g-i23-Feb-07 6:10
i-p-g-i23-Feb-07 6:10 
AnswerRe: Close my Page Pin
Guffa23-Feb-07 6:15
Guffa23-Feb-07 6:15 
QuestionControl properties changing during page processing Pin
badgrs23-Feb-07 5:46
badgrs23-Feb-07 5:46 
AnswerRe: Control properties changing during page processing Pin
kubben23-Feb-07 5:56
kubben23-Feb-07 5:56 
AnswerRe: Control properties changing during page processing Pin
Abisodun23-Feb-07 5:56
Abisodun23-Feb-07 5:56 
QuestionPage Breaks in reporting services Pin
kalyan_vb23-Feb-07 5:46
kalyan_vb23-Feb-07 5:46 
QuestionProblem with FileInfo.Exist and network access Pin
Stephan Pilz23-Feb-07 4:36
Stephan Pilz23-Feb-07 4:36 
Hello guys,

I have a lot of documents in filesystem of a web server (1). An other web server (2) should offer access to this documents too. That works fine and my generated links to the documents will load the document inside the browser.

My problem is, the documents (the name, not the data !!!) and the path are administer in a database and I have a test, if the document exist, before I provide the link. The code for test is follows:

fi = New FileInfo(strPhysPath)
If fi.Exists = False Then
  ' do an error message here
else
  ' generate a link
end if


For this check I need a physical path and I have it in different ways. As "normal path" (i.e. "x:\documents\pdf\test.pdf"), if the code runs on web server1 (the server, where the documents are stored), as UNC-Path to a shared folder (i.e. "\\server1\documents\pdf\test.pdf") and/or as a network drive path using the shared folder (i.e. "y:\pdf\test.pdf" where y: -> \\server1\documents). The last both variants I must use on web server2 and here I get always: File not exist using the code above. No errors, no execptions.

Why? Did anybody have other ideas ?

Thank you very much
Stephan

                   \\\|///
                 \\  - -  //
                  (  @ @  )
+---------------oOOo-(_)-oOOo-----------------+
| Stephan Pilz   stephan.pilz@stephan-pilz.de |
|                <a href=http://www.stephan-pilz.de>www.stephan-pilz.de</a>          |
|                ICQ#: 127823481              |
+-----------------------Oooo------------------+
                 oooO   (   )
                (   )    ) /
                 \ (    (_/
                  \_)

AnswerRe: Problem with FileInfo.Exist and network access Pin
kubben23-Feb-07 4:53
kubben23-Feb-07 4:53 
GeneralRe: Problem with FileInfo.Exist and network access Pin
Stephan Pilz23-Feb-07 5:07
Stephan Pilz23-Feb-07 5:07 
GeneralRe: Problem with FileInfo.Exist and network access Pin
kubben23-Feb-07 5:20
kubben23-Feb-07 5:20 
Questionuse of hidden field Pin
raquidd2223-Feb-07 4:23
raquidd2223-Feb-07 4:23 
AnswerRe: use of hidden field Pin
kubben23-Feb-07 5:00
kubben23-Feb-07 5:00 
GeneralRe: use of hidden field Pin
Michael Sync23-Feb-07 21:33
Michael Sync23-Feb-07 21:33 
Questiontext box with multiple lines + javascripting + asp.net 2.0 + c# Pin
ritu432123-Feb-07 2:34
ritu432123-Feb-07 2:34 
AnswerRe: text box with multiple lines + javascripting + asp.net 2.0 + c# Pin
Sylvester george23-Feb-07 2:36
Sylvester george23-Feb-07 2:36 
GeneralRe: text box with multiple lines + javascripting + asp.net 2.0 + c# Pin
Michael Sync23-Feb-07 21:20
Michael Sync23-Feb-07 21:20 
QuestionHow to Make a an asp.net control to View a Video clip from web to Mobile Pin
Atif Ali Bhatti23-Feb-07 1:30
Atif Ali Bhatti23-Feb-07 1:30 
AnswerRe: How to Make a an asp.net control to View a Video clip from web to Mobile Pin
Sylvester george23-Feb-07 2:38
Sylvester george23-Feb-07 2:38 
Questionasp.net query Windows domain logged in users Pin
simontechfusion23-Feb-07 0:49
simontechfusion23-Feb-07 0:49 
AnswerRe: asp.net query Windows domain logged in users Pin
Sylvester george23-Feb-07 2:51
Sylvester george23-Feb-07 2:51 
GeneralRe: asp.net query Windows domain logged in users Pin
simontechfusion23-Feb-07 4:14
simontechfusion23-Feb-07 4:14 
GeneralRe: asp.net query Windows domain logged in users Pin
Michael Sync23-Feb-07 21:15
Michael Sync23-Feb-07 21:15 
Questionget dropdownlist value in datagrid header template Pin
skannapiran23-Feb-07 0:40
skannapiran23-Feb-07 0:40 
AnswerRe: get dropdownlist value in datagrid header template Pin
Imran Khan Pathan23-Feb-07 1:05
Imran Khan Pathan23-Feb-07 1:05 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.