How to run a procedure in cshtml file automatically.

Star79
Star79 used Ask the Experts™
on
I am trying to run procedure in cshtml and want to run one procedure automatically.  Dont want to use windows service or batch file as it is not really working.

i am using something like this in the batch file which runs every hour
start "<C:\Program Files\Internet Explorer\iexplore.exe>" http://10.180.8.5:9093/Feature/DownloadFeatures 

at one point it says completed successfully but it is not doing anything ie. not running the downloadfeatures method. Can you please help? Any automated tool i need to use to run this cshtml file?
Comment
Watch Question

Do more with

Expert Office
EXPERT OFFICE® is a registered trademark of EXPERTS EXCHANGE®
Top Expert 2016

Commented:
you can't do it directly you need a web server.  .cshtml (or .vbhtml provides a handler-mapping to load the MVC engine.  A Web Browser can only understand JavaScript and html

Author

Commented:
Thanks David. Just to be clear yes this  is running on a web server and mvc files are hosted on IIS. All we are trying to do is run a method in .cshtml.

again this batch command does executes the Downloadfeature method but sometimes it fails. I just need some reliable way of running the below URL may be some scheduler.
start "<C:\Program Files\Internet Explorer\iexplore.exe>" http://10.180.8.5:9093/Feature/DownloadFeatures 

Any help will be appreciated.

Do more with

Expert Office
Submit tech questions to Ask the Experts™ at any time to receive solutions, advice, and new ideas from leading industry professionals.

Start 7-Day Free Trial