FSO问题 [英] FSO problem

查看:65
本文介绍了FSO问题的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

几周前我问过这个问题,但仍然没有得到答案。真的很难

难倒。


内联网应用程序,用于技术支持,这个应用程序跟踪门票的进度。

有时候,客户会向我们发送一些跟踪文件或日志,因此我们在网络上的服务器上有一个名为Tickets的

文件夹。如果票号是
1000,那么该文件夹将被称为T1000。所以我有一个指向这个

目录的链接,如下所示:


<%SET fso = CreateObject(" Scripting.FileSystemObject")

strTraceDir =" \\servername \Tickets\T"& strTicketID

如果fso.FolderExists(strTraceDir)那么


Else

strTraceDir =" \\servername\Tickets\"

结束如果

set fso = nothing

%>


< a href ="<%= strTraceDir%>" target =" _blank">文件:< / a>


如你所见,我不能只假设有一个特定的文件夹

数。也许Ticket 1000还没有文件夹。如果没有,那么我想要

来允许链接将你带到那个驱动器的根目录。


这里的问题是:在我身上开发机器,这段代码工作正常。当我将

上传到制作时,FolderExists部分永远不会发挥作用。用

换句话说,它每次总是落入Else条件。就好像

你无法从服务器上看到这个文件夹。但是我已经检查了这个并且

你可以看到它就好了。我还试图看看它是不是映射为驱动器的事实可能是问题所在,但我不认为这就是它。我还检查了
,看看两者的IUSR帐号信息是否相同。 IIS设置

似乎是一样的。


如果我的代码不能正常工作,我可以解决这个问题。但事实上它不是生产,但是我的开发机器可以工作,两者都是在同一个域上,而且两者都在同一个域上拥有相同的权限,是什么

我没有得到。


解决方案

哦,并确保两者都知道\\servername \翻译(尝试IP /

其他的话)


-

Curt Christianson

所有者/首席开发人员,DF-Software
www.Darkfalz.com

" middletree" < MI ******** @ htomail.com>在留言中写道

新闻:Ov ************** @ TK2MSFTNGP09.phx.gbl ...

我问了几句几个星期前,但仍然没有得到答案。真的很难过。

内联网应用,技术支持,这个应用程序跟踪
门票的进度。有时,客户会向我们发送一些跟踪文件或日志,因此我们在网络上的服务器上有一个名为Tickets的
文件夹。如果票号为
1000,则该文件夹将被称为T1000。所以我有一个指向这个
目录的链接:

<%SET fso = CreateObject(" Scripting.FileSystemObject")
strTraceDir =" \ \ servername \Tickets\T"& strTicketID
如果fso.FolderExists(strTraceDir)那么

其他
strTraceDir =" \\servername \ Tickets \
结束如果
设置fso =没有
%>

< a href ="<%= strTraceDir%>" target =" _blank">文件:< / a>

正如您所看到的,我不能只假设有一个具有
特定号码的文件夹。也许Ticket 1000还没有文件夹。如果没有,那么我希望
允许链接带你到那个驱动器的根目录。

这就是问题:在我的开发机器上,这段代码工作正常。当我将它上传到制作时,FolderExists部分永远不会发挥作用。换句话说,它每次都会落入其他条件。如果你从服务器上看不到该文件夹​​,那就是
。但我已经检查过了,你可以看到它就好了。我还试图看看它是不是映射为驱动器的事实可能是问题,但我不认为那就是它。我
也检查了两个IUSR帐户信息是否相同。 IIS
设置似乎是一样的。

如果我的代码不起作用,我可以解决这个问题。但事实上它不能用于生产,但是在我的开发机器上工作,两个
在同一个域上,并且两者都具有相同的权限,是
我没有得到。



你说他们同时在同一个帐户下运行?它是IUSR帐户还是

标准帐户。作为测试尝试设置两者都在管理员帐户下运行,

这将消除权限作为一个问题。


-

Curt Christianson

