Hello:
I am trying to send an email which body will be a local aspx page, but when I try to get the page html using System.Net.Http WebRequest.Crea te(url) I am getting this error:
Invalid URI: The format of the URI could not be determined
I read that I need to provide the full URI but I do not know how to do that so that it works when debuging(here I get a path like this http://localhost:43898/MyAppName/...) my application and also on the real server where the application is hosted(here I get a path like this: http://www.myDomain.com/...).
I am using ResolveUrl("~/Member/AppSubmitNotifi cation.aspx") but i do not know how to provide the full path to avoid this error.
I am trying to send an email which body will be a local aspx page, but when I try to get the page html using System.Net.Http WebRequest.Crea te(url) I am getting this error:
Invalid URI: The format of the URI could not be determined
I read that I need to provide the full URI but I do not know how to do that so that it works when debuging(here I get a path like this http://localhost:43898/MyAppName/...) my application and also on the real server where the application is hosted(here I get a path like this: http://www.myDomain.com/...).
I am using ResolveUrl("~/Member/AppSubmitNotifi cation.aspx") but i do not know how to provide the full path to avoid this error.
Comment