I have a hosted an Asp.net application on asphostportal. I want to schedule some email alerts at a specific time, for that I have written code for sending Email Alerts in an aspx page. I am calling this page through the asphostportal Scheduler using the below credentials
My arguments are as below to call the page
Executable : C:\Windows\System32\WindowsPowerShell\v1.0\powershell.exe Argument : -c "(new-object system.net.webclient).downloadstring('http://mydomainname.biz\MMM\EmailAlerts.aspx')"
But its giving error after scheduler is scheduling the alerts as
At line:1 char:1 + (new-object system.net.webclient).downloadstring('http:// mydomainname .biz\MMM\Emai ... + ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + CategoryInfo : NotSpecified: ( , MethodInvocationException + FullyQualifiedErrorId : ArgumentException
Please let me know where I am making a mistake. Any help is appreciated.
Edited by saweff, 22 November 2016 - 03:10 AM.