Site
Web
Search
Login
Home
Document Exchange
Features
Extensions
Licensing
Testimonials
Translations
Buy
DMX Extensions
Support
Forums
Downloads
Free Stuff
Translations
Company
Partners
News
Contact
Test
You are here:
Support
/
Forums
Bring2mind Forums
Forums
Search Forum
Search
Advanced Search
Topics
Posts
Unanswered
Active Topics
Forums
>
Document Exchange
>
Storage and Security
Script works but schedule task fails?
Last Post 03/30/2011 11:29 PM by
Peter Donker
. 3 Replies.
Sort:
Oldest First
Most Recent First
Prev
Next
You are not authorized to post a reply.
Author
Messages
Mark ODonnell
New Member
Posts:7
03/18/2011 2:03 PM
I have a couple of smaller network shares that I am syncing.
When I use the script in the admin menu to "Synchronize all SyncFolders in Portal" it works well, but it's a manual process.
I want to use the scheduled task "DMX Document Mgmt synch" which I have set to run every 6 hours, but it always throws errors.
"Could not copy \\path to file\file name DMX entry xxxx" (where xxxx is the entry ID)
Does anyone know why this is happening or how to fix it?
Thanks!
Peter Donker
Veteran Member
Posts:4536
03/23/2011 12:15 PM
Hi Mark,
This happens when the code has insufficient permissions or access to do this. So either the remote file is locked by some process or the permission of DNN is insufficient. The latter should normally also show up in the manual process. I have never seen a discrepency between the two. They both run the same code but the scheduled task runs outside http context. I'm not aware of any impact on permissions when running outside http context.
Peter
Mark ODonnell
New Member
Posts:7
03/23/2011 5:03 PM
Thanks for the reply Peter. I have spent some time with different configurations and I have it working. Both my .NET worker process and my website security settings are using a domain account that has permissions for the share. I also have impersonation enabled in the web.config using the same ID. This works, but when I changed the .NET worker permissions from default NetworkService to the domain account my users lost the auto login for the portal.
So now I have to solve my domain account auto login problem. Researching this at the DNN forums right now. Do you have any ideas?
Thanks!
Peter Donker
Veteran Member
Posts:4536
03/30/2011 11:29 PM
Hi Mark,
This is indeed tough. I don't have any pointers. I remember having tried once myself and failed to get this to work. Since I never have to use a different account on my own servers I did not persist to get to the bottom of this.
Peter
You are not authorized to post a reply.
Document Exchange
--Release Notes for Document Exc...
--Installation and Activation Is...
--User Interface
--Search
--Storage and Security
--WebDAV
--API
Document Exchange Lite
--Installation and Activation Is...
--Search
--Localization
--UI
--Storage and Security
--Extensions and addons
Forums
>
Document Exchange
>
Storage and Security