<?xml version="1.0" encoding="utf-8"?>
<rss xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:pingback="http://madskills.com/public/xml/rss/module/pingback/" xmlns:trackback="http://madskills.com/public/xml/rss/module/trackback/" xmlns:wfw="http://wellformedweb.org/CommentAPI/" xmlns:slash="http://purl.org/rss/1.0/modules/slash/" xmlns:dc="http://purl.org/dc/elements/1.1/" version="2.0">
  <channel>
    <title>Xperimentality - DasBlog</title>
    <link>http://www.xperimentality.com/</link>
    <description>Building a Better Xperience with .NET</description>
    <language>en-us</language>
    <copyright>&lt;a href="http://www.nxtdimension.com" alt="NxtDimension Solutions"&gt;NxtDimension Solutions&lt;/a&gt;</copyright>
    <lastBuildDate>Wed, 29 Aug 2007 16:15:26 GMT</lastBuildDate>
    <generator>newtelligence dasBlog 2.0.7226.0</generator>
    <managingEditor>blog@nxtdimension.com</managingEditor>
    <webMaster>blog@nxtdimension.com</webMaster>
    <item>
      <trackback:ping>http://www.xperimentality.com/Trackback.aspx?guid=ae8c2c9f-16e4-4eeb-88a3-eb62a42eca2c</trackback:ping>
      <pingback:server>http://www.xperimentality.com/pingback.aspx</pingback:server>
      <pingback:target>http://www.xperimentality.com/PermaLink,guid,ae8c2c9f-16e4-4eeb-88a3-eb62a42eca2c.aspx</pingback:target>
      <dc:creator>Todd</dc:creator>
      <wfw:comment>http://www.xperimentality.com/CommentView,guid,ae8c2c9f-16e4-4eeb-88a3-eb62a42eca2c.aspx</wfw:comment>
      <wfw:commentRss>http://www.xperimentality.com/SyndicationService.asmx/GetEntryCommentsRss?guid=ae8c2c9f-16e4-4eeb-88a3-eb62a42eca2c</wfw:commentRss>
      <slash:comments>1</slash:comments>
      <body xmlns="http://www.w3.org/1999/xhtml">
        <p>
Well I completed the upgrade to DasBlog 2.0 this morning.  There was really only
one hiccup and for the most part it was my fault.<br />
If you don't know, about 2 weeks ago, DasBlog 2.0 was released.  So what you
might say!  Well this release of DasBlog supports running on .NET 2.0 under
Medium Trust.<br />
I host my blog with GoDaddy so I have been holding off on going to .NET 2.0 on my
hosting because DasBlog would not run.  It previously required Full Trust. 
So as of this morning, I have been able to move all of my hosted stuff to .NET 2.0
and subsequently upgraded DasBlog to version 2.0.<br />
I began by following the upgrade instructions located <a href="http://dasblog.info/SetupInstall.aspx" target="_blank">here</a> on
the DasBlog site.  I won't re-list all the steps here.  The basic idea is
to download and unpack the DasBlog install files.  Copy down your web and site
config files and your content directory from your existing installation to a local
drive.  Merge the web and site config files with those in the new DasBlog install. 
Run the DasBlogUpgrader.exe against your content directory.  Now here is where
I had my first problem.  When I tested the upgrade in my test environment I got
an error in the aspnet_wp.exe.  I checked my application log files and found
that a duplicate key was trying to be inserted into the ASP.NET Cache.  The description
of the error said
</p>
        <pre class="csharpcode">An unhandled exception occurred and the process was terminated.
