Jump to content


 


Register a free account to unlock additional features at BleepingComputer.com
Welcome to BleepingComputer, a free community where people like yourself come together to discuss and learn how to use their computers. Using the site is easy and fun. As a guest, you can browse and view the various discussions in the forums, but can not create a new topic or reply to an existing one unless you are logged in. Other benefits of registering an account are subscribing to topics and forums, creating a blog, and having no ads shown anywhere on the site.


Click here to Register a free account now! or read our Welcome Guide to learn how to use this site.

Photo

Executing a .aspx webpage request in asphostportal windows Plesk Scheduler


  • Please log in to reply
No replies to this topic

#1 saweff

saweff

  • Members
  • 1 posts
  • OFFLINE
  •  
  • Local time:01:29 AM

Posted 22 November 2016 - 03:09 AM

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.

Regards,


Edited by saweff, 22 November 2016 - 03:10 AM.


BC AdBot (Login to Remove)

 





0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users