Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

Two similar websites, one can't see remote server share.

33 views
Skip to first unread message

seannakasone

unread,
Mar 2, 2009, 8:41:07 PM3/2/09
to
Hello, I have two web sites with same server-side code, but one fails to
make the GetFolder() call, see below.

<body>
<%
var fso = new ActiveXObject("Scripting.FileSystemObject");
var filelist = fso.GetFolder("\\\\devamfmapps\\pdf");
...

The error is: System.IO.DirectoryNotFoundException: Exception from
HRESULT: 0x800A004C (CTL_E_PATHNOTFOUND)

It's been a challenge to find a difference between the two websites, any
suggestions on what I could check?

Patrice

unread,
Mar 3, 2009, 6:59:37 AM3/3/09
to
Are they running under the same account ? Firewall issue ? Does it work when
going to this server in an interactive session ?

Not directly related but if you are really using ASP.NET, it would be better
to use .NET classes rather than to still use Scripting.FileSystemObject (see
the System.IO namespace and in particular
http://msdn.microsoft.com/en-us/library/system.io.directoryinfo(VS.80).aspx).

--
Patrice

"seannakasone" <snak...@flex.com> a écrit dans le message de groupe de
discussion :
Pine.CYG.4.58.09...@ctfanxnfba.unjnvvnaryrpgevp.arg...

sean_n

unread,
Mar 4, 2009, 2:05:26 AM3/4/09
to
Thanks for you help.

It turned out to be the web.config.

I removed <identity impersonate="true"/> and that fixed it.

0 new messages