Error: Invalid URI: The format of the URI could not be determined. in task

Pritam Gupta asked on November 8, 2017 12:58

Hello,

Ia m getting "Error: Invalid URI: The format of the URI could not be determined." in task In task Last Run and Next Run is working but the Execution number is not increment can anyone please help why am i getting this error.

Thanks

Recent Answers


David te Kloese answered on November 8, 2017 13:29

Is this a custom task or a Kentico default task? Where do you see this error? Any other information in the eventlog...

0 votesVote for this answer Mark as a Correct answer

Pritam Gupta answered on November 8, 2017 13:56

Hello David,

This is my custom task and i am not getting any error in Event log.

0 votesVote for this answer Mark as a Correct answer

David te Kloese answered on November 8, 2017 14:06

Well you could wrap your entire custom task in a try/catch block to at least catch the error.

So what logic are you using in your code that does something with an "uri property".

probably you something like

Uri myURL = new Uri(myUrlProperty);

where the value of myUrlProperty is invalid.

0 votesVote for this answer Mark as a Correct answer

   Please, sign in to be able to submit a new answer.