I’ve created 2 .NET Framework apps and want to check them in local domains
first – app.local
second – storage.local
I’ve created IIS WebSites also (set bindings for 80 and 443 ports) and put those domains to hosts file:
<code>127.0.0.1 app.local
127.0.0.1 storage.local
</code>
<code>127.0.0.1 app.local
127.0.0.1 storage.local
</code>
127.0.0.1 app.local
127.0.0.1 storage.local
I execute this code from main app app.local
:
<code>var url = "https://storage.local";
var client = new HttpClient();
var result = client.PostAsync(url + "/uploadnew", content).Result;
Console.WriteLine(message.StatusCode);
</code>
<code>var url = "https://storage.local";
var client = new HttpClient();
var result = client.PostAsync(url + "/uploadnew", content).Result;
Console.WriteLine(message.StatusCode);
</code>
var url = "https://storage.local";
var client = new HttpClient();
var result = client.PostAsync(url + "/uploadnew", content).Result;
Console.WriteLine(message.StatusCode);
And got error Unable to resolve remote name "storage.local"
What should I do wrong or what I forgot to add/setup?