A*n
2 楼
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?
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
4 楼
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?
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
5 楼
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?
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
6 楼
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
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
7 楼
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?
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
8 楼
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?
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
9 楼
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?
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
11 楼
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?
.
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?
相关阅读
Entity Framework Today?VS2010的考试,取消了70-536了?Silverlight vs HTML5 WarSunday night footballWebClient is not thread-safe!windows exchange server的数据怎么倒倒别的数据库?扯扯.NET的team leader 或者project manager咋整Entity framework衷心祝愿 WINDOWS 7 顺利发售,一统江湖!我stuck了,sharepoint webpart问题,请教这里的高手,有什么办法可以保护用C#写的软件的codeExcel 加 button 的途径及其优缺点A Question about Session State in ASP.NET如果你重学.net和c#会怎么学?刚刚发现.net 35里面的property很好用自己做网站要学多久?StackOverflow的SEO做得真好啊。请教一个HTMLelement问题How to stop windows service in OnStart()网页里面显示小网页用什么asp control呀?