I do so:<br><br><font size="1"><span style="font-family: courier new,monospace;">&lt;!DOCTYPE html PUBLIC &quot;-//W3C//DTD XHTML 1.0 Frameset//EN&quot; &quot;<a href="http://www.w3.org/TR/xhtml1/DTD/xhtml1-frameset.dtd">http://www.w3.org/TR/xhtml1/DTD/xhtml1-frameset.dtd</a>&quot;&gt;</span><br style="font-family: courier new,monospace;">

<br style="font-family: courier new,monospace;"><span style="font-family: courier new,monospace;">&lt;script runat=&quot;server&quot;&gt;</span><br style="font-family: courier new,monospace;"><span style="font-family: courier new,monospace;">    protected string SessionId { get; set; }</span><br style="font-family: courier new,monospace;">

<span style="font-family: courier new,monospace;">    protected string WebLayout { get; set; }</span><br style="font-family: courier new,monospace;"><span style="font-family: courier new,monospace;">    </span><br style="font-family: courier new,monospace;">

<span style="font-family: courier new,monospace;">    protected void Page_Load(object sender, EventArgs e)</span><br style="font-family: courier new,monospace;"><span style="font-family: courier new,monospace;">    {</span><br style="font-family: courier new,monospace;">

<span style="font-family: courier new,monospace;">        <span style="color: rgb(0, 102, 0);">//I do this only once in Application_Start:<br>        //        MapGuideApi.MgInitializeWebTier(@&quot;C:\ProgramFiles\Autodesk\MapGuideEnterprise2010\WebServerExtensions\www\webconfig.ini&quot;);<br>

        //...but if you&#39;re unsure, do it here...<br><br style="font-family: courier new,monospace;"></span></span><span style="font-family: courier new,monospace;">        MgUserInformation userInfo = new MgUserInformation(&quot;Anonymous&quot;, &quot;&quot;);</span><br style="font-family: courier new,monospace;">

<span style="font-family: courier new,monospace;">        MgSite site = new MgSite();</span><br style="font-family: courier new,monospace;"><span style="font-family: courier new,monospace;">        site.Open(userInfo);</span><br style="font-family: courier new,monospace;">

<br style="font-family: courier new,monospace;"><span style="font-family: courier new,monospace;">        SessionId = site.CreateSession();</span><br style="font-family: courier new,monospace;"><span style="font-family: courier new,monospace;">        WebLayout = &quot;Library://Samples/Layouts/DotNetSamples.WebLayout&quot;;</span><br style="font-family: courier new,monospace;">

<span style="font-family: courier new,monospace;">    }</span><br style="font-family: courier new,monospace;"><span style="font-family: courier new,monospace;">&lt;/script&gt;</span><br style="font-family: courier new,monospace;">

<br style="font-family: courier new,monospace;"><span style="font-family: courier new,monospace;">&lt;html xmlns=&quot;<a href="http://www.w3.org/1999/xhtml">http://www.w3.org/1999/xhtml</a>&quot;&gt;</span><br style="font-family: courier new,monospace;">

<span style="font-family: courier new,monospace;">&lt;head id=&quot;Head1&quot; runat=&quot;server&quot;&gt;</span><br style="font-family: courier new,monospace;"><span style="font-family: courier new,monospace;">    &lt;title&gt;&lt;/title&gt;</span><br style="font-family: courier new,monospace;">

<span style="font-family: courier new,monospace;">&lt;/head&gt;</span><br style="font-family: courier new,monospace;"><span style="font-family: courier new,monospace;">&lt;frameset rows=&quot;0,*&quot; border=&quot;0&quot; framespacing=&quot;0&quot;&gt;</span><br style="font-family: courier new,monospace;">

<span style="font-family: courier new,monospace;">  &lt;frame /&gt;</span><br style="font-family: courier new,monospace;"><span style="font-family: courier new,monospace;">  &lt;frame src=&quot;/mapguide/mapviewernet/ajaxviewer.aspx?SESSION=&lt;%= SessionId %&gt;&amp;WEBLAYOUT=&lt;%= WebLayout %&gt;&quot; name=&quot;ViewerFrame&quot; /&gt;</span><br style="font-family: courier new,monospace;">

<span style="font-family: courier new,monospace;">&lt;/frameset&gt;</span><br style="font-family: courier new,monospace;"><span style="font-family: courier new,monospace;">&lt;/html&gt;</span></font><br><br>Pietro Ianniello<br>

<br><br>