业主/首席开发人员,DF-Software
www.Darkfalz.com

" middletree" < MI ******** @ htomail.com>在留言中写道

新闻:Ov ************** @ TK2MSFTNGP09.phx.gbl ...

我问了几句几个星期前,但仍然没有得到答案。真的很难过。

内联网应用,技术支持,这个应用程序跟踪
门票的进度。有时,客户会向我们发送一些跟踪文件或日志,因此我们在网络上的服务器上有一个名为Tickets的
文件夹。如果票号为
1000,则该文件夹将被称为T1000。所以我有一个指向这个
目录的链接:

<%SET fso = CreateObject(" Scripting.FileSystemObject")
strTraceDir =" \ \ servername \Tickets\T"& strTicketID
如果fso.FolderExists(strTraceDir)那么

其他
strTraceDir =" \\servername \ Tickets \
结束如果
设置fso =没有
%>

< a href ="<%= strTraceDir%>" target =" _blank">文件:< / a>

正如您所看到的,我不能只假设有一个具有
特定号码的文件夹。也许Ticket 1000还没有文件夹。如果没有,那么我希望
允许链接带你到那个驱动器的根目录。

这就是问题:在我的开发机器上,这段代码工作正常。当我将它上传到制作时,FolderExists部分永远不会发挥作用。换句话说,它每次都会落入其他条件。如果你从服务器上看不到该文件夹​​,那就是
。但我已经检查过了,你可以看到它就好了。我还试图看看它是不是映射为驱动器的事实可能是问题,但我不认为那就是它。我
也检查了两个IUSR帐户信息是否相同。 IIS
设置似乎是一样的。

如果我的代码不起作用,我可以解决这个问题。但事实上它不能用于生产,但是在我的开发机器上工作,两个
在同一个域上,并且两者都具有相同的权限,是
我没有得到的。



我应该在我的测试中提到过(我一直在努力解决这个问题) />
现在好几周),我尝试了IP地址。我会检查管理员帐户,但是

我认为不会允许我将它保留在那里。


请记住,虽然我说它似乎是一个权限问题,它不一定是
。我可以肯定的是,它就像文件夹

不存在一样。


" Curt_C [MVP]" < software_AT_darkfalz.com>在留言中写道

新闻:e#************** @ TK2MSFTNGP12.phx.gbl ...

哦,确保两者都知道\\servername \翻译(用其他词语尝试IP)

-
Curt Christianson
所有者/首席开发人员,DF-软件
www.Darkfalz.com

" middletree" < MI ******** @ htomail.com>在消息中写道
新闻:Ov ************** @ TK2MSFTNGP09.phx.gbl ...

几周前我问过这个问题,但是仍然没有得到答案。真的很难过。

内联网应用程序,用于技术支持,这个应用程序跟踪故障单的进度。

有时,客户会向我们发送一些跟踪文件或记录,所以我们
在我们的网络上的服务器上有一个名为Tickets的

文件夹。如果票号为
1000,则该文件夹将被称为T1000。所以我有一个指向这个
目录的链接:

<%SET fso = CreateObject(" Scripting.FileSystemObject")
strTraceDir =" \ \ servername \Tickets\T"& strTicketID
如果fso.FolderExists(strTraceDir)那么

其他
strTraceDir =" \\servername \ Tickets \
结束如果
设置fso =没有
%>

< a href ="<%= strTraceDir%>" target =" _blank">文件:< / a>

如您所见,我不能只假设有一个具有特定

数字的文件夹。也许Ticket 1000还没有文件夹。如果没有,那么我



想要允许链接带你到那个驱动器的根目录。

这里是问题:在我的开发机器上,此代码工作正常。当我将
上传到制作时,FolderExists部分永远不会发挥作用。换句话说,它每次都会落入其他条件。它是
,好像

你无法从服务器看到该文件夹​​。但我已经检查了



你可以看到它就好了。我还试图看看它是不是映射为驱动器的事实可能是问题,但我不认为那就是它。我