Application ID: /LM/W3SVC/1/Root/dasblog
Process ID: 4104
Exception: System.ArgumentException
Message: Item has already been added. Key in dictionary:<br /><span class="str">'9db86387-f712-4b43-be7d-d41d999a90d0'</span> Key being added:<br /><span class="str">'9db86387-f712-4b43-be7d-d41d999a90d0'<br /></span><span class="str">...<br /></span></pre>
        <style type="text/css">.csharpcode, .csharpcode pre
{
	font-size: small;
	color: black;
	font-family: consolas, "Courier New", courier, monospace;
	background-color: #ffffff;
	/*white-space: pre;*/
}
.csharpcode pre { margin: 0em; }
.csharpcode .rem { color: #008000; }
.csharpcode .kwrd { color: #0000ff; }
.csharpcode .str { color: #006080; }
.csharpcode .op { color: #0000c0; }
.csharpcode .preproc { color: #cc6633; }
.csharpcode .asp { background-color: #ffff00; }
.csharpcode .html { color: #800000; }
.csharpcode .attr { color: #ff0000; }
.csharpcode .alt 
{
	background-color: #f4f4f4;
	width: 100%;
	margin: 0em;
}
.csharpcode .lnum { color: #606060; }
</style>
        <p>
I took a look in the content directory of my DasBlog install and noticed that there
were 2 files for the same date.  I really don't know what caused the duplicate
file to get created, but they appeared to be identical.  Deleting one of the
sets of files fixed the problem.<br />
So once I got everything running in the test environment I started the migration to
the hosting server.  Again, the basic idea was replace most everything with the
new files including the merged web and site config files and the content directory. 
So here is where I ran into my second problem.  I uploaded everything and got
an error when I tried to hit the blog.  In the System.Web section of the web.config
file, there is an element which specifies the trust level.
</p>
        <pre class="csharpcode">
          <span class="kwrd">&lt;</span>
          <span class="html">trust</span>
          <span class="attr">level</span>
          <span class="kwrd">="Medium"</span>
          <span class="attr">originUrl</span>
          <span class="kwrd">=""</span>
          <span class="kwrd">/&gt;</span>
        </pre>
        <style type="text/css">.csharpcode, .csharpcode pre
{
	font-size: small;
	color: black;
	font-family: consolas, "Courier New", courier, monospace;
	background-color: #ffffff;
	/*white-space: pre;*/
}
.csharpcode pre { margin: 0em; }
.csharpcode .rem { color: #008000; }
.csharpcode .kwrd { color: #0000ff; }
.csharpcode .str { color: #006080; }
.csharpcode .op { color: #0000c0; }
.csharpcode .preproc { color: #cc6633; }
.csharpcode .asp { background-color: #ffff00; }
.csharpcode .html { color: #800000; }
.csharpcode .attr { color: #ff0000; }
.csharpcode .alt 
{
	background-color: #f4f4f4;
	width: 100%;
	margin: 0em;
}
.csharpcode .lnum { color: #606060; }
</style>
        <p>
The problem is that GoDaddy specifies this in their machine.config file and also sets
the attribute that tells ASP.NET to not allow a local site to override it.  So
to fix the problem, just comment out this line in the web.config of the blog and inherit
the setting value from the machine.config.<br />
That was it!  I would consider that a pretty painless upgrade ( as a matter of
fact, considering some of the nightmares I have experienced, I would even consider
it pleasant! ). 
</p>
        <img width="0" height="0" src="http://www.xperimentality.com/aggbug.ashx?id=ae8c2c9f-16e4-4eeb-88a3-eb62a42eca2c" />
      </body>
      <title>Upgrade to DasBlog 2.0 on GoDaddy</title>
      <guid isPermaLink="false">http://www.xperimentality.com/PermaLink,guid,ae8c2c9f-16e4-4eeb-88a3-eb62a42eca2c.aspx</guid>
      <link>http://www.xperimentality.com/2007/08/29/UpgradeToDasBlog20OnGoDaddy.aspx</link>
      <pubDate>Wed, 29 Aug 2007 16:15:26 GMT</pubDate>
      <description>&lt;p&gt;
Well I completed the upgrade to DasBlog 2.0 this morning.&amp;nbsp; There was really only
one hiccup and for the most part it was my fault.&lt;br&gt;
If you don't know, about 2 weeks ago, DasBlog 2.0 was released.&amp;nbsp; So what you
might say!&amp;nbsp; Well this release of DasBlog supports running&amp;nbsp;on .NET 2.0 under
Medium Trust.&lt;br&gt;
I host my blog with GoDaddy so I have been holding off on going to .NET 2.0 on my
hosting because DasBlog would not run.&amp;nbsp; It previously required Full Trust.&amp;nbsp;
So as of this morning, I have been able to move all of my hosted stuff to .NET 2.0
and subsequently upgraded DasBlog to version 2.0.&lt;br&gt;
I began by following the upgrade instructions located &lt;a href="http://dasblog.info/SetupInstall.aspx" target="_blank"&gt;here&lt;/a&gt; on
the DasBlog site.&amp;nbsp; I won't re-list all the steps here.&amp;nbsp; The basic idea is
to download and unpack the DasBlog install files.&amp;nbsp; Copy down your web and site
config files and your content directory from your existing installation to a local
drive.&amp;nbsp; Merge the web and site config files with those in the new DasBlog install.&amp;nbsp;
Run the DasBlogUpgrader.exe against your content directory.&amp;nbsp; Now here is where
I had my first problem.&amp;nbsp; When I tested the upgrade in my test environment I got
an error in the aspnet_wp.exe.&amp;nbsp; I checked my application log files and found
that a duplicate key was trying to be inserted into the ASP.NET Cache.&amp;nbsp; The description
of the error said
&lt;/p&gt;
&lt;pre class="csharpcode"&gt;An unhandled exception occurred and the process was terminated.
Application ID: /LM/W3SVC/1/Root/dasblog
Process ID: 4104
Exception: System.ArgumentException
Message: Item has already been added. Key in dictionary:&lt;br&gt;
&lt;span class="str"&gt;'9db86387-f712-4b43-be7d-d41d999a90d0'&lt;/span&gt; Key being added:&lt;br&gt;
&lt;span class="str"&gt;'9db86387-f712-4b43-be7d-d41d999a90d0'&lt;br&gt;
&lt;/span&gt;&lt;span class="str"&gt;...&lt;br&gt;
&lt;/span&gt;&lt;/pre&gt;
&lt;style type="text/css"&gt;.csharpcode, .csharpcode pre
{
	font-size: small;
	color: black;
	font-family: consolas, "Courier New", courier, monospace;
	background-color: #ffffff;
	/*white-space: pre;*/
}
.csharpcode pre { margin: 0em; }
.csharpcode .rem { color: #008000; }
.csharpcode .kwrd { color: #0000ff; }
.csharpcode .str { color: #006080; }
.csharpcode .op { color: #0000c0; }
.csharpcode .preproc { color: #cc6633; }
.csharpcode .asp { background-color: #ffff00; }
.csharpcode .html { color: #800000; }
.csharpcode .attr { color: #ff0000; }
.csharpcode .alt 
{
	background-color: #f4f4f4;
	width: 100%;
	margin: 0em;
}
.csharpcode .lnum { color: #606060; }
&lt;/style&gt;
&lt;p&gt;
I took a look in the content directory of my DasBlog install and noticed that there
were 2 files for the same date.&amp;nbsp; I really don't know what caused the duplicate
file to get created, but they appeared to be identical.&amp;nbsp; Deleting one of the
sets of files fixed the problem.&lt;br&gt;
So once I got everything running in the test environment I started the migration to
the hosting server.&amp;nbsp; Again, the basic idea was replace most everything with the
new files including the merged web and site config files and the content directory.&amp;nbsp;
So here is where I ran into my second problem.&amp;nbsp; I uploaded everything and got
an error when I tried to hit the blog.&amp;nbsp; In the System.Web section of the web.config
file, there is an element which specifies the trust level.
&lt;/p&gt;
&lt;pre class="csharpcode"&gt;&lt;span class="kwrd"&gt;&amp;lt;&lt;/span&gt;&lt;span class="html"&gt;trust&lt;/span&gt; &lt;span class="attr"&gt;level&lt;/span&gt;&lt;span class="kwrd"&gt;="Medium"&lt;/span&gt; &lt;span class="attr"&gt;originUrl&lt;/span&gt;&lt;span class="kwrd"&gt;=""&lt;/span&gt; &lt;span class="kwrd"&gt;/&amp;gt;&lt;/span&gt;&lt;/pre&gt;
&lt;style type="text/css"&gt;.csharpcode, .csharpcode pre
{
	font-size: small;
	color: black;
	font-family: consolas, "Courier New", courier, monospace;
	background-color: #ffffff;
	/*white-space: pre;*/
}
.csharpcode pre { margin: 0em; }
.csharpcode .rem { color: #008000; }
.csharpcode .kwrd { color: #0000ff; }
.csharpcode .str { color: #006080; }
.csharpcode .op { color: #0000c0; }
.csharpcode .preproc { color: #cc6633; }
.csharpcode .asp { background-color: #ffff00; }
.csharpcode .html { color: #800000; }
.csharpcode .attr { color: #ff0000; }
.csharpcode .alt 
{
	background-color: #f4f4f4;
	width: 100%;
	margin: 0em;
}
.csharpcode .lnum { color: #606060; }
&lt;/style&gt;
&lt;p&gt;
The problem is that GoDaddy specifies this in their machine.config file and also sets
the attribute that tells ASP.NET to not allow a local site to override it.&amp;nbsp; So
to fix the problem, just comment out this line in the web.config of the blog and inherit
the setting value from the machine.config.&lt;br&gt;
That was it!&amp;nbsp; I would consider that a pretty painless upgrade ( as a matter of
fact, considering some of the nightmares I have experienced, I would even consider
it pleasant! ). 
&lt;/p&gt;
&lt;img width="0" height="0" src="http://www.xperimentality.com/aggbug.ashx?id=ae8c2c9f-16e4-4eeb-88a3-eb62a42eca2c" /&gt;</description>
      <comments>http://www.xperimentality.com/CommentView,guid,ae8c2c9f-16e4-4eeb-88a3-eb62a42eca2c.aspx</comments>
      <category>.NET</category>
      <category>DasBlog</category>
    </item>
  </channel>
</rss>