Last post May 27, 2005 02:04 AM by DBuckner
May 17, 2005 04:51 AM|Cornelius|LINK
I'm converting my DNN212 module to DNN3012. But now, my method Directory.Exists("\\MyServer\MyFolder") return false although all is correct in security. A Directory.Exists on my machine return true but on the Network,
I think it occurs due to the core dnn code in DNN3. Does the Microsoft.ScalableHosting security library of DNN3 web.config can make this problem for example ?
May 17, 2005 09:00 PM|locopon|LINK
Just check that the aspnet process has permissions to the folder your are trying to access.
Remember that DNN runs on that account.
May 18, 2005 04:39 AM|Cornelius|LINK
May 18, 2005 06:11 AM|Cornelius|LINK
I found my problem and the solution is very strange :
I noted Directory.Exists return true on a principal server and flase on a secondary server !!! Why, I don't know !
I resolve the problem by adding the line identity
and now, Directory.Exists return true on all my servers.
(About my previous post : In fact, the problem was the same on DNN2 but I had written this line and not in my DNN3 web.config).
May 18, 2005 09:04 AM|locopon|LINK
May 19, 2005 05:20 AM|Cornelius|LINK
I'm using only asp.net account and authentication mode Forms, so I don't see why I need to use Impersonate = true. And my folder on the network has permissions for aspnet (and network service due to win 2003).
May 27, 2005 02:04 AM|DBuckner|LINK