Click here to Skip to main content
15,920,708 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
I have need to automatic upload 4 excel file from a defined path in mvc c#(visual studio 2013) like as a scheduled time(e.g. monthly).

Is any web service required or a time schedular?

What I have tried:

I have just started and used a web service, but its not working
Posted
Updated 24-Jan-18 0:22am
Comments
F-ES Sitecore 24-Jan-18 6:23am    
Would you want a website automatically taking files from your system?

MVC is the wrong technology for this, you'll need a scheduled task on the client, or a Windows Service on the client.

1 solution

Quote:
Is any web service required or a time schedular?

In Asp MVC you wont be able to achieve this task. You shall create a simple Console application and add the relevant code to process the file from a desired location,
configure the exe in Task Scheduler [^] to run the job in a periodic manner.

refer these articles to achieve the task
Console App Task Scheduler[^]
Executing console application periodically using windows scheduler - YouTube[^]
 
Share this answer
 
v3

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900