<?xml version="1.0" encoding="utf-8"?>
<rss xmlns:atom="https://www.w3.org/2005/Atom" xmlns:sy="https://purl.org/rss/1.0/modules/syndication/" xmlns:dc="https://purl.org/dc/elements/1.1/" xmlns:content="https://purl.org/rss/1.0/modules/content/" xmlns:wfw="https://wellformedweb.org/CommentAPI/" xmlns:slash="https://purl.org/rss/1.0/modules/slash/"
  version="2.0">
  <channel>
    <title>Remote Delivery Center - DEV</title>
    <atom:link
      href="https://docs.microsoft.com/archive/blogs/rdcdev/feed.xml"
      rel="self"
      type="application/rss+xml" />
    <link>https://docs.microsoft.com/archive/blogs/rdcdev/feed.xml</link>
    <description>Cloud, mobile, web development and troubleshooting</description>
    <lastBuildDate>Wed, 17 Apr 2019 03:41:52 GMT</lastBuildDate>
    <language>en-US</language>
    <sy:updatePeriod>hourly</sy:updatePeriod>
    <sy:updateFrequency>1</sy:updateFrequency>
    <item>
      <title>Some issues when hosting ASP.NET 5 on Ubuntu on Azure</title>
      <link>https://docs.microsoft.com/archive/blogs/rdcdev/some-issues-when-hosting-asp-net-5-on-ubuntu-on-azure</link>
      <pubDate>Thu, 27 Aug 2015 23:44:00 GMT</pubDate>
      <dc:creator><![CDATA[Xin Jin - MSFT]]></dc:creator>
      <guid
        isPermaLink="false">https://blogs.msdn.microsoft.com/rdcdev/2015/08/27/some-issues-when-hosting-asp-net-5-on-ubuntu-on-azure/</guid>
      <description><![CDATA[ASP.NET 5 is a new open-source and cross-platform framework for building modern cloud-based Web...]]></description>
      <content:encoded><![CDATA[<p><span style="font-family: tahoma, arial, helvetica, sans-serif;">ASP.NET 5 is a new open-source and cross-platform framework for building modern cloud-based Web applications using .NET. We can develop and host a ASP.NET Web application on any platform - Windows, Linux and Mac OS.</span></p>
<p>&nbsp;</p>
<p><span style="font-family: tahoma, arial, helvetica, sans-serif;">To make it work on Linux, we can quickly create an Ubuntu VM on Azure and then follow the instructions to <a href="https://docs.asp.net/en/latest/getting-started/installing-on-linux.html">Installing ASP.NET 5 On Linux</a>.</span></p>
<p>&nbsp;</p>
<p><span style="font-family: tahoma, arial, helvetica, sans-serif;">Here I list some issues when I ran ASP.NET 5 sample applications on Ubuntu on Azure.</span></p>
<p>&nbsp;</p>
<p><span style="font-family: tahoma, arial, helvetica, sans-serif;"><strong>1.&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </strong><strong>&ldquo;Cannot handle address family xxxx&rdquo; error when run &ldquo;dnu restore&rdquo;</strong></span></p>
<p><span>You create a simple ASP.NET 5 application and then run &ldquo;<strong>dnu restore</strong>&rdquo; to download all packages that are listed in the project.json file. You may encounter &ldquo;<strong>Cannot handle address family xxxx&rdquo;&nbsp;</strong>error.</span></p>
<table style="background-color: #f0eeef;" border="0">
<tbody>
<tr>
<td>
<p>GET https://api.nuget.org/v3/index.json</p>
<p><span style="background-color: #ffff00;">Cannot handle address family</span> xxxx</p>
<p>Stacktrace:</p>
<p>&nbsp; &nbsp;at &lt;unknown&gt; &lt;0xffffffff&gt;</p>
<p><span>&nbsp; &nbsp;at (wrapper managed-to-native) System.Net.Dns.GetHostByName_internal (string,string&amp;,string[]&amp;,string[]&amp;) &lt;0xffffffff&gt; </span></p>
<p><span>&nbsp; &nbsp;at System.Net.Dns.GetHostByName (string) &lt;0x00047&gt; at System.Net.ServicePoint.get_HostEntry () &lt;0x001ef&gt; </span></p>
<p><span>&nbsp; &nbsp;at System.Net.WebConnection.Connect (System.Net.HttpWebRequest) &lt;0x001af&gt; </span></p>
<p><span>&nbsp; &nbsp;at System.Net.WebConnection.InitConnection (object) &lt;0x002f3&gt; </span></p>
<p><span>&nbsp; &nbsp;at System.Net.WebConnection.m__0 (object) &lt;0x0001f&gt; </span></p>
<p><span>&nbsp; &nbsp;at (wrapper runtime-invoke).runtime_invoke_void__this___object (object,intptr,intptr,intptr) &lt;0xffffffff&gt;</span></p>
<p>&nbsp;</p>
</td>
</tr>
</tbody>
</table>
<p>&nbsp;</p>
<p>&nbsp;</p>
<p><span style="font-family: tahoma, arial, helvetica, sans-serif;"><strong>Workaround</strong></span></p>
<p><span style="font-family: tahoma, arial, helvetica, sans-serif;">Try to run the following command to stop Micro Name Service Cache Daemon:</span></p>
<table style="background-color: #f0eeef;" border="0">
<tbody>
<tr>
<td>
<p><strong>sudo service unscd stop</strong></p>
</td>
</tr>
</tbody>
</table>
<p>&nbsp;</p>
<p><span style="font-family: tahoma, arial, helvetica, sans-serif;">and then run &rdquo;<strong>dnu restore</strong>&rdquo; again.</span></p>
<p>&nbsp;</p>
<p><strong style="font-family: tahoma, arial, helvetica, sans-serif;">2.&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </strong><strong style="font-family: tahoma, arial, helvetica, sans-serif;">&ldquo;HTTP request timed out&rdquo; error when run &ldquo;dnu restore&rdquo;</strong></p>
<p>&nbsp;</p>
<p><span style="font-family: tahoma, arial, helvetica, sans-serif;">You create a simple ASP.NET 5 application and then run &ldquo;<strong>dnu restore</strong>&rdquo; to download all packages that are listed in the project.json file. You may encounter a lot of &ldquo;<strong>HTTP request timed out&rdquo; </strong>error.</span></p>
<table style="background-color: #f0eeef;" border="0">
<tbody>
<tr>
<td>
<p>&hellip;</p>
<p>&nbsp; GET https://www.nuget.org/api/v2/FindPackagesById()?id='Microsoft.Framework.Configuration.EnvironmentVariables'</p>
<p>Warning: FindPackagesById: Microsoft.Framework.Configuration.Ini</p>
<p>&nbsp; <span style="background-color: #ffff00;">HTTP request timed out</span>. Retrying.</p>
<p>&nbsp; GET https://www.myget.org/F/aspnetvnext/api/v2/FindPackagesById()?id='Microsoft.Framework.Configuration.Ini'</p>
<p>Warning: FindPackagesById: Microsoft.Framework.Configuration.Ini</p>
<p>&nbsp; HTTP request timed out. Retrying.</p>
<p>&hellip;</p>
</td>
</tr>
</tbody>
</table>
<p>&nbsp;</p>
<p><span style="font-family: tahoma, arial, helvetica, sans-serif;"><strong>Workaround</strong></span></p>
<p><span style="font-family: tahoma, arial, helvetica, sans-serif;">Run</span></p>
<table style="background-color: #f0eeef;" border="0">
<tbody>
<tr>
<td>
<p><strong>export MONO_THREADS_PER_CPU=2000</strong></p>
</td>
</tr>
</tbody>
</table>
<p><span style="font-family: tahoma, arial, helvetica, sans-serif;">and then run &rdquo;<strong>dnu restore</strong>&rdquo; again.</span></p>
<p>&nbsp;</p>
<p>&nbsp;</p>
<p><strong style="font-family: tahoma, arial, helvetica, sans-serif;">3.&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </strong><strong style="font-family: tahoma, arial, helvetica, sans-serif;">&ldquo;failed to locate libcoreclr with error libunwind.so.8: cannot open shared object file: No such file or directory&rdquo; when you run dnx or dnu command</strong></p>
<p>&nbsp;</p>
<p><span style="font-family: tahoma, arial, helvetica, sans-serif;">You may experience the following error when you run dnx or dnu command:</span></p>
<p>&nbsp;</p>
<p>&nbsp;</p>
<table style="background-color: #f0eeef;" border="0">
<tbody>
<tr>
<td>
<p>failed to locate libcoreclr with error libunwind.so.8: cannot open shared object file: No such file or directory</p>
</td>
</tr>
</tbody>
</table>
<p>&nbsp;</p>
<p>&nbsp;</p>
<p><strong style="font-family: tahoma, arial, helvetica, sans-serif;">Resolution</strong></p>
<p><span style="font-family: tahoma, arial, helvetica, sans-serif;">libunwind8 was not installed. Run the following command to install it:</span></p>
<table style="background-color: #f0eeef;" border="0">
<tbody>
<tr>
<td>
<p><strong>sudo apt-get install libunwind8</strong></p>
</td>
</tr>
</tbody>
</table>
<p>&nbsp;</p>
<p><strong style="font-family: tahoma, arial, helvetica, sans-serif;">4.&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </strong><strong style="font-family: tahoma, arial, helvetica, sans-serif;">&ldquo;The type initializer for 'libcrypto' threw an exception&rdquo; error when run your application</strong></p>
<p>&nbsp;</p>
<p><span style="font-family: tahoma, arial, helvetica, sans-serif;">After successfully run &ldquo;<strong>dnu restore</strong>&rdquo;, you may start to run your application. And the following error may appear:</span></p>
<p>&nbsp;</p>
<table style="background-color: #f0eeef;" border="0">
<tbody>
<tr>
<td>
<p>System.TypeInitializationException: The type initializer for 'libcrypto' threw an exception.</p>
</td>
</tr>
</tbody>
</table>
<p>&nbsp;</p>
<p>&nbsp;</p>
<p><strong><span style="font-family: tahoma, arial, helvetica, sans-serif;">Resolution</span></strong></p>
<p><span style="font-family: tahoma, arial, helvetica, sans-serif;">libssl-dev was not installed. Run the following command to install it:</span></p>
<p>&nbsp;</p>
<table style="background-color: #f0eeef;" border="0">
<tbody>
<tr>
<td>
<p><strong>sudo apt-get install libssl-dev</strong>&nbsp;</p>
</td>
</tr>
</tbody>
</table>
<p>&nbsp;</p>
<p>&nbsp;</p>
<p>Thanks,</p>
<p>Xin Jin</p>]]></content:encoded>
    </item>
  </channel>
</rss>