检查两者的IUSR帐户信息是否相同。 IIS


设置

似乎是一样的。

如果我的代码不起作用,我可以解决这个问题。但事实上,
它不能用于生产,但可以在我的开发机器上工作,


在同一个域中,并且两者具有相同的权限,是


什么

我没有得到。




I asked this a few weeks ago, but still haven''t gotten an answer. Really
stumped.

Intranet app, for tech support, and this app tracks the progress of tickets.
Sometimes, the customer will send us some trace files or logs, so we have a
folder called Tickets on a server on our network. If a ticket number is
1000, then the folder will be called T1000. So I have a link to that
directory that looks like this:

<% SET fso = CreateObject("Scripting.FileSystemObject")
strTraceDir = "\\servername\Tickets\T"&strTicketID
If fso.FolderExists(strTraceDir) then

Else
strTraceDir = "\\servername\Tickets\"
End if
set fso= nothing
%>

<a href="<%=strTraceDir%>" target="_blank">Files:</a>

As you can see, I cannot just assume that there is a folder with a specific
number. Perhaps Ticket 1000 doesn''t have a folder yet. If not, then I want
to allow the link to take you to just the root of that drive.

Here''s the problem: On my dev machine, this code works fine. When I upload
it to production, the FolderExists part never, ever comes into play. In
other words, it always falls into the Else condition, every time. It''s as if
you can''t see the folder from the server. But I have checked into that and
you can see it just fine. I also tried to see if the fact that it wasn''t
mapped as a drive might be the problem, but I don''t think that''s it. I also
checked to see that the IUSR account info is the same on both. IIS settings
seem to be the same.

If my code just didn''t work, I could deal with that. But the fact that it
doesn''t work on production, but does work from my dev machine, both of which
are on the same domain, and both of which have the same permissions, is what
I am not getting.


解决方案

Oh, and make sure that both know the \\servername\ translation (try IP in
other words)

--
Curt Christianson
Owner/Lead Developer, DF-Software
www.Darkfalz.com
"middletree" <mi********@htomail.com> wrote in message
news:Ov**************@TK2MSFTNGP09.phx.gbl...

I asked this a few weeks ago, but still haven''t gotten an answer. Really
stumped.

Intranet app, for tech support, and this app tracks the progress of tickets. Sometimes, the customer will send us some trace files or logs, so we have a folder called Tickets on a server on our network. If a ticket number is
1000, then the folder will be called T1000. So I have a link to that
directory that looks like this:

<% SET fso = CreateObject("Scripting.FileSystemObject")
strTraceDir = "\\servername\Tickets\T"&strTicketID
If fso.FolderExists(strTraceDir) then

Else
strTraceDir = "\\servername\Tickets\"
End if
set fso= nothing
%>

<a href="<%=strTraceDir%>" target="_blank">Files:</a>

As you can see, I cannot just assume that there is a folder with a specific number. Perhaps Ticket 1000 doesn''t have a folder yet. If not, then I want
to allow the link to take you to just the root of that drive.

Here''s the problem: On my dev machine, this code works fine. When I upload
it to production, the FolderExists part never, ever comes into play. In
other words, it always falls into the Else condition, every time. It''s as if you can''t see the folder from the server. But I have checked into that and
you can see it just fine. I also tried to see if the fact that it wasn''t
mapped as a drive might be the problem, but I don''t think that''s it. I also checked to see that the IUSR account info is the same on both. IIS settings seem to be the same.

If my code just didn''t work, I could deal with that. But the fact that it
doesn''t work on production, but does work from my dev machine, both of which are on the same domain, and both of which have the same permissions, is what I am not getting.



You say they BOTH run under the same account? is it an IUSR account or a
standard account. As a test try setting both to run under an admin account,
this will eliminate the permissions as an issue.

