Products

Solutions

Resources

Partners

Community

Blog

About

QA

Ideas Test

New Community Website

Ordinarily, you'd be at the right spot, but we've recently launched a brand new community website... For the community, by the community.

Yay... Take Me to the Community!

Welcome to the DNN Community Forums, your preferred source of online community support for all things related to DNN.
In order to participate you must be a registered DNNizen

HomeHomeArchived Discus...Archived Discus...Developing Under Previous Versions of .NETDeveloping Under Previous Versions of .NETASP.Net 2.0ASP.Net 2.0Scheduled task problemScheduled task problem
Previous
 
Next
New Post
3/19/2008 9:03 AM
 

Hi @all

I've wrote a function that gets all subdirectories from a specific folder within my webroot. Wenn I place this function in my ascx-control it works realy fine. But my appointment is, that this function has to run every night. So I wrote a class for scheduling. Now, my problem is, that when the function is called I always get an error in the line dInfo = new DirectoryInfo(sPath);DirectoryInfo[] diFolders = dInfo.GetDirectories();

DirectoryInfo

 

I set the permissions for ASP.NET, Networkservice, and IUSER   to read/write

whats wrong?


regards 
Marcel

 
New Post
3/19/2008 10:26 AM
 

What specific error did you get?  At first glance it looks like you need permission to List Folder Contents, for the security context that is running at night.

I hope this helps.


Dwayne J. Baldwin
 
New Post
3/19/2008 10:37 AM
 

I get the following error:

PTAG.WebPlanner.TestClass1, App_SubCode_LABSelector
bei System.IO.__Error.WinIOError(Int32 errorCode, String maybeFullPath) bei System.IO.Directory.InternalGetFileDirectoryNames(String path, String userPathOriginal, String searchPattern, Boolean includeFiles, Boolean includeDirs, SearchOption searchOption) bei System.IO.DirectoryInfo.GetDirectories(String searchPattern, SearchOption searchOption) bei System.IO.DirectoryInfo.GetDirectories() bei PTAG.WebPlanner.TestClass1.DoWork() in d:\DNN\DNN_DEV\App_Code\LABSelector\PDF2DBScheduler.cs:Zeile 43

I've checked the permission of the virtual web. But it contains the permission "brows".

Marcel

 
New Post
3/20/2008 5:31 AM
 

ok, I did some test an I guess it's a permission problem. But what's the difference between my ascx-Control with the button and the scheduled task?
Why the button works and the scheduled task doesn't?

Marcel

 
Previous
 
Next
HomeHomeArchived Discus...Archived Discus...Developing Under Previous Versions of .NETDeveloping Under Previous Versions of .NETASP.Net 2.0ASP.Net 2.0Scheduled task problemScheduled task problem


These Forums are dedicated to discussion of DNN Platform and Evoq Solutions.

For the benefit of the community and to protect the integrity of the ecosystem, please observe the following posting guidelines:

  1. No Advertising. This includes promotion of commercial and non-commercial products or services which are not directly related to DNN.
  2. No vendor trolling / poaching. If someone posts about a vendor issue, allow the vendor or other customers to respond. Any post that looks like trolling / poaching will be removed.
  3. Discussion or promotion of DNN Platform product releases under a different brand name are strictly prohibited.
  4. No Flaming or Trolling.
  5. No Profanity, Racism, or Prejudice.
  6. Site Moderators have the final word on approving / removing a thread or post or comment.
  7. English language posting only, please.
What is Liquid Content?
Find Out
What is Liquid Content?
Find Out
What is Liquid Content?
Find Out