由买买提看人间百态

boards

本页内容为未名空间相应帖子的节选和存档,一周内的贴子最多显示50字,超过一周显示500字 访问原贴
DotNet版 - Directory.GetFiles() is not working on client computer
相关主题
超级脑残的Windows Remote WMI Access authenticationASP.NET -- help
How : asp.net C# applcation notification message from server to client, Please![MSDN]Simulating include Files w/ASP.NET
C# Deploying application 如何加入一个 folder的文件?A question on authentication and cookie
Problem connecting to SQL ServerWhat is SmartClient?
Help ASP.NET!!!General Q: Web Server Load Balance and DB Server (转载)
用Web Service,当client调用Server的API的时候, .NET 入门系列(1)--什么是.NET
RequiredFieldValidator是什么时候做validate的?安装问题:framework1.0 & 1.1共存?
你们都做server side validation?[转载] how to deploy a .NET project with database
相关话题的讨论汇总
话题: filepath话题: client话题: working话题: files话题: computer
进入DotNet版参与讨论
1 (共1页)
A*******n
发帖数: 625
1
this question is weird for me, Code is below:
string FilePath = ConfigurationManager.AppSettings["PPLDownloadFilePath"];
if (Directory.Exists(FilePath))
{
string[] files = Directory.GetFiles(@FilePath,"*.*");
count.Text = files.Length.ToString() + " PPL file(s) in " + FilePath;
}
we deploy the website to the server, everything is working on my local when
I open the IE to check how many files on the folder, but it is not working
on my boss computer(always find 0 file). we use same user name, password and
same version IE for the website.
I check couple computers in our company, only 2 client side computers cannot
find the files, the others are ok.
any advice?
S***k
发帖数: 370
2
How many web servers do you have?Is it possible the request/response from
different servers?
Is it possible the code is related to some kind of client-side caching or
cookie?
Does the client computer set some ip/website mapping in host file?
A*******n
发帖数: 625
3
Thanks

I don't think so, only one web server.
it doesn't work after reboot.
I am not sure what you talk about, the other computers don't set IP/
website mapping, but work.
I am not sure this is IE setting problem or folder permission problem(the
folder is normal folder).

【在 S***k 的大作中提到】
: How many web servers do you have?Is it possible the request/response from
: different servers?
: Is it possible the code is related to some kind of client-side caching or
: cookie?
: Does the client computer set some ip/website mapping in host file?

l*s
发帖数: 783
4
add try catch block and log if there is any exception then go from there.

when
and

【在 A*******n 的大作中提到】
: this question is weird for me, Code is below:
: string FilePath = ConfigurationManager.AppSettings["PPLDownloadFilePath"];
: if (Directory.Exists(FilePath))
: {
: string[] files = Directory.GetFiles(@FilePath,"*.*");
: count.Text = files.Length.ToString() + " PPL file(s) in " + FilePath;
: }
: we deploy the website to the server, everything is working on my local when
: I open the IE to check how many files on the folder, but it is not working
: on my boss computer(always find 0 file). we use same user name, password and

A*******n
发帖数: 625
5
the question is no error, the function can find the folder and show "0 PPL
file(s) in .....".
if this is permission problem, I think the other clients should get same
info, just like above.
if no error happens, the log should be nothing, right?
A*******n
发帖数: 625
6
the user cannot view the files from the webpage on his local, but he can
view the files on my local based on his account. So I think it is not an
user permission problem.
The point is we cannot view the files for my account and his account on his
local, but working for both accounts on my local.
I think the problem is in his computer local setting. but which setting?
s***o
发帖数: 2191
7
Windows or Forms authentication?
If you are using Windows authentication, probably it has something to do
with ACL permissions. You could set that folder accessible to everyone and
see what happens.

his

【在 A*******n 的大作中提到】
: the user cannot view the files from the webpage on his local, but he can
: view the files on my local based on his account. So I think it is not an
: user permission problem.
: The point is we cannot view the files for my account and his account on his
: local, but working for both accounts on my local.
: I think the problem is in his computer local setting. but which setting?

A*******n
发帖数: 625
8
still no file find

【在 s***o 的大作中提到】
: Windows or Forms authentication?
: If you are using Windows authentication, probably it has something to do
: with ACL permissions. You could set that folder accessible to everyone and
: see what happens.
:
: his

A*******n
发帖数: 625
9
I think Spark got the point, Actually we have 2 web server, not 1 web server
.
you are the man. I find the problem.

【在 S***k 的大作中提到】
: How many web servers do you have?Is it possible the request/response from
: different servers?
: Is it possible the code is related to some kind of client-side caching or
: cookie?
: Does the client computer set some ip/website mapping in host file?

S***k
发帖数: 370
10
Good!!
I think it could be better to build a file server to hold those "shared"
files. Otherwise, you have to synchronize the folders in all servers.

server

【在 A*******n 的大作中提到】
: I think Spark got the point, Actually we have 2 web server, not 1 web server
: .
: you are the man. I find the problem.

A*******n
发帖数: 625
11
I agree with you, but I am not boss. lol

【在 S***k 的大作中提到】
: Good!!
: I think it could be better to build a file server to hold those "shared"
: files. Otherwise, you have to synchronize the folders in all servers.
:
: server

1 (共1页)
进入DotNet版参与讨论
相关主题
[转载] how to deploy a .NET project with databaseHelp ASP.NET!!!
Re: [转载] how to deploy a .NET project wi用Web Service,当client调用Server的API的时候,
怎么生成一个安装文件呀?RequiredFieldValidator是什么时候做validate的?
[合集] ajax.net的问题你们都做server side validation?
超级脑残的Windows Remote WMI Access authenticationASP.NET -- help
How : asp.net C# applcation notification message from server to client, Please![MSDN]Simulating include Files w/ASP.NET
C# Deploying application 如何加入一个 folder的文件?A question on authentication and cookie
Problem connecting to SQL ServerWhat is SmartClient?
相关话题的讨论汇总
话题: filepath话题: client话题: working话题: files话题: computer