--
Curt Christianson
Owner/Lead Developer, DF-Software
www.Darkfalz.com
"middletree" <mi********@htomail.com> wrote in message
news:Ov**************@TK2MSFTNGP09.phx.gbl...

I asked this a few weeks ago, but still haven''t gotten an answer. Really
stumped.

Intranet app, for tech support, and this app tracks the progress of tickets. Sometimes, the customer will send us some trace files or logs, so we have a folder called Tickets on a server on our network. If a ticket number is
1000, then the folder will be called T1000. So I have a link to that
directory that looks like this:

<% SET fso = CreateObject("Scripting.FileSystemObject")
strTraceDir = "\\servername\Tickets\T"&strTicketID
If fso.FolderExists(strTraceDir) then

Else
strTraceDir = "\\servername\Tickets\"
End if
set fso= nothing
%>

<a href="<%=strTraceDir%>" target="_blank">Files:</a>

As you can see, I cannot just assume that there is a folder with a specific number. Perhaps Ticket 1000 doesn''t have a folder yet. If not, then I want
to allow the link to take you to just the root of that drive.

Here''s the problem: On my dev machine, this code works fine. When I upload
it to production, the FolderExists part never, ever comes into play. In
other words, it always falls into the Else condition, every time. It''s as if you can''t see the folder from the server. But I have checked into that and
you can see it just fine. I also tried to see if the fact that it wasn''t
mapped as a drive might be the problem, but I don''t think that''s it. I also checked to see that the IUSR account info is the same on both. IIS settings seem to be the same.

If my code just didn''t work, I could deal with that. But the fact that it
doesn''t work on production, but does work from my dev machine, both of which are on the same domain, and both of which have the same permissions, is what I am not getting.



I should have mentioned that in my testing (I''ve been wrestling with this
for weeks now), I tried the IP address. I''ll check the admin account, but
don''t think I will be allowed to keep it there.

Keep in mind that although I said it seems like a permissions problem, it''s
not necessarily. All I can say for sure is that it acts as if the folder
does not exist.

"Curt_C [MVP]" <software_AT_darkfalz.com> wrote in message
news:e#**************@TK2MSFTNGP12.phx.gbl...

Oh, and make sure that both know the \\servername\ translation (try IP in
other words)

--
Curt Christianson
Owner/Lead Developer, DF-Software
www.Darkfalz.com
"middletree" <mi********@htomail.com> wrote in message
news:Ov**************@TK2MSFTNGP09.phx.gbl...

I asked this a few weeks ago, but still haven''t gotten an answer. Really
stumped.

Intranet app, for tech support, and this app tracks the progress of tickets.

Sometimes, the customer will send us some trace files or logs, so we have a

folder called Tickets on a server on our network. If a ticket number is
1000, then the folder will be called T1000. So I have a link to that
directory that looks like this:

<% SET fso = CreateObject("Scripting.FileSystemObject")
strTraceDir = "\\servername\Tickets\T"&strTicketID
If fso.FolderExists(strTraceDir) then

Else
strTraceDir = "\\servername\Tickets\"
End if
set fso= nothing
%>

<a href="<%=strTraceDir%>" target="_blank">Files:</a>

As you can see, I cannot just assume that there is a folder with a specific

number. Perhaps Ticket 1000 doesn''t have a folder yet. If not, then I


want to allow the link to take you to just the root of that drive.

Here''s the problem: On my dev machine, this code works fine. When I upload it to production, the FolderExists part never, ever comes into play. In
other words, it always falls into the Else condition, every time. It''s as if

you can''t see the folder from the server. But I have checked into that


and you can see it just fine. I also tried to see if the fact that it wasn''t
mapped as a drive might be the problem, but I don''t think that''s it. I


also

checked to see that the IUSR account info is the same on both. IIS


settings

seem to be the same.

If my code just didn''t work, I could deal with that. But the fact that it doesn''t work on production, but does work from my dev machine, both of


which

are on the same domain, and both of which have the same permissions, is


what

I am not getting.




这篇关于FSO问题的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