开发者

Directory.exist method issue in Firefox browser

I have a asp.net page which is checking a UNC path on a listbox item change event using Directory.exist method.

This works fine in Internet explorer.

But when i use firefox and debugging this method returns false even though the directory exists.

What could be the reason for this strange problem.

this is the code

Directory.Exists(@\\SYSMHARSYS\xxxxxxFiles\Region\Error)

when i browse from IE and put a breakpoint here it returns 开发者_如何学编程true.But in FF the same code returns false.Its happening only for a UNC.It returns true for a local path(eg Directory.Exists(@C:\test).

Authenticatiion:

authentication mode="Windows"

identity impersonate="true"

Please someone answer this

Thanks

SNA


IdentityImpersonate = true only works by default through IE. In Firefox, it will prompt for a username and password, but if you have saved a previous credential, it might not be able to access the folder anymore.


If this code is running on the server-side, it shouldn't make any difference which browser is being used. Is the directory path parameterised in some way? If it is, perhaps IE and FF are each returning different values for some reason resulting in an invalid path when FF is used.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