<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>Adventures With .Net</title>
	<atom:link href="http://adventureswith.net/feed/" rel="self" type="application/rss+xml" />
	<link>http://adventureswith.net</link>
	<description>C# and the like</description>
	<lastBuildDate>Fri, 09 Mar 2012 11:33:25 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.2.1</generator>
		<item>
		<title>Using TortoiseGit with GitHub&#8211; A checklist rather than tutorial</title>
		<link>http://adventureswith.net/using-tortoisegit-with-github-a-checklist-rather-than-tutorial/</link>
		<comments>http://adventureswith.net/using-tortoisegit-with-github-a-checklist-rather-than-tutorial/#comments</comments>
		<pubDate>Tue, 15 Nov 2011 14:13:39 +0000</pubDate>
		<dc:creator>Dann</dc:creator>
				<category><![CDATA[Uncategorized]]></category>
		<category><![CDATA[git]]></category>
		<category><![CDATA[github]]></category>
		<category><![CDATA[TortoiseGit]]></category>

		<guid isPermaLink="false">http://adventureswith.net/using-tortoisegit-with-github-a-checklist-rather-than-tutorial/</guid>
		<description><![CDATA[Install msysGit  http://code.google.com/p/msysgit/ Create a SSH key using Bash (id_rsa and id_rsa.pub) Install TortoiseSVN Use plink&#160; &#160; Use puttyGEN, which comes with TortoiseGit, to create a Putty private key from id_rsa like so: puttyGen –&#62; Conversions –&#62; Import Key –&#62; &#8230; <a href="http://adventureswith.net/using-tortoisegit-with-github-a-checklist-rather-than-tutorial/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<div class="rw-left"><div class="rw-ui-container rw-class-blog-post rw-urid-2850"></div></div><ol>
<ol>
<li>Install msysGit  <a title="http://code.google.com/p/msysgit/" href="http://code.google.com/p/msysgit/">http://code.google.com/p/msysgit/</a></li>
<li>Create a SSH key using Bash (<em>id_rsa</em> and <em>id_rsa.pub</em>)</li>
<li>Install TortoiseSVN</li>
<ol>
<ol>
<li>Use <em><em>plink</em></em>&nbsp;</li>
</ol>
</ol>
</ol>
</ol>
<p>&nbsp;</p>
<ol>
<ol>
<li>Use puttyGEN, which comes with TortoiseGit, to create a Putty private key from <em>id_rsa </em>like so:<br />
puttyGen –&gt;<br />
Conversions –&gt;<br />
Import Key –&gt;<br />
Open <em>%userprofile%\.ssh\id_rsa –&gt;<br />
Save Private Key</em> as private.ppk (or whatever you want)</li>
<li>Register your Public Key (<em>id_rsa.pub</em>) with GitHub i.e. Copy/paste the text inside the file into your Github account SSH Key (<a title="https://github.com/account" href="https://github.com/account">https://github.com/account</a> –&gt; SSH Public Keys)<br />
<em></em></li>
</ol>
</ol>
<p>&nbsp;</p>
<ul>
<li>Set your details from the Git Bash command line. The token is available from your Github Account Settings.<br />
<span style="font-family: 'Courier New';"><br />
git config &#8211;global user.name &#8220;Your Name&#8221;<br />
git config &#8211;global user.email &#8220;your@email.com&#8221;<br />
</span><span style="font-family: 'Courier New';">git config &#8211;global github.user your-github-name<br />
git conf</span><span style="font-family: 'Courier New';">ig &#8211;global github.token your-github-token<br />
</span></li>
<li>Get the Repository’s Read + Write SSH URL<br />
<a href="http://adventureswith.net/wp-content/uploads/2011/11/image5.png"><img style="background-image: none; padding-left: 0px; padding-right: 0px; display: inline; padding-top: 0px; border: 0px;" title="image" src="http://adventureswith.net/wp-content/uploads/2011/11/image_thumb5.png" alt="image" width="770" height="218" border="0" /></a></li>
<li>Clone the repository to a folder using TortoiseGit</li>
</ul>
<p>&nbsp;</p>
<ol>
<li>Load the putty key <em>%userprofile%\.ssh\private.ppk</em>  if that is where you saved it.</li>
</ol>
<h3>Disclaimer</h3>
<p>This is a rough summary of what to do, and more of a reminder to my future self. If you have any suggestions, let me know.</p>
]]></content:encoded>
			<wfw:commentRss>http://adventureswith.net/using-tortoisegit-with-github-a-checklist-rather-than-tutorial/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>Asp.Net MVC3 Razor and RESX Localisations/Localizations</title>
		<link>http://adventureswith.net/asp-net-mvc3-razor-and-resx-localisationslocalizations/</link>
		<comments>http://adventureswith.net/asp-net-mvc3-razor-and-resx-localisationslocalizations/#comments</comments>
		<pubDate>Fri, 11 Nov 2011 19:11:48 +0000</pubDate>
		<dc:creator>Dann</dc:creator>
				<category><![CDATA[ASP.Net]]></category>
		<category><![CDATA[asp mvc]]></category>
		<category><![CDATA[localisation]]></category>
		<category><![CDATA[resx]]></category>

		<guid isPermaLink="false">http://adventureswith.net/?p=256</guid>
		<description><![CDATA[I was just applying for a small two week contract that was based on Localisation. This is the work I did to give myself a quick refresh. It reminded me on how well Asp.Net MVC3 works with RESX localisations. As &#8230; <a href="http://adventureswith.net/asp-net-mvc3-razor-and-resx-localisationslocalizations/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<div class="rw-left"><div class="rw-ui-container rw-class-blog-post rw-urid-2570"></div></div><p><em>I was just applying for a small two week contract that was based on Localisation. This is the work I did to give myself a quick refresh. It reminded me on how well Asp.Net MVC3 works with RESX localisations.</em></p>
<p><a href="http://adventureswith.net/wp-content/uploads/2011/11/image4.png"><img style="background-image: none; padding-left: 0px; padding-right: 0px; display: inline; float: right; padding-top: 0px; border: 0px;" title="image" src="http://adventureswith.net/wp-content/uploads/2011/11/image_thumb4.png" alt="image" width="229" height="244" align="right" border="0" /></a>As a start, you will need someway to change your Local Language quickly. My preferred choice is using the <a href="https://addons.mozilla.org/en-US/firefox/addon/quick-locale-switcher/">Quick Locale Switcher for Firefox</a> which is in the image.</p>
<p>I have (over the last few hours) built up a fully translated version of the default MVC3 project which is viewable at <a title="RESX Examples" href="http://resxstuff.adventureswith.net"><strong>http://resxstuff.adventureswith.net</strong></a> and is viewable as 2 languages available English (Which is default) and French (which is terribly translated BTW).</p>
<h2>Turn On The World – Enable Globalisation</h2>
<p>To enable globalisation, you will need to add this line to your web.config  in the &lt;system.web&gt;&lt;/system.web&gt; section:</p>
<pre class="brush: xhtml; toolbar: false">&lt;globalization uiCulture="auto" culture="auto"/&gt;</pre>
<h2>Add the RESX files; and let the class be seen</h2>
<p>If you are coming from Web Forms, note that for MVC you DO NOT HAVE TO (and perhaps should not) add your RESX to App_GlobalResourses or even App_LocalResources.</p>
<p>Just add them wherever you want and they can still be used, but only if you do the following:</p>
<ul>
<li>When you add<span id="more-256"></span>a new RESX, Change the Access Modifier to Public</li>
</ul>
<p>Otherwise you will be wondering why your resources don’t show up.</p>
<p><a href="http://adventureswith.net/wp-content/uploads/2011/11/image.png"><img style="background-image: none; padding-left: 0px; padding-right: 0px; display: inline; padding-top: 0px; border-width: 0px;" title="image" src="http://adventureswith.net/wp-content/uploads/2011/11/image_thumb.png" alt="image" width="709" height="380" border="0" /></a></p>
<p><a href="http://adventureswith.net/wp-content/uploads/2011/11/image3.png"><img style="background-image: none; padding-left: 0px; padding-right: 0px; display: inline; float: left; padding-top: 0px; border-width: 0px;" title="image" src="http://adventureswith.net/wp-content/uploads/2011/11/image_thumb3.png" alt="image" width="153" height="176" align="left" border="0" /></a>I followed the advice given by a few others to use the “RESX to a View” method, where you mimic the View folder structure within the Resources folder; as seen in the picture.</p>
<p>This usually means it is fairly easy to find the right file for the string that you want to change in a hurry.</p>
<p>&nbsp;</p>
<h2>Views – Changing out the text</h2>
<p>I went through all the views and changed every “message to the user” into a string resource in a RESX file.</p>
<p><del>All the <strong>Html.LabelFor </strong>calls were replaced with resources calls</del><br />
<del>e.g. <strong>@Html.LabelFor (x =&gt; x.Username) </strong>became<strong> @Resources.Account.Register.Username<br />
</strong></del></p>
<pre class="brush: csharp; gutter: true">//Resource file is set with the Name as the Key
[Display(Name = "NewPassword", ResourceType = typeof(Resources.Language))]
public string NewPassword { get; set; }</pre>
<pre class="brush: csharp; gutter: true">//Razor syntax stays the same
@Html.LabelFor(x =&gt; x.NewPassword)</pre>
<p>All boilerplate text was replaced with Resources e.g. “Login was unsuccessful. Please correct the errors and try again.” was pulled out of <em>LogOn.cshtml</em> and moved to <em>Resources.Account.LogOn.Login_Unsuccessful</em></p>
<pre>@Html.ValidationSummary(true, Resources.Account.LogOn.Login_Unsuccessful)</pre>
<h2>Controllers – Fixing up user messages</h2>
<p>Essentially controllers are the same deal as the views. Take the static text, place it in a RESX file where it makes sense.</p>
<p>I used the files related to the views that were to be returned e.g. If an action method returned the Logon view, then I used the Logon.resx file for that text.</p>
<pre class="brush: c-sharp; toolbar: false">using Resources;

....
....
....
[HttpPost]
       public ActionResult Register(RegisterModel model)
        {
            if (ModelState.IsValid)
            {
                // Attempt to register the user
                MembershipCreateStatus createStatus;
                Membership.CreateUser(model.UserName, model.Password, model.Email, null, null, true, null, out createStatus);

                if (createStatus == MembershipCreateStatus.Success)
                {
                    FormsAuthentication.SetAuthCookie(model.UserName, false /* createPersistentCookie */);
                    return RedirectToAction("Index", "Home");
                }
                else
                {
                    ModelState.AddModelError("", ErrorCodeToString(createStatus));
                }
            }

            // If we got this far, something failed, redisplay form
            return View(model);
        }

       private static string ErrorCodeToString(MembershipCreateStatus createStatus)
        {
            // See http://go.microsoft.com/fwlink/?LinkID=177550 for
            // a full list of status codes.
            switch (createStatus)
            {
                case MembershipCreateStatus.DuplicateUserName:
                    return ErrorStrings.Username_Exists;  //these are the resource strings
                case MembershipCreateStatus.DuplicateEmail:
                    return ErrorStrings.Email_Exists;
                case MembershipCreateStatus.InvalidPassword:
                    return ErrorStrings.Invalid_Password;
                case MembershipCreateStatus.InvalidEmail:
                    return ErrorStrings.Invalid_Email;
                case MembershipCreateStatus.InvalidAnswer:
                    return ErrorStrings.Invalid_Answer;
                case MembershipCreateStatus.InvalidQuestion:
                    return ErrorStrings.Invalid_Question;
                case MembershipCreateStatus.InvalidUserName:
                    return ErrorStrings.Invalid_Username;
                case MembershipCreateStatus.ProviderError:
                    return ErrorStrings.Provider_Error;
                case MembershipCreateStatus.UserRejected:
                    return ErrorStrings.User_Rejected;
                default:
                    return ErrorStrings.Default_Error;
            }
        }</pre>
<h2>Models &amp; Validation</h2>
<p>The only tricky part is this one. And it’s not even that tricky.</p>
<p>Instead of where you would normally put <em>ErrorMessage=”Something bad happened here”</em>, you would instead point it the RESX files.</p>
<p>All of the Validation attributes have the Properties <em>ErrorMessageResourceType</em> and <em>ErrorMessageResourceName</em> which are explained as follows:</p>
<ul>
<li>ErrorMessageResourceType – Points to the resource file type</li>
<li>ErrorMessageResourceName – Points to the KEY within that resource file</li>
</ul>
<p>It is sad that the key is not strongly typed, like in the rest of the code; this is the annoying nature of attributes.</p>
<p>So here we have the example of a model with resource friendly validation:</p>
<pre class="brush: c-sharp; toolbar: false">public class LogOnModel     {      

[Required(ErrorMessageResourceType = typeof(ErrorStrings), ErrorMessageResourceName = "Required")]
public string UserName { get; set; }         

[Required(ErrorMessageResourceType = typeof(ErrorStrings), ErrorMessageResourceName = "Required")]
[DataType(DataType.Password)]
public string Password { get; set; }  

}</pre>
<h2>RESX &#8211; Adding more languages</h2>
<p>So now you have all the files in place to use the RESX files that have been created as you went along.</p>
<p>Adding RESX files for other languages is easy. Just copy, paste, rename and it works.</p>
<p>The naming convention is as follows (from lowest to highest priority):</p>
<ul>
<li>Default &#8211; mytranslation.resx</li>
<li>Language &#8211; mytranslation.en.resx  or mytranslation.fr.resx</li>
<li>Regional &#8211; mytranslation.en-GB.resx or mytranslation.en-US.resx</li>
</ul>
<p>So how do you create these for more languages? Luckily there is a fantastic free opensource tool that is available. <a href="http://resxtranslator.codeplex.com/">ResxTranslator from Codeplex</a> is able to read all your RESX files in the project and help you out by creating the other languages.</p>
<p>After they are created, just include them in the project.</p>
<p><em>Just a note</em> that I haven’t been able to create another language from inside ResxTranslator, by which I mean add a language that doesn’t already exist somewhere in the resx files already.</p>
<p>First, I have to first create a file with the language in the filename, as shown above, for it to show up as an option in the “Add Language” tool. But once I have added a language/dialect for one RESX, it is available for all files. Maybe I am missing something here.</p>
<p><a href="http://adventureswith.net/wp-content/uploads/2011/11/image2.png"><img style="background-image: none; padding-left: 0px; padding-right: 0px; display: inline; padding-top: 0px; border-width: 0px;" title="image" src="http://adventureswith.net/wp-content/uploads/2011/11/image_thumb2.png" alt="image" width="626" height="372" border="0" /></a></p>
<h2>Further Reading</h2>
<p>Nadeem Afana &#8211; Internationalising MVC3<br />
<a href="http://afana.me/post/aspnet-mvc-internationalization.aspx">http://afana.me/post/aspnet-mvc-internationalization.aspx</a></p>
<p><span style="font-size: small;"><span style="font-size: small;">K. Scott Allen &#8211; Resource Files and ASP.NET MVC Projects</span></span><span style="font-size: small;"><br />
</span><a href="http://odetocode.com/Blogs/scott/archive/2009/07/16/resource-files-and-asp-net-mvc-projects.aspx"><span style="font-size: small;"><span style="font-size: small;">http://odetocode.com/Blogs/scott/archive/2009/07/16/resource-files-and-asp-net-mvc-projects.aspx</span></span></a></p>
]]></content:encoded>
			<wfw:commentRss>http://adventureswith.net/asp-net-mvc3-razor-and-resx-localisationslocalizations/feed/</wfw:commentRss>
		<slash:comments>6</slash:comments>
		</item>
		<item>
		<title>MSI Executable&#8211;Extract to a folder</title>
		<link>http://adventureswith.net/msi-executableextract-to-a-folder/</link>
		<comments>http://adventureswith.net/msi-executableextract-to-a-folder/#comments</comments>
		<pubDate>Fri, 22 Apr 2011 11:02:05 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://adventureswith.net/msi-executableextract-to-a-folder/</guid>
		<description><![CDATA[Today I had the unfortunate situation of installing sample code files. This means downloading a MSI and then running it so it can place the sample code somewhere on your computer. I don’t think any developer can appreciate this. Where &#8230; <a href="http://adventureswith.net/msi-executableextract-to-a-folder/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<div class="rw-left"><div class="rw-ui-container rw-class-blog-post rw-urid-2480"></div></div><p>Today I had the unfortunate situation of installing sample code files. This means downloading a MSI and then running it so it can place the sample code somewhere on your computer. I don’t think any developer can appreciate this. Where is the zip file? </p>
<p>Well, it kind of is a zip file. In a sense. You can run a command to output that pesky MSI to a folder. How? </p>
<p>Running as admin:</p>
<p><font face="Courier New">msiexec /a yourmsi.msi /qb TARGETDIR=c:\output_to_here\</font></p>
<p>Credit to <a href="http://stackoverflow.com/questions/549065/how-to-extract-files-from-msi-package">neoice for answering this in StackOverflow</a></p>
]]></content:encoded>
			<wfw:commentRss>http://adventureswith.net/msi-executableextract-to-a-folder/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Using Common.Logging with Glimpse and ASP.Net MVC</title>
		<link>http://adventureswith.net/using-common-logging-with-glimpse-and-asp-net-mvc/</link>
		<comments>http://adventureswith.net/using-common-logging-with-glimpse-and-asp-net-mvc/#comments</comments>
		<pubDate>Thu, 21 Apr 2011 10:24:28 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[ASP.Net]]></category>
		<category><![CDATA[asp mvc]]></category>
		<category><![CDATA[glimpse]]></category>
		<category><![CDATA[nuget]]></category>
		<category><![CDATA[visual studio]]></category>

		<guid isPermaLink="false">http://adventureswith.net/using-common-logging-with-glimpse-and-asp-net-mvc/</guid>
		<description><![CDATA[Glimpse is an amazing tool (that comes available with Nuget in Visual Studio 2010 [included in the Tools Update]) that can hook into the System.Diagnostic.Trace (ewww) to display error messages on your client side browser. Like so: I don’t want &#8230; <a href="http://adventureswith.net/using-common-logging-with-glimpse-and-asp-net-mvc/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<div class="rw-left"><div class="rw-ui-container rw-class-blog-post rw-urid-2360"></div></div><p><a href="http://nuget.org/List/Packages/Glimpse">Glimpse</a> is an amazing tool (that comes available with <a href="http://nuget.org/">Nuget</a> in Visual Studio 2010 [<a href="http://www.microsoft.com/downloads/en/details.aspx?FamilyID=82cbd599-d29a-43e3-b78b-0f863d22811a&amp;displaylang=en">included in the Tools Update</a>]) that can hook into the System.Diagnostic.Trace (ewww) to display error messages on your client side browser. Like so:</p>
<p><a href="http://adventureswith.net/wp-content/uploads/2011/04/image.png"><img style="background-image: none; border-right-width: 0px; padding-left: 0px; padding-right: 0px; display: inline; border-top-width: 0px; border-bottom-width: 0px; border-left-width: 0px; padding-top: 0px" title="image" border="0" alt="image" src="http://adventureswith.net/wp-content/uploads/2011/04/image_thumb.png" width="543" height="327"></a></p>
<p><em>I don’t want to use System.Diagnostics as my Logging system</em>. I could use it on the side, but not as the core. This would be awful and much too rigid. The good thing is, I typically use Common.Logging in all my projects because of it’s way to tie ANY LOGGING SYSTEM into a single point then ship those events off to any other receiving system. The receiving system in this case, is&nbsp; of course, System.Diagnostics.Trace using the TraceLoggerFactoryAdapter</p>
<p><span style="text-decoration: underline">So to get to the point above this is what I did:</span></p>
<ol>
<li>Using Create a new MVC project in VS2010
<li>Nuget
<ol>
<li>Install-Package Glimpse
<li>Install-Package Common.Logging </li>
</ol>
<li>Add Common.Logging&nbsp; to the web config
<div style="padding-bottom: 0px; margin: 0px; padding-left: 0px; padding-right: 0px; display: inline; float: none; padding-top: 0px" id="scid:9D7513F9-C04C-4721-824A-2B34F0212519:ac4b2b10-3d7b-4171-9cb7-1428e06708a2" class="wlWriterEditableSmartContent">
<pre style=" width: 510px; height: 300px;background-color:White;overflow: auto;">
<div><!--

Code highlighting produced by Actipro CodeHighlighter (freeware)

http://www.CodeHighlighter.com/

--><span style="color: #008000;">&lt;!--</span><span style="color: #008000;">...config sections... </span><span style="color: #008000;">--&gt;</span><span style="color: #000000;">
</span><span style="color: #0000FF;">&lt;</span><span style="color: #800000;">sectionGroup </span><span style="color: #FF0000;">name</span><span style="color: #0000FF;">=&quot;common&quot;</span><span style="color: #0000FF;">&gt;</span><span style="color: #000000;">
      </span><span style="color: #0000FF;">&lt;</span><span style="color: #800000;">section </span><span style="color: #FF0000;">name</span><span style="color: #0000FF;">=&quot;logging&quot;</span><span style="color: #FF0000;"> type</span><span style="color: #0000FF;">=&quot;Common.Logging.ConfigurationSectionHandler, Common.Logging&quot;</span><span style="color: #FF0000;"> </span><span style="color: #0000FF;">/&gt;</span><span style="color: #000000;">
</span><span style="color: #0000FF;">&lt;/</span><span style="color: #800000;">sectionGroup</span><span style="color: #0000FF;">&gt;</span><span style="color: #000000;"> 

</span><span style="color: #008000;">&lt;!--</span><span style="color: #008000;">...configuration... </span><span style="color: #008000;">--&gt;</span><span style="color: #000000;">
</span><span style="color: #0000FF;">&lt;</span><span style="color: #800000;">common</span><span style="color: #0000FF;">&gt;</span><span style="color: #000000;">
    </span><span style="color: #0000FF;">&lt;</span><span style="color: #800000;">logging</span><span style="color: #0000FF;">&gt;</span><span style="color: #000000;">
      </span><span style="color: #0000FF;">&lt;</span><span style="color: #800000;">factoryAdapter </span><span style="color: #FF0000;">type</span><span style="color: #0000FF;">=&quot;Common.Logging.Simple.TraceLoggerFactoryAdapter, Common.Logging, Version=2.0.0.0, Culture=neutral, PublicKeyToken=af08829b84f0328e&quot;</span><span style="color: #0000FF;">&gt;</span><span style="color: #000000;">
        </span><span style="color: #0000FF;">&lt;</span><span style="color: #800000;">arg </span><span style="color: #FF0000;">key</span><span style="color: #0000FF;">=&quot;level&quot;</span><span style="color: #FF0000;"> value</span><span style="color: #0000FF;">=&quot;ALL&quot;</span><span style="color: #FF0000;"> </span><span style="color: #0000FF;">/&gt;</span><span style="color: #000000;">
        </span><span style="color: #0000FF;">&lt;</span><span style="color: #800000;">arg </span><span style="color: #FF0000;">key</span><span style="color: #0000FF;">=&quot;showLogName&quot;</span><span style="color: #FF0000;"> value</span><span style="color: #0000FF;">=&quot;true&quot;</span><span style="color: #FF0000;"> </span><span style="color: #0000FF;">/&gt;</span><span style="color: #000000;">
        </span><span style="color: #0000FF;">&lt;</span><span style="color: #800000;">arg </span><span style="color: #FF0000;">key</span><span style="color: #0000FF;">=&quot;showDataTime&quot;</span><span style="color: #FF0000;"> value</span><span style="color: #0000FF;">=&quot;true&quot;</span><span style="color: #FF0000;"> </span><span style="color: #0000FF;">/&gt;</span><span style="color: #000000;">
        </span><span style="color: #0000FF;">&lt;</span><span style="color: #800000;">arg </span><span style="color: #FF0000;">key</span><span style="color: #0000FF;">=&quot;dateTimeFormat&quot;</span><span style="color: #FF0000;"> value</span><span style="color: #0000FF;">=&quot;yyyy/MM/dd HH:mm:ss:fff&quot;</span><span style="color: #FF0000;"> </span><span style="color: #0000FF;">/&gt;</span><span style="color: #000000;">
      </span><span style="color: #0000FF;">&lt;/</span><span style="color: #800000;">factoryAdapter</span><span style="color: #0000FF;">&gt;</span><span style="color: #000000;">
    </span><span style="color: #0000FF;">&lt;/</span><span style="color: #800000;">logging</span><span style="color: #0000FF;">&gt;</span><span style="color: #000000;">
</span><span style="color: #0000FF;">&lt;/</span><span style="color: #800000;">common</span><span style="color: #0000FF;">&gt;</span><span style="color: #000000;">
</span></div>
</pre>
<p><!-- Code inserted with Steve Dunn's Windows Live Writer Code Formatter Plugin.  http://dunnhq.com --></div>
<li>Add some “problems”<a href="http://adventureswith.net/wp-content/uploads/2011/04/image1.png"><img style="background-image: none; border-right-width: 0px; padding-left: 0px; padding-right: 0px; display: inline; border-top-width: 0px; border-bottom-width: 0px; border-left-width: 0px; padding-top: 0px" title="image" border="0" alt="image" src="http://adventureswith.net/wp-content/uploads/2011/04/image_thumb1.png" width="469" height="337"></a>
<li>Run the project and go to http://[your project url]/Gimpse/Configthen click “Turn Glimpse On”. Don’t be surprised that nothing happens.
<p><a href="http://adventureswith.net/wp-content/uploads/2011/04/image2.png"><img style="background-image: none; border-right-width: 0px; padding-left: 0px; padding-right: 0px; display: inline; border-top-width: 0px; border-bottom-width: 0px; border-left-width: 0px; padding-top: 0px" title="image" border="0" alt="image" src="http://adventureswith.net/wp-content/uploads/2011/04/image_thumb2.png" width="438" height="431"></a></p>
<li>Go to your main page http://[your project url]/ – See the icon in the right hand corner? Click that.<br /><a href="http://adventureswith.net/wp-content/uploads/2011/04/image3.png"><img style="background-image: none; border-right-width: 0px; padding-left: 0px; padding-right: 0px; display: inline; border-top-width: 0px; border-bottom-width: 0px; border-left-width: 0px; padding-top: 0px" title="image" border="0" alt="image" src="http://adventureswith.net/wp-content/uploads/2011/04/image_thumb3.png" width="451" height="257"></a>
<li>Look at those errors! </li>
</ol>
<p><a href="http://adventureswith.net/wp-content/uploads/2011/04/image4.png"><img style="background-image: none; border-right-width: 0px; padding-left: 0px; padding-right: 0px; display: inline; border-top-width: 0px; border-bottom-width: 0px; border-left-width: 0px; padding-top: 0px" title="image" border="0" alt="image" src="http://adventureswith.net/wp-content/uploads/2011/04/image_thumb4.png" width="500" height="302"></a></p>
<h2><span style="color: #000000">Conclusion?</span></h2>
<p>Amazing! The guys who made Glimpse deserve some sort of medal!</p>
]]></content:encoded>
			<wfw:commentRss>http://adventureswith.net/using-common-logging-with-glimpse-and-asp-net-mvc/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>AWStats on IIS7 (in less steps than the closest cup of coffee. Well almost. )</title>
		<link>http://adventureswith.net/awstats-on-iis7-in-less-steps-than-the-closest-cup-of-coffee-well-almost/</link>
		<comments>http://adventureswith.net/awstats-on-iis7-in-less-steps-than-the-closest-cup-of-coffee-well-almost/#comments</comments>
		<pubDate>Mon, 14 Mar 2011 10:27:43 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[ASP.Net]]></category>
		<category><![CDATA[awstats]]></category>
		<category><![CDATA[IIS]]></category>
		<category><![CDATA[iis7]]></category>

		<guid isPermaLink="false">http://adventureswith.net/awstats-on-iis7-in-less-steps-than-the-closest-cup-of-coffee-well-almost/</guid>
		<description><![CDATA[So, you want AWStats on IIS7?&#160; This doesn’t require a restart of IIS, so it can be done in place with no issues. For IIS6, you will need to look elsewhere sorry. I’m also sorry you still have to deal &#8230; <a href="http://adventureswith.net/awstats-on-iis7-in-less-steps-than-the-closest-cup-of-coffee-well-almost/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<div class="rw-left"><div class="rw-ui-container rw-class-blog-post rw-urid-2200"></div></div><p><a href="http://adventureswith.net/wp-content/uploads/2011/03/image22.png"><img style="background-image: none; border-right-width: 0px; padding-left: 0px; padding-right: 0px; display: block; float: none; border-top-width: 0px; border-bottom-width: 0px; margin-left: auto; border-left-width: 0px; margin-right: auto; padding-top: 0px" title="image" border="0" alt="image" src="http://adventureswith.net/wp-content/uploads/2011/03/image_thumb21.png" width="188" height="143" /></a></p>
<p>So, you want AWStats on IIS7?&#160; This doesn’t require a restart of IIS, so it can be done in place with no issues.</p>
<p>For IIS6, you will need to look elsewhere sorry. I’m also sorry you still have to deal with IIS6.</p>
<h3>The 2 Required Files</h3>
<li>ActiveState ActivePerl &#8211; <a title="http://www.activestate.com/activeperl" href="http://www.activestate.com/activeperl">http://www.activestate.com/activeperl</a> </li>
<li>AWStats Installer (<a href="http://prdownloads.sourceforge.net/awstats/awstats-7.0.exe">awstats-7.0.exe</a>)&#160; <a title="http://awstats.sourceforge.net/#DOWNLOAD" href="http://awstats.sourceforge.net/#DOWNLOAD">http://awstats.sourceforge.net/#DOWNLOAD</a> </li>
<li>
<h3>Installing ActivePerl</h3>
<p>&#160;</p>
<p><a href="http://adventureswith.net/wp-content/uploads/2011/03/image23.png"><img style="background-image: none; border-right-width: 0px; padding-left: 0px; padding-right: 0px; display: inline; border-top-width: 0px; border-bottom-width: 0px; border-left-width: 0px; padding-top: 0px" title="image" border="0" alt="image" src="http://adventureswith.net/wp-content/uploads/2011/03/image_thumb22.png" width="362" height="280" /></a></p>
<p><span id="more-219"></span><!-- more -->
<p>Accept the agreements, etc.. until you come to the Custom Setup screen</p>
<p><a href="http://adventureswith.net/wp-content/uploads/2011/03/image24.png"><img style="background-image: none; border-right-width: 0px; padding-left: 0px; padding-right: 0px; display: inline; border-top-width: 0px; border-bottom-width: 0px; border-left-width: 0px; padding-top: 0px" title="image" border="0" alt="image" src="http://adventureswith.net/wp-content/uploads/2011/03/image_thumb23.png" width="368" height="285" /></a></p>
<p>I have removed the Docs and the Examples. </p>
<p><a href="http://adventureswith.net/wp-content/uploads/2011/03/image25.png"><img style="background-image: none; border-right-width: 0px; padding-left: 0px; padding-right: 0px; display: inline; border-top-width: 0px; border-bottom-width: 0px; border-left-width: 0px; padding-top: 0px" title="image" border="0" alt="image" src="http://adventureswith.net/wp-content/uploads/2011/03/image_thumb24.png" width="359" height="278" /></a></p>
<p>I have unticked the create IIS virtual directory as it’s not needed. </p>
<p><a href="http://adventureswith.net/wp-content/uploads/2011/03/image26.png"><img style="background-image: none; border-right-width: 0px; padding-left: 0px; padding-right: 0px; display: inline; border-top-width: 0px; border-bottom-width: 0px; border-left-width: 0px; padding-top: 0px" title="image" border="0" alt="image" src="http://adventureswith.net/wp-content/uploads/2011/03/image_thumb25.png" width="360" height="278" /></a></p>
<p>Click Install.      <br /><font color="#ff0000">This is important: </font>When it has finished installing, LOG OUT of (or even better, reboot if you can) the system.       <br /><em>Logging out and back in will allow the system to pick up the new PATH that was modified by the ActivePerl install. </em></p>
<h3>Installing AWStats</h3>
<p><a href="http://adventureswith.net/wp-content/uploads/2011/03/image27.png"><img style="background-image: none; border-right-width: 0px; padding-left: 0px; padding-right: 0px; display: inline; border-top-width: 0px; border-bottom-width: 0px; border-left-width: 0px; padding-top: 0px" title="image" border="0" alt="image" src="http://adventureswith.net/wp-content/uploads/2011/03/image_thumb26.png" width="348" height="268" /></a></p>
<p><a href="http://adventureswith.net/wp-content/uploads/2011/03/image28.png"><img style="background-image: none; border-right-width: 0px; padding-left: 0px; padding-right: 0px; display: inline; border-top-width: 0px; border-bottom-width: 0px; border-left-width: 0px; padding-top: 0px" title="image" border="0" alt="image" src="http://adventureswith.net/wp-content/uploads/2011/03/image_thumb27.png" width="348" height="268" /></a></p>
<p>Use the default directory, and click Install</p>
<p><font color="#ff0000">If you get an message stating that no Perl is detected:        <br /></font>Make sure you installed ActivePerl, and       <br />Log out and log in again, or       <br />Restart the machine </p>
<p>You will be presented with this; a command prompt. This is going to set up your default config file for your domain. </p>
<p><a href="http://adventureswith.net/wp-content/uploads/2011/03/image29.png"><img style="background-image: none; border-right-width: 0px; padding-left: 0px; padding-right: 0px; display: inline; border-top-width: 0px; border-bottom-width: 0px; border-left-width: 0px; padding-top: 0px" title="image" border="0" alt="image" src="http://adventureswith.net/wp-content/uploads/2011/03/image_thumb28.png" width="377" height="189" /></a></p>
<p>It will try to detect Apache, but you don’t want that. </p>
<p>So type &quot;none”</p>
<p><a href="http://adventureswith.net/wp-content/uploads/2011/03/image30.png"><img style="background-image: none; border-right-width: 0px; padding-left: 0px; padding-right: 0px; display: inline; border-top-width: 0px; border-bottom-width: 0px; border-left-width: 0px; padding-top: 0px" title="image" border="0" alt="image" src="http://adventureswith.net/wp-content/uploads/2011/03/image_thumb29.png" width="371" height="186" /></a></p>
<p>It is asking you to create a new config file. </p>
<p>Type “y”</p>
<p><a href="http://adventureswith.net/wp-content/uploads/2011/03/image31.png"><img style="background-image: none; border-right-width: 0px; padding-left: 0px; padding-right: 0px; display: inline; border-top-width: 0px; border-bottom-width: 0px; border-left-width: 0px; padding-top: 0px" title="image" border="0" alt="image" src="http://adventureswith.net/wp-content/uploads/2011/03/image_thumb30.png" width="369" height="185" /></a></p>
<p>Enter in your domain name e.g. mydomain.com </p>
<p><a href="http://adventureswith.net/wp-content/uploads/2011/03/image32.png"><img style="background-image: none; border-right-width: 0px; padding-left: 0px; padding-right: 0px; display: inline; border-top-width: 0px; border-bottom-width: 0px; border-left-width: 0px; padding-top: 0px" title="image" border="0" alt="image" src="http://adventureswith.net/wp-content/uploads/2011/03/image_thumb31.png" width="363" height="182" /></a></p>
<p>The config still needs to be set up properly, but for now we will create the website and the config after that.</p>
<p>&#160;</p>
<h3>Creating an IIS7 site</h3>
<p>Create a new site through INetMgr (the standard IIS manager)</p>
<p><a href="http://adventureswith.net/wp-content/uploads/2011/03/image33.png"><img style="background-image: none; border-right-width: 0px; padding-left: 0px; padding-right: 0px; display: inline; border-top-width: 0px; border-bottom-width: 0px; border-left-width: 0px; padding-top: 0px" title="image" border="0" alt="image" src="http://adventureswith.net/wp-content/uploads/2011/03/image_thumb32.png" width="383" height="372" /></a></p>
<p>I have un-ticked “start web site immediately”, but this may not be important. You will have to restart this site once it is configured properly. </p>
<p>Your settings can be different to these, but I have changed the default port to a random port (e.g. 1388) so this site is neither running as the default site, nor visible to the public as our firewall blocks this port.</p>
<p>&#160;</p>
<p><a href="http://adventureswith.net/wp-content/uploads/2011/03/image34.png"><img style="background-image: none; border-right-width: 0px; padding-left: 0px; padding-right: 0px; display: inline; border-top-width: 0px; border-bottom-width: 0px; border-left-width: 0px; padding-top: 0px" title="image" border="0" alt="image" src="http://adventureswith.net/wp-content/uploads/2011/03/image_thumb33.png" width="361" height="315" /></a></p>
<p>For this website (awstats), go to the “Handler Mappings”</p>
<p><a href="http://adventureswith.net/wp-content/uploads/2011/03/image35.png"><img style="background-image: none; border-right-width: 0px; padding-left: 0px; padding-right: 0px; display: inline; border-top-width: 0px; border-bottom-width: 0px; border-left-width: 0px; padding-top: 0px" title="image" border="0" alt="image" src="http://adventureswith.net/wp-content/uploads/2011/03/image_thumb34.png" width="228" height="215" /></a></p>
<p>Click “Add Module Mapping”.</p>
<p><a href="http://adventureswith.net/wp-content/uploads/2011/03/image36.png"><img style="background-image: none; border-right-width: 0px; padding-left: 0px; padding-right: 0px; display: inline; border-top-width: 0px; border-bottom-width: 0px; border-left-width: 0px; padding-top: 0px" title="image" border="0" alt="image" src="http://adventureswith.net/wp-content/uploads/2011/03/image_thumb35.png" width="349" height="302" /></a></p>
<p>Set it up as I have here:</p>
<p>Request Path: *.pl      <br />Module: IsapiModule       <br />Executable: C:\Perl\bin\PerlEx30.dll       <br />Name: Perl</p>
<p><a href="http://adventureswith.net/wp-content/uploads/2011/03/image37.png"><img style="background-image: none; border-right-width: 0px; padding-left: 0px; padding-right: 0px; display: inline; border-top-width: 0px; border-bottom-width: 0px; border-left-width: 0px; padding-top: 0px" title="image" border="0" alt="image" src="http://adventureswith.net/wp-content/uploads/2011/03/image_thumb36.png" width="407" height="167" /></a></p>
<p>Click Yes. You do want this to be allowed.</p>
<p><font color="#ff0000">64 bit Machines only:        <br /></font><font color="#ff0000">Make sure the site’s application pool is set to “Enable 32 Bit Applications”</font></p>
<p><a href="http://adventureswith.net/wp-content/uploads/2011/03/image38.png"><img style="background-image: none; border-right-width: 0px; padding-left: 0px; padding-right: 0px; display: inline; border-top-width: 0px; border-bottom-width: 0px; border-left-width: 0px; padding-top: 0px" title="image" border="0" alt="image" src="http://adventureswith.net/wp-content/uploads/2011/03/image_thumb37.png" width="418" height="190" /></a></p>
<p><a href="http://adventureswith.net/wp-content/uploads/2011/03/image39.png"><img style="background-image: none; border-right-width: 0px; margin: 0px; padding-left: 0px; padding-right: 0px; display: inline; border-top-width: 0px; border-bottom-width: 0px; border-left-width: 0px; padding-top: 0px" title="image" border="0" alt="image" src="http://adventureswith.net/wp-content/uploads/2011/03/image_thumb38.png" width="201" height="93" /></a></p>
<p>Start up the website. You may need to start the application pool as well. </p>
<p>&#160;</p>
<h3>Moving the AWStats site into place</h3>
<p>Go to your AWStats install folder </p>
<p><a href="http://adventureswith.net/wp-content/uploads/2011/03/image40.png"><img style="background-image: none; border-right-width: 0px; padding-left: 0px; padding-right: 0px; display: inline; border-top-width: 0px; border-bottom-width: 0px; border-left-width: 0px; padding-top: 0px" title="image" border="0" alt="image" src="http://adventureswith.net/wp-content/uploads/2011/03/image_thumb39.png" width="341" height="269" /></a></p>
<p>(mine is C:\Program Files (x86)\AWStats\wwwroot\ )</p>
<p>Copy these folders and files to your website folder (C:\inetpub\awstats)      </p>
<p>Go to your site in a browser to see if you are good to go:</p>
<p><a title="http://localhost:1388/cgi-bin/awstats.pl" href="http://localhost:1388/cgi-bin/awstats.pl">http://localhost:1388/cgi-bin/awstats.pl</a></p>
<p>You SHOULD get an error like this: </p>
<p><em>Error: Couldn&#8217;t open config file &quot;awstats.localhost.conf&quot; nor &quot;awstats.conf&quot;. Please read the documentation for directories where the configuration file should be located.</em> </p>
<p>If you do, be happy. We can move on. If you don’t, leave me a comment and I can try to help you out. </p>
<h3>Getting The Right Information From the Target Site</h3>
<p>You will need to get this information from your site that you wish to analyse:</p>
<p><u>1. The location of your log files</u></p>
<p>This is typically C:\inetpub\logs\LogFiles\W3SVC + the ID of the site. <em>Hint: The ID can be found in the INetMgr where the sites are listed.</em></p>
<p><a href="http://adventureswith.net/wp-content/uploads/2011/03/image41.png"><img style="background-image: none; border-right-width: 0px; padding-left: 0px; padding-right: 0px; display: inline; border-top-width: 0px; border-bottom-width: 0px; border-left-width: 0px; padding-top: 0px" title="image" border="0" alt="image" src="http://adventureswith.net/wp-content/uploads/2011/03/image_thumb40.png" width="455" height="87" /></a></p>
<p><u>2. The name of your log files</u></p>
<p>Is the name u_ex or just ex? Maybe something different altogether.</p>
<p>e.g. u_ex101110.log</p>
<p><u>3. The format of your log files</u></p>
<p>In one of the log files that are in that folder, there is a line at the top you will need to copy:</p>
<p>#Fields: date time s-ip cs-method cs-uri-stem cs-uri-query s-port cs-username c-ip cs(User-Agent) sc-status sc-substatus sc-win32-status time-taken</p>
<h3>Setting up the Config and Linking to the Logs</h3>
<p><a href="http://adventureswith.net/wp-content/uploads/2011/03/image42.png"><img style="background-image: none; border-right-width: 0px; padding-left: 0px; padding-right: 0px; display: inline; border-top-width: 0px; border-bottom-width: 0px; border-left-width: 0px; padding-top: 0px" title="image" border="0" alt="image" src="http://adventureswith.net/wp-content/uploads/2011/03/image_thumb41.png" width="452" height="202" /></a></p>
<p>If you go to your website folder and have a look in the cgi-bin (C:\inetpub\awstats\cgi-bin) you will see a file called <em>awstats.mydomain.com.conf</em></p>
<p>Open this in your favourite text editor. You will need to change a few things:</p>
<p>LogFile=&quot;/var/log/httpd/mylog.log&quot;</p>
<p>will need to be replaced by the location of your log files for IIS7.</p>
<p>For “u_ex” names:</p>
<p>LogFile=”[PATH TO YOUR LOG FILES]\u_ex%YY-24%MM-24%DD-24.log”</p>
<p>The funny bit at the end is actually matching the log to the day (or more accurately, the previous day) the report runs. This means your report generation will need to be run at least every day. </p>
<p>You need to now set the format in which AWStats reads the files</p>
<p>Look for </p>
<p>LogFormat=1</p>
<p>And replace this with (using the example format taken from the log file I used)</p>
<p>LogFormat= “date time s-ip cs-method cs-uri-stem cs-uri-query s-port cs-username c-ip cs(User-Agent) sc-status sc-substatus sc-win32-status time-taken”</p>
<p><em>NOTE: This is not the optimal log file format setup for AWStats.There is guide at <a href="http://sysadmingeek.com/articles/setting-up-awstats-on-windows-server-and-iis/">sysadmin geek</a> that can help with setting up optimally, with data transfer and referrer logs. To do this you will need to change the IIS log settings to provide different data. The reason I’m leaving that out for now is that I want this to be an easy setup. You can change things after you have got it working! </em></p>
<p>Find HostAliases and add in all aliases associated with this site.      <br />HostAliases=&quot;mydomain.com www.mydomain.com 127.0.0.1 localhost&quot;</p>
<p>From a security standpoint, there are some other settings you can play with, but they are not going to be looked at deeply here. Examples&#160; are :</p>
<p>AllowAccessFromWebToAuthenticatedUsersOnly=0      <br />AllowAccessFromWebToFollowingIPAddresses=&quot;&quot;       </p>
<h3>Running the first report generation</h3>
<p>It comes down to this.</p>
<p>Start up a command prompt, and run:</p>
<p>cd C:\inetpub\awstats\cgi-bin      <br />Perl awstats.pl –config:mydomain.com –update</p>
<p>This should start reading the Log files. When it is finished, go to the site in a browser:</p>
<p><a title="http://localhost:1388/cgi-bin/awstats.pl" href="http://localhost:1388/cgi-bin/awstats.pl?config=mydomain.com">http://localhost:1388/cgi-bin/awstats.pl?config=mydomain.com</a></p>
<p>If you see some numbers, congratulations!</p>
<h3>Setting up the Scheduled Task</h3>
<p>Now you have to run this every day, as the system does not automatically update.</p>
<p>I won’t go into detail here as there are many sites on setting up Scheduled Tasks in the Task Scheduler, but this is the screen shot of my settings:</p>
<p><a href="http://adventureswith.net/wp-content/uploads/2011/03/image44.png"><img style="background-image: none; border-right-width: 0px; padding-left: 0px; padding-right: 0px; display: inline; border-top-width: 0px; border-bottom-width: 0px; border-left-width: 0px; padding-top: 0px" title="image" border="0" alt="image" src="http://adventureswith.net/wp-content/uploads/2011/03/image_thumb43.png" width="434" height="323" /></a></p>
<p>&#160;</p>
<h3>Conclusion &amp; Things You May Want To Do</h3>
<p>So that is how to set it up. Any queries and / or suggestions, let me know. </p>
<p><u>Do you want better stats with referrers and search engine queries?        <br /></u>Trying to set up better reporting by changing IIS Log settings. There is a good guide at <a href="http://sysadmingeek.com/articles/setting-up-awstats-on-windows-server-and-iis/">sysadmin geek</a> with all the settings.</p>
<p>&#160;</p>
<p><u>Do you want to parse old log files from months before?</u></p>
<p>There is a way to do this by specifying log files specifically, or by merging log files and then reading that merge specifically. This can be be done by specifying the file name in the config<font color="#000000">. You can use a tool included with awstats called </font><a href="http://awstats.sourceforge.net/docs/awstats_tools.html">“logresolvemerge.pl”</a> to merge the log files, which can take a while for multi gig log files. </p>
<p><em></em></p>
</li>
]]></content:encoded>
			<wfw:commentRss>http://adventureswith.net/awstats-on-iis7-in-less-steps-than-the-closest-cup-of-coffee-well-almost/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>GoDaddy vs Umbraco &#8211; Access to Umbraco.config is denied</title>
		<link>http://adventureswith.net/godaddy-vs-umbraco-access-to-umbraco-config-is-denied/</link>
		<comments>http://adventureswith.net/godaddy-vs-umbraco-access-to-umbraco-config-is-denied/#comments</comments>
		<pubDate>Sun, 14 Nov 2010 15:13:54 +0000</pubDate>
		<dc:creator>Dann</dc:creator>
				<category><![CDATA[godaddy]]></category>
		<category><![CDATA[umbraco]]></category>

		<guid isPermaLink="false">http://AdventuresWith.Net/?p=127</guid>
		<description><![CDATA[If you got the error along the lines of &#8230;./App_Data/Umbraco.config -  Access is denied. Add the following into your web.config &#60;system.web&#62; &#60;identity impersonate=&#8221;true&#8221;/&#62; &#60;/system.web&#62; It says to do  that in the error anyway]]></description>
			<content:encoded><![CDATA[<div class="rw-left"><div class="rw-ui-container rw-class-blog-post rw-urid-1280"></div></div><p>If you got the error along the lines of</p>
<blockquote><p><strong>&#8230;./App_Data/Umbraco.config -  Access is denied.</strong></p></blockquote>
<p>Add the following into your web.config</p>
<blockquote><p><strong>&lt;system.web&gt;<br />
&lt;identity impersonate=&#8221;true&#8221;/&gt;<br />
&lt;/system.web&gt;</strong></p></blockquote>
<p>It says to do  that in the error anyway</p>
]]></content:encoded>
			<wfw:commentRss>http://adventureswith.net/godaddy-vs-umbraco-access-to-umbraco-config-is-denied/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Start of a new site: safetaxi.info</title>
		<link>http://adventureswith.net/start-of-a-new-site-safetaxi-info/</link>
		<comments>http://adventureswith.net/start-of-a-new-site-safetaxi-info/#comments</comments>
		<pubDate>Thu, 04 Nov 2010 12:13:28 +0000</pubDate>
		<dc:creator>Dann</dc:creator>
				<category><![CDATA[Uncategorized]]></category>
		<category><![CDATA[safetaxi]]></category>

		<guid isPermaLink="false">http://AdventuresWith.Net/start-of-a-new-site-safetaxi-info/</guid>
		<description><![CDATA[This is a pre release plug for safetaxi.info &#8211; a find a taxi service in London for people on the run. Not up yet, but when it is..oooohh http://safetaxi.info]]></description>
			<content:encoded><![CDATA[<div class="rw-left"><div class="rw-ui-container rw-class-blog-post rw-urid-1260"></div></div><p><img class="alignleft size-full wp-image-124" title="Transport_for_london" src="http://adventureswith.net.april.arvixe.com/wp-content/uploads/2010/11/Transport_for_london.gif" alt="" width="200" height="200" /><br />
This is a pre release plug for safetaxi.info &#8211; a find a taxi service in London for people on the run. Not up yet, but when it is..oooohh</p>
<p><a title="Safer Taxis in London" href="http://safetaxi.info" target="_blank">http://safetaxi.info</a></p>
]]></content:encoded>
			<wfw:commentRss>http://adventureswith.net/start-of-a-new-site-safetaxi-info/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Crashing Visual Studio after debugging ASP Classic</title>
		<link>http://adventureswith.net/crashing-visual-studio-after-debugging-asp-classic/</link>
		<comments>http://adventureswith.net/crashing-visual-studio-after-debugging-asp-classic/#comments</comments>
		<pubDate>Mon, 10 May 2010 10:05:04 +0000</pubDate>
		<dc:creator>Dann</dc:creator>
				<category><![CDATA[Uncategorized]]></category>
		<category><![CDATA[asp classic]]></category>
		<category><![CDATA[visual studio]]></category>

		<guid isPermaLink="false">http://AdventuresWith.Net/crashing-visual-studio-after-debugging-asp-classic/</guid>
		<description><![CDATA[I hate ASP classic. I hate it with a passion. AND THEN when your browser crashes every time that you go to debug it, you start building muderous tendancies. Anyway, Found a solution. Hot fix to VS 2008 that fixes &#8230; <a href="http://adventureswith.net/crashing-visual-studio-after-debugging-asp-classic/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<div class="rw-left"><div class="rw-ui-container rw-class-blog-post rw-urid-1230"></div></div><p>I hate ASP classic. I hate it with a passion. AND THEN when your browser crashes every time that you go to debug it, you start building muderous tendancies.</p>
<p>Anyway, Found a solution. Hot fix to VS 2008 that fixes this and a few things that I didnt care about.</p>
<p><a href="http://code.msdn.microsoft.com/KB967631">http://code.msdn.microsoft.com/KB967631</a></p>
<blockquote><p>This QFE fixes three complete separate issues in the VS2008 SP1  Debugger:<br />
- Debugger can hang the IDE after setting a breakpoint when  working with a large C++ project<br />
- Breakpoints do not bind correctly  when an MSIL file is built containing .line directives<br />
- VS crashes  when debugging a classic ASP web and debugging is stopped.</p></blockquote>
]]></content:encoded>
			<wfw:commentRss>http://adventureswith.net/crashing-visual-studio-after-debugging-asp-classic/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Web Deployment with VS2010 and IIS7</title>
		<link>http://adventureswith.net/web-deployment-with-vs2010-and-iis7/</link>
		<comments>http://adventureswith.net/web-deployment-with-vs2010-and-iis7/#comments</comments>
		<pubDate>Thu, 01 Apr 2010 18:45:34 +0000</pubDate>
		<dc:creator>Dann</dc:creator>
				<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://AdventuresWith.Net/web-deployment-with-vs2010-and-iis7/</guid>
		<description><![CDATA[Have watched a great presentation today from Scott Hanselman from the MIX 10 conference. YOU MUST/NEED TO WATCH THIS!&#160; -&#62; Scott Hanselman presents the IIS Web Deploy There were a few great ideas built in to his story, such as &#8230; <a href="http://adventureswith.net/web-deployment-with-vs2010-and-iis7/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<div class="rw-left"><div class="rw-ui-container rw-class-blog-post rw-urid-1160"></div></div><p>Have watched a great presentation today from Scott Hanselman from the MIX 10 conference. </p>
<p>YOU MUST/NEED TO WATCH THIS!&#160; -&gt; <a title="http://blogs.iis.net/shanselman/archive/2010/03/24/web-deployment-made-awesome-if-you-re-using-xcopy-you-re-doing-it-wrong.aspx" href="http://blogs.iis.net/shanselman/archive/2010/03/24/web-deployment-made-awesome-if-you-re-using-xcopy-you-re-doing-it-wrong.aspx">Scott Hanselman presents the IIS Web Deploy</a></p>
<p>There were a few great ideas built in to his story, such as Web Deploy sitting on the back of a continuous integration setup and pushing out all the good stuff on successful build. </p>
<p>A problem I had while setting up Web Deploy was that there was no <strong>“Management Service Delegation” </strong>icon in IIS after installing the Web Deploy tool from the Web Platform Installer. </p>
<p>I solved it by <a href="http://technet.microsoft.com/en-us/library/dd569059%28WS.10%29.aspx">downloading the actual install for the Web Deployment tool</a> itself, then changing the setup so that IIS management items were installed. Voila! I have my icon:</p>
<p><a href="http://adventureswith.net/wp-content/uploads/2010/04/image.png"><img style="border-bottom: 0px; border-left: 0px; display: inline; border-top: 0px; border-right: 0px" title="image" border="0" alt="image" src="http://adventureswith.net/wp-content/uploads/2010/04/image_thumb.png" width="535" height="121" /></a> </p>
<p>Also, I had to add (for some unknown reason) an allow all IP range into my Management Service to stop 404 Errors.</p>
<p><a href="http://adventureswith.net/wp-content/uploads/2010/04/image1.png"><img style="border-bottom: 0px; border-left: 0px; display: inline; border-top: 0px; border-right: 0px" title="image" border="0" alt="image" src="http://adventureswith.net/wp-content/uploads/2010/04/image_thumb1.png" width="442" height="239" /></a>&#160;</p>
<p><a title="http://forums.iis.net/t/1163109.aspx" href="http://forums.iis.net/t/1163109.aspx">credit to <a href="http://forums.iis.net/members/AndyFraley.aspx">AndyFraley</a> @ IIS Forum – Web Deploy thread &#8211; http://forums.iis.net/t/1163109.aspx</a></p>
]]></content:encoded>
			<wfw:commentRss>http://adventureswith.net/web-deployment-with-vs2010-and-iis7/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Converting MVC 2 RC to MVC 2 RTM</title>
		<link>http://adventureswith.net/converting-mvc-2-rc-to-mvc-2-rtm/</link>
		<comments>http://adventureswith.net/converting-mvc-2-rc-to-mvc-2-rtm/#comments</comments>
		<pubDate>Tue, 30 Mar 2010 16:24:03 +0000</pubDate>
		<dc:creator>Dann</dc:creator>
				<category><![CDATA[ASP.Net]]></category>
		<category><![CDATA[asp mvc]]></category>
		<category><![CDATA[conversion]]></category>

		<guid isPermaLink="false">http://AdventuresWith.Net/converting-mvc-2-rc-to-mvc-2-rtm/</guid>
		<description><![CDATA[Ok, this is more of a hack than a true conversion, but I haven&#8217;t noticed the difference… yet. Remember to back up what you’re not willing to lose! Remove your MVC project from your solution. Don’t delete, just remove. Then &#8230; <a href="http://adventureswith.net/converting-mvc-2-rc-to-mvc-2-rtm/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<div class="rw-left"><div class="rw-ui-container rw-class-blog-post rw-urid-1100"></div></div><p>Ok, this is more of a hack than a true conversion, but I haven&#8217;t noticed the difference… yet.</p>
<p>Remember to back up what you’re not willing to lose! </p>
<ol>
<li>Remove your MVC project from your solution. Don’t delete, just remove. Then save all (Shift-Ctrl-S)</li>
<li>Edit your MVC project *.csproj file and change the ProjectTypeGuids to:     <br />&lt;ProjectTypeGuids&gt;{349c5851-65df-11da-9384-00065b846f21};{fae04ec0-301f-11d3-bf4b-00c04f79efbc}&lt;/ProjectTypeGuids&gt;<a href="http://adventureswith.net/wp-content/uploads/2010/03/image.png"><img style="border-right-width: 0px; display: inline; border-top-width: 0px; border-bottom-width: 0px; border-left-width: 0px" title="image" border="0" alt="image" src="http://adventureswith.net/wp-content/uploads/2010/03/image_thumb.png" width="531" height="166" /></a>      </li>
<li>Add your project back into your solution and save everything</li>
</ol>
]]></content:encoded>
			<wfw:commentRss>http://adventureswith.net/converting-mvc-2-rc-to-mvc-2-rtm/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

