<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>JHashimoto</author_name>
  <author_url>https://blog.hatena.ne.jp/JHashimoto/</author_url>
  <blog_title>Architect's Log</blog_title>
  <blog_url>https://blog.jhashimoto.net/</blog_url>
  <categories>
    <anon>ASP.NET</anon>
  </categories>
  <description>どういうこと？ ASP.NETではチルダでアプリケーションルートを表すことができます。これはあくまでもASP.NETの仕様なので、 &lt;img src=&quot;~Hoge/Fuga/image.jpg&quot; /&gt; こんな風に書いても画像を参照できません。 どうすれば？ System.Web.VirtualPathUtility.ToAbsolute メソッドで、チルダで始まる仮想パスを絶対パスに変換すればOKです。 VirtualPathUtility.ToAbsolute メソッド (String) (System.Web)仮想パスをアプリケーション絶対パスに変換します。</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fblog.jhashimoto.net%2Fentry%2F20111206%2F1323126726&quot; title=&quot;~（チルダ）で始まるパスを絶対パスに変換する - Architect&amp;#39;s Log&quot; class=&quot;embed-card embed-blogcard&quot; scrolling=&quot;no&quot; frameborder=&quot;0&quot; style=&quot;display: block; width: 100%; height: 190px; max-width: 500px; margin: 10px 0px;&quot;&gt;&lt;/iframe&gt;</html>
  <image_url>http://capture.heartrails.com/150x130/shadow?http://msdn.microsoft.com/ja-jp/library/ms150160.aspx</image_url>
  <provider_name>Hatena Blog</provider_name>
  <provider_url>https://hatena.blog</provider_url>
  <published>2011-12-06 08:12:06</published>
  <title>~（チルダ）で始まるパスを絶対パスに変換する</title>
  <type>rich</type>
  <url>https://blog.jhashimoto.net/entry/20111206/1323126726</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
