<?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>.Net Thoughts and Ideas - Asp.Net</title>
    <link>http://xealcom.co.uk/</link>
    <description>Place to share and reflect ...</description>
    <language>en-us</language>
    <copyright>Alex B. Clarke</copyright>
    <lastBuildDate>Thu, 01 Jan 2009 10:26:54 GMT</lastBuildDate>
    <generator>newtelligence dasBlog 2.3.9074.18820</generator>
    <managingEditor>alexclarke@xealcom.net</managingEditor>
    <webMaster>alexclarke@xealcom.net</webMaster>
    <item>
      <trackback:ping>http://xealcom.co.uk/Trackback.aspx?guid=175a7d01-f6f1-4bcd-8959-5afb1e5c4f38</trackback:ping>
      <pingback:server>http://xealcom.co.uk/pingback.aspx</pingback:server>
      <pingback:target>http://xealcom.co.uk/PermaLink,guid,175a7d01-f6f1-4bcd-8959-5afb1e5c4f38.aspx</pingback:target>
      <dc:creator>
      </dc:creator>
      <wfw:comment>http://xealcom.co.uk/CommentView,guid,175a7d01-f6f1-4bcd-8959-5afb1e5c4f38.aspx</wfw:comment>
      <wfw:commentRss>http://xealcom.co.uk/SyndicationService.asmx/GetEntryCommentsRss?guid=175a7d01-f6f1-4bcd-8959-5afb1e5c4f38</wfw:commentRss>
      <body xmlns="http://www.w3.org/1999/xhtml">
        <p>
Scott Guthrie put together a very extensive list of Asp.Net resources: 
<br /><a title="http://weblogs.asp.net/scottgu/archive/2006/02/24/438953.aspx" href="http://weblogs.asp.net/scottgu/archive/2006/02/24/438953.aspx" target="_blank">http://weblogs.asp.net/scottgu/archive/2006/02/24/438953.aspx</a></p>
        <p>
A step by step to how to move membership tables from MS SQL express Edition to your
database that you are used on your web site. The second part we will go in details
to configure our asp.net web site 
<br /><a title="http://www.c-sharpcorner.com/uploadfile/dsdaf/104012006083052am/1.aspx" href="http://www.c-sharpcorner.com/uploadfile/dsdaf/104012006083052am/1.aspx">http://www.c-sharpcorner.com/uploadfile/dsdaf/104012006083052am/1.aspx</a></p>
        <p>
Access Database Provider 
<br /><a title="http://blog.krisvandermast.com/UsingAccessInsteadOfSQLServerForYourASPNETApplicationServices.aspx" href="http://blog.krisvandermast.com/UsingAccessInsteadOfSQLServerForYourASPNETApplicationServices.aspx">http://blog.krisvandermast.com/UsingAccessInsteadOfSQLServerForYourASPNETApplicationServices.aspx</a></p>
      </body>
      <title>List Of Asp.Net Resources</title>
      <guid isPermaLink="false">http://xealcom.co.uk/PermaLink,guid,175a7d01-f6f1-4bcd-8959-5afb1e5c4f38.aspx</guid>
      <link>http://xealcom.co.uk/2009/01/01/ListOfAspNetResources.aspx</link>
      <pubDate>Thu, 01 Jan 2009 10:26:54 GMT</pubDate>
      <description>&lt;p&gt;
Scott Guthrie put together a very extensive list of Asp.Net resources: 
&lt;br /&gt;
&lt;a title="http://weblogs.asp.net/scottgu/archive/2006/02/24/438953.aspx" href="http://weblogs.asp.net/scottgu/archive/2006/02/24/438953.aspx" target="_blank"&gt;http://weblogs.asp.net/scottgu/archive/2006/02/24/438953.aspx&lt;/a&gt;
&lt;/p&gt;
&lt;p&gt;
A step by step to how to move membership tables from MS SQL express Edition to your
database that you are used on your web site. The second part we will go in details
to configure our asp.net web site 
&lt;br /&gt;
&lt;a title="http://www.c-sharpcorner.com/uploadfile/dsdaf/104012006083052am/1.aspx" href="http://www.c-sharpcorner.com/uploadfile/dsdaf/104012006083052am/1.aspx"&gt;http://www.c-sharpcorner.com/uploadfile/dsdaf/104012006083052am/1.aspx&lt;/a&gt;
&lt;/p&gt;
&lt;p&gt;
Access Database Provider 
&lt;br /&gt;
&lt;a title="http://blog.krisvandermast.com/UsingAccessInsteadOfSQLServerForYourASPNETApplicationServices.aspx" href="http://blog.krisvandermast.com/UsingAccessInsteadOfSQLServerForYourASPNETApplicationServices.aspx"&gt;http://blog.krisvandermast.com/UsingAccessInsteadOfSQLServerForYourASPNETApplicationServices.aspx&lt;/a&gt;
&lt;/p&gt;</description>
      <comments>http://xealcom.co.uk/CommentView,guid,175a7d01-f6f1-4bcd-8959-5afb1e5c4f38.aspx</comments>
      <category>Asp.Net</category>
    </item>
    <item>
      <trackback:ping>http://xealcom.co.uk/Trackback.aspx?guid=99bffd0f-1b51-4ef9-aa3f-20e10305e085</trackback:ping>
      <pingback:server>http://xealcom.co.uk/pingback.aspx</pingback:server>
      <pingback:target>http://xealcom.co.uk/PermaLink,guid,99bffd0f-1b51-4ef9-aa3f-20e10305e085.aspx</pingback:target>
      <dc:creator>
      </dc:creator>
      <wfw:comment>http://xealcom.co.uk/CommentView,guid,99bffd0f-1b51-4ef9-aa3f-20e10305e085.aspx</wfw:comment>
      <wfw:commentRss>http://xealcom.co.uk/SyndicationService.asmx/GetEntryCommentsRss?guid=99bffd0f-1b51-4ef9-aa3f-20e10305e085</wfw:commentRss>
      <body xmlns="http://www.w3.org/1999/xhtml">
        <p>
When specifying paths in in *.aspx files we refer to a folder using a 'tilde' sign,
e.g. "~/SomeFolder".
</p>
        <p>
So one would assume that one should follow the same principle with the &lt;location&gt;
element in the web.config file, like so<br /></p>
        <p>
        </p>
        <p>
        </p>
        <pre class="hl">
          <span class="hl kwa">&lt;configuration&gt;</span>
          <span class="hl kwa">&lt;location</span> path=<span class="hl str">"<font color="#ff0000"><b>~/FolderA/FolderB</b></font>"</span>&gt;<br /><span class="hl kwa">&lt;system.web&gt;</span><span class="hl kwa">&lt;authorization&gt;</span><span class="hl kwa">&lt;allow</span> users=<span class="hl str">"*"</span>/&gt;<br /><span class="hl kwa">&lt;/authorization&gt;</span><span class="hl kwa">&lt;/system.web&gt;</span><span class="hl kwa">&lt;/location&gt;</span><span class="hl kwa">&lt;/configuration&gt;</span></pre>
        <p>
However it's not the case. Drop the 'tilde' and use paths as in the following example.<br /></p>
        <p>
        </p>
        <pre class="hl">
          <span class="hl kwa">&lt;configuration&gt;</span>
          <span class="hl kwa">&lt;location</span> path=<span class="hl str">"<font color="#ff0000"><b>FolderA/FolderB</b></font>"</span>&gt;<br /><span class="hl kwa">&lt;system.web&gt;</span><span class="hl kwa">&lt;authorization&gt;</span><span class="hl kwa">&lt;allow</span> users=<span class="hl str">"*"</span>/&gt;<br /><span class="hl kwa">&lt;/authorization&gt;</span><span class="hl kwa">&lt;/system.web&gt;</span><span class="hl kwa">&lt;/location&gt;</span><span class="hl kwa">&lt;/configuration&gt;</span></pre>
        <p>
It's simple when you know ;)<br /></p>
      </body>
      <title>No 'Tilde' Sign in 'Location' Element</title>
      <guid isPermaLink="false">http://xealcom.co.uk/PermaLink,guid,99bffd0f-1b51-4ef9-aa3f-20e10305e085.aspx</guid>
      <link>http://xealcom.co.uk/2007/09/09/NoTildeSignInLocationElement.aspx</link>
      <pubDate>Sun, 09 Sep 2007 17:14:22 GMT</pubDate>
      <description>&lt;p&gt;
When specifying paths in in *.aspx files we refer to a folder using a 'tilde' sign,
e.g. "~/SomeFolder".
&lt;/p&gt;
&lt;p&gt;
So one would assume that one should follow the same principle with the &amp;lt;location&amp;gt;
element in the web.config file, like so&lt;br&gt;
&lt;/p&gt;
&lt;p&gt;
&lt;/p&gt;
&lt;p&gt;
&lt;/p&gt;
&lt;pre class="hl"&gt;&lt;span class="hl kwa"&gt;&amp;lt;configuration&amp;gt;&lt;/span&gt; &lt;span class="hl kwa"&gt;&amp;lt;location&lt;/span&gt; path=&lt;span class="hl str"&gt;"&lt;font color="#ff0000"&gt;&lt;b&gt;~/FolderA/FolderB&lt;/b&gt;&lt;/font&gt;"&lt;/span&gt;&amp;gt;&lt;br&gt;
&lt;span class="hl kwa"&gt;&amp;lt;system.web&amp;gt;&lt;/span&gt; &lt;span class="hl kwa"&gt;&amp;lt;authorization&amp;gt;&lt;/span&gt; &lt;span class="hl kwa"&gt;&amp;lt;allow&lt;/span&gt; users=&lt;span class="hl str"&gt;"*"&lt;/span&gt;/&amp;gt;&lt;br&gt;
&lt;span class="hl kwa"&gt;&amp;lt;/authorization&amp;gt;&lt;/span&gt; &lt;span class="hl kwa"&gt;&amp;lt;/system.web&amp;gt;&lt;/span&gt; &lt;span class="hl kwa"&gt;&amp;lt;/location&amp;gt;&lt;/span&gt; &lt;span class="hl kwa"&gt;&amp;lt;/configuration&amp;gt;&lt;/span&gt; &lt;/pre&gt;
&lt;p&gt;
However it's not the case. Drop the 'tilde' and use paths as in the following example.&lt;br&gt;
&lt;/p&gt;
&lt;p&gt;
&lt;/p&gt;
&lt;pre class="hl"&gt;&lt;span class="hl kwa"&gt;&amp;lt;configuration&amp;gt;&lt;/span&gt; &lt;span class="hl kwa"&gt;&amp;lt;location&lt;/span&gt; path=&lt;span class="hl str"&gt;"&lt;font color="#ff0000"&gt;&lt;b&gt;FolderA/FolderB&lt;/b&gt;&lt;/font&gt;"&lt;/span&gt;&amp;gt;&lt;br&gt;
&lt;span class="hl kwa"&gt;&amp;lt;system.web&amp;gt;&lt;/span&gt; &lt;span class="hl kwa"&gt;&amp;lt;authorization&amp;gt;&lt;/span&gt; &lt;span class="hl kwa"&gt;&amp;lt;allow&lt;/span&gt; users=&lt;span class="hl str"&gt;"*"&lt;/span&gt;/&amp;gt;&lt;br&gt;
&lt;span class="hl kwa"&gt;&amp;lt;/authorization&amp;gt;&lt;/span&gt; &lt;span class="hl kwa"&gt;&amp;lt;/system.web&amp;gt;&lt;/span&gt; &lt;span class="hl kwa"&gt;&amp;lt;/location&amp;gt;&lt;/span&gt; &lt;span class="hl kwa"&gt;&amp;lt;/configuration&amp;gt;&lt;/span&gt; &lt;/pre&gt;
&lt;p&gt;
It's simple when you know ;)&lt;br&gt;
&lt;/p&gt;</description>
      <comments>http://xealcom.co.uk/CommentView,guid,99bffd0f-1b51-4ef9-aa3f-20e10305e085.aspx</comments>
      <category>Asp.Net</category>
    </item>
    <item>
      <trackback:ping>http://xealcom.co.uk/Trackback.aspx?guid=183a7bd5-2460-4c08-b8fc-3d9d9a14f615</trackback:ping>
      <pingback:server>http://xealcom.co.uk/pingback.aspx</pingback:server>
      <pingback:target>http://xealcom.co.uk/PermaLink,guid,183a7bd5-2460-4c08-b8fc-3d9d9a14f615.aspx</pingback:target>
      <dc:creator>
      </dc:creator>
      <wfw:comment>http://xealcom.co.uk/CommentView,guid,183a7bd5-2460-4c08-b8fc-3d9d9a14f615.aspx</wfw:comment>
      <wfw:commentRss>http://xealcom.co.uk/SyndicationService.asmx/GetEntryCommentsRss?guid=183a7bd5-2460-4c08-b8fc-3d9d9a14f615</wfw:commentRss>
      <body xmlns="http://www.w3.org/1999/xhtml">Continuing with my study using AppDev.com
course, I feel compelled to mention two crucial steps in setting up "Query Notification"
when using database caching techniques. I spent almost two days trying to get this
techique to work! Thanks to AppDev it works now.<br /><br />
After adding<br /><br /><font color="#000080">&lt;%@ OutputCache SqlDependency="CommandNotification" Duration="9999999"
VaryByParam="None" %&gt;</font><br /><br />
there are two things that we must get right for this setup to work:<a href="http://msdn2.microsoft.com/en-us/library/ms181122.aspx"><br /></a><br />
1. Establishing the target table and writing a correct query, as outlined in this <a href="http://msdn2.microsoft.com/en-us/library/ms181122.aspx">MSDN
article.</a><br /><br />
2. Configuring Service Broker as listed below<br /><blockquote><p><span style="color: Black; background-color: transparent; font-family: Courier New; font-size: 11px;"><span style="color: Blue; background-color: transparent; font-family: Courier New; font-size: 11px;">USE</span> YourDatabaseName;<br /><br /><span style="color: Teal; background-color: transparent; font-family: Courier New; font-size: 11px;">--
Ensure compatibility with SQL Server 2005</span><br /><span style="color: Blue; background-color: transparent; font-family: Courier New; font-size: 11px;">EXECUTE</span> sp_dbcmptlevel <span style="color: Red; background-color: transparent; font-family: Courier New; font-size: 11px;">'Northwind'</span>,90;<br /><br /><span style="color: Teal; background-color: transparent; font-family: Courier New; font-size: 11px;">--
Enable Service Broker</span><br /><span style="color: Blue; background-color: transparent; font-family: Courier New; font-size: 11px;">IF</span><span style="color: Silver; background-color: transparent; font-family: Courier New; font-size: 11px;">NOT</span><span style="color: Silver; background-color: transparent; font-family: Courier New; font-size: 11px;">EXISTS</span> (<span style="color: Blue; background-color: transparent; font-family: Courier New; font-size: 11px;">SELECT</span> * <span style="color: Blue; background-color: transparent; font-family: Courier New; font-size: 11px;">FROM</span> sys.databases<br /><span style="color: Blue; background-color: transparent; font-family: Courier New; font-size: 11px;">WHERE</span> name
= <span style="color: Red; background-color: transparent; font-family: Courier New; font-size: 11px;">'</span></span><span style="color: Black; background-color: transparent; font-family: Courier New; font-size: 11px;">YourDatabaseName</span><span style="color: Black; background-color: transparent; font-family: Courier New; font-size: 11px;"><span style="color: Red; background-color: transparent; font-family: Courier New; font-size: 11px;">'</span><span style="color: Silver; background-color: transparent; font-family: Courier New; font-size: 11px;">AND</span> is_broker_enabled
= 1)<br /><span style="color: Blue; background-color: transparent; font-family: Courier New; font-size: 11px;">BEGIN</span><br /><span style="color: Blue; background-color: transparent; font-family: Courier New; font-size: 11px;">ALTER</span><span style="color: Blue; background-color: transparent; font-family: Courier New; font-size: 11px;">DATABASE</span> Northwind <span style="color: Blue; background-color: transparent; font-family: Courier New; font-size: 11px;">SET</span> ENABLE_BROKER<br /><span style="color: Blue; background-color: transparent; font-family: Courier New; font-size: 11px;">WITH</span><span style="color: Blue; background-color: transparent; font-family: Courier New; font-size: 11px;">ROLLBACK</span> AFTER
5 SECONDS;<br /><span style="color: Teal; background-color: transparent; font-family: Courier New; font-size: 11px;">--
Set Trustworthy</span><br /><span style="color: Blue; background-color: transparent; font-family: Courier New; font-size: 11px;">ALTER</span><span style="color: Blue; background-color: transparent; font-family: Courier New; font-size: 11px;">DATABASE</span> Northwind <span style="color: Blue; background-color: transparent; font-family: Courier New; font-size: 11px;">SET</span> TRUSTWORTHY <span style="color: Blue; background-color: transparent; font-family: Courier New; font-size: 11px;">ON</span>;<br /><span style="color: Blue; background-color: transparent; font-family: Courier New; font-size: 11px;">END</span>;<br />
GO<br /><br /><span style="color: Teal; background-color: transparent; font-family: Courier New; font-size: 11px;">--
Create an encryption key for Service Broker</span><br /><span style="color: Blue; background-color: transparent; font-family: Courier New; font-size: 11px;">IF</span><span style="color: Silver; background-color: transparent; font-family: Courier New; font-size: 11px;">NOT</span><span style="color: Silver; background-color: transparent; font-family: Courier New; font-size: 11px;">EXISTS</span><br />
(<span style="color: Blue; background-color: transparent; font-family: Courier New; font-size: 11px;">SELECT</span> * <span style="color: Blue; background-color: transparent; font-family: Courier New; font-size: 11px;">FROM</span> sys.symmetric_keys 
<br /><span style="color: Blue; background-color: transparent; font-family: Courier New; font-size: 11px;">WHERE</span> symmetric_key_id
= 101)<br /><span style="color: Blue; background-color: transparent; font-family: Courier New; font-size: 11px;">CREATE</span> MASTER <span style="color: Blue; background-color: transparent; font-family: Courier New; font-size: 11px;">KEY</span> ENCRYPTION <span style="color: Blue; background-color: transparent; font-family: Courier New; font-size: 11px;">BY</span> PASSWORD
= N<span style="color: Red; background-color: transparent; font-family: Courier New; font-size: 11px;">'t0psecret'</span>;<br />
GO<br /><br /><span style="color: Teal; background-color: transparent; font-family: Courier New; font-size: 11px;">--
Create a Service Broker endpoint</span><br /><span style="color: Blue; background-color: transparent; font-family: Courier New; font-size: 11px;">CREATE</span> ENDPOINT
BrokerEndpoint<br />
    STATE = STARTED<br /><span style="color: Blue; background-color: transparent; font-family: Courier New; font-size: 11px;">AS</span> TCP
( LISTENER_PORT = 4037 )<br /><span style="color: Blue; background-color: transparent; font-family: Courier New; font-size: 11px;">FOR</span> SERVICE_BROKER
( AUTHENTICATION = WINDOWS );<br />
GO<br /><br /><span style="color: Blue; background-color: transparent; font-family: Courier New; font-size: 11px;">select</span> * <span style="color: Blue; background-color: transparent; font-family: Courier New; font-size: 11px;">from</span> sys.dm_qn_subscriptions</span></p></blockquote><p></p><br />
It's easy when you know ;)<br /></body>
      <title>SqlCacheDependency and CommandNotification Rule</title>
      <guid isPermaLink="false">http://xealcom.co.uk/PermaLink,guid,183a7bd5-2460-4c08-b8fc-3d9d9a14f615.aspx</guid>
      <link>http://xealcom.co.uk/2007/08/23/SqlCacheDependencyAndCommandNotificationRule.aspx</link>
      <pubDate>Thu, 23 Aug 2007 21:10:43 GMT</pubDate>
      <description>Continuing with my study using AppDev.com course, I feel compelled to mention two crucial steps in setting up "Query Notification" when using database caching techniques. I spent almost two days trying to get this techique to work! Thanks to AppDev it works now.&lt;br&gt;
&lt;br&gt;
After adding&lt;br&gt;
&lt;br&gt;
&lt;font color="#000080"&gt;&amp;lt;%@ OutputCache SqlDependency="CommandNotification" Duration="9999999"
VaryByParam="None" %&amp;gt;&lt;/font&gt;
&lt;br&gt;
&lt;br&gt;
there are two things that we must get right for this setup to work:&lt;a href="http://msdn2.microsoft.com/en-us/library/ms181122.aspx"&gt;
&lt;br&gt;
&lt;/a&gt;
&lt;br&gt;
1. Establishing the target table and writing a correct query, as outlined in this &lt;a href="http://msdn2.microsoft.com/en-us/library/ms181122.aspx"&gt;MSDN
article.&lt;/a&gt;
&lt;br&gt;
&lt;br&gt;
2. Configuring Service Broker as listed below&lt;br&gt;
&lt;blockquote&gt;
&lt;p&gt;
&lt;span style="color: Black; background-color: transparent; font-family: Courier New; font-size: 11px;"&gt;&lt;span style="color: Blue; background-color: transparent; font-family: Courier New; font-size: 11px;"&gt;USE&lt;/span&gt; YourDatabaseName;&lt;br&gt;
&lt;br&gt;
&lt;span style="color: Teal; background-color: transparent; font-family: Courier New; font-size: 11px;"&gt;--
Ensure compatibility with SQL Server 2005&lt;/span&gt;
&lt;br&gt;
&lt;span style="color: Blue; background-color: transparent; font-family: Courier New; font-size: 11px;"&gt;EXECUTE&lt;/span&gt; sp_dbcmptlevel &lt;span style="color: Red; background-color: transparent; font-family: Courier New; font-size: 11px;"&gt;'Northwind'&lt;/span&gt;,90;&lt;br&gt;
&lt;br&gt;
&lt;span style="color: Teal; background-color: transparent; font-family: Courier New; font-size: 11px;"&gt;--
Enable Service Broker&lt;/span&gt;
&lt;br&gt;
&lt;span style="color: Blue; background-color: transparent; font-family: Courier New; font-size: 11px;"&gt;IF&lt;/span&gt; &lt;span style="color: Silver; background-color: transparent; font-family: Courier New; font-size: 11px;"&gt;NOT&lt;/span&gt; &lt;span style="color: Silver; background-color: transparent; font-family: Courier New; font-size: 11px;"&gt;EXISTS&lt;/span&gt; (&lt;span style="color: Blue; background-color: transparent; font-family: Courier New; font-size: 11px;"&gt;SELECT&lt;/span&gt; * &lt;span style="color: Blue; background-color: transparent; font-family: Courier New; font-size: 11px;"&gt;FROM&lt;/span&gt; sys.databases&lt;br&gt;
&lt;span style="color: Blue; background-color: transparent; font-family: Courier New; font-size: 11px;"&gt;WHERE&lt;/span&gt; name
= &lt;span style="color: Red; background-color: transparent; font-family: Courier New; font-size: 11px;"&gt;'&lt;/span&gt;&lt;/span&gt;&lt;span style="color: Black; background-color: transparent; font-family: Courier New; font-size: 11px;"&gt;YourDatabaseName&lt;/span&gt;&lt;span style="color: Black; background-color: transparent; font-family: Courier New; font-size: 11px;"&gt;&lt;span style="color: Red; background-color: transparent; font-family: Courier New; font-size: 11px;"&gt;'&lt;/span&gt; &lt;span style="color: Silver; background-color: transparent; font-family: Courier New; font-size: 11px;"&gt;AND&lt;/span&gt; is_broker_enabled
= 1)&lt;br&gt;
&lt;span style="color: Blue; background-color: transparent; font-family: Courier New; font-size: 11px;"&gt;BEGIN&lt;/span&gt;
&lt;br&gt;
&lt;span style="color: Blue; background-color: transparent; font-family: Courier New; font-size: 11px;"&gt;ALTER&lt;/span&gt; &lt;span style="color: Blue; background-color: transparent; font-family: Courier New; font-size: 11px;"&gt;DATABASE&lt;/span&gt; Northwind &lt;span style="color: Blue; background-color: transparent; font-family: Courier New; font-size: 11px;"&gt;SET&lt;/span&gt; ENABLE_BROKER&lt;br&gt;
&lt;span style="color: Blue; background-color: transparent; font-family: Courier New; font-size: 11px;"&gt;WITH&lt;/span&gt; &lt;span style="color: Blue; background-color: transparent; font-family: Courier New; font-size: 11px;"&gt;ROLLBACK&lt;/span&gt; AFTER
5 SECONDS;&lt;br&gt;
&lt;span style="color: Teal; background-color: transparent; font-family: Courier New; font-size: 11px;"&gt;--
Set Trustworthy&lt;/span&gt;
&lt;br&gt;
&lt;span style="color: Blue; background-color: transparent; font-family: Courier New; font-size: 11px;"&gt;ALTER&lt;/span&gt; &lt;span style="color: Blue; background-color: transparent; font-family: Courier New; font-size: 11px;"&gt;DATABASE&lt;/span&gt; Northwind &lt;span style="color: Blue; background-color: transparent; font-family: Courier New; font-size: 11px;"&gt;SET&lt;/span&gt; TRUSTWORTHY &lt;span style="color: Blue; background-color: transparent; font-family: Courier New; font-size: 11px;"&gt;ON&lt;/span&gt;;&lt;br&gt;
&lt;span style="color: Blue; background-color: transparent; font-family: Courier New; font-size: 11px;"&gt;END&lt;/span&gt;;&lt;br&gt;
GO&lt;br&gt;
&lt;br&gt;
&lt;span style="color: Teal; background-color: transparent; font-family: Courier New; font-size: 11px;"&gt;--
Create an encryption key for Service Broker&lt;/span&gt;
&lt;br&gt;
&lt;span style="color: Blue; background-color: transparent; font-family: Courier New; font-size: 11px;"&gt;IF&lt;/span&gt; &lt;span style="color: Silver; background-color: transparent; font-family: Courier New; font-size: 11px;"&gt;NOT&lt;/span&gt; &lt;span style="color: Silver; background-color: transparent; font-family: Courier New; font-size: 11px;"&gt;EXISTS&lt;/span&gt;
&lt;br&gt;
(&lt;span style="color: Blue; background-color: transparent; font-family: Courier New; font-size: 11px;"&gt;SELECT&lt;/span&gt; * &lt;span style="color: Blue; background-color: transparent; font-family: Courier New; font-size: 11px;"&gt;FROM&lt;/span&gt; sys.symmetric_keys 
&lt;br&gt;
&lt;span style="color: Blue; background-color: transparent; font-family: Courier New; font-size: 11px;"&gt;WHERE&lt;/span&gt; symmetric_key_id
= 101)&lt;br&gt;
&lt;span style="color: Blue; background-color: transparent; font-family: Courier New; font-size: 11px;"&gt;CREATE&lt;/span&gt; MASTER &lt;span style="color: Blue; background-color: transparent; font-family: Courier New; font-size: 11px;"&gt;KEY&lt;/span&gt; ENCRYPTION &lt;span style="color: Blue; background-color: transparent; font-family: Courier New; font-size: 11px;"&gt;BY&lt;/span&gt; PASSWORD
= N&lt;span style="color: Red; background-color: transparent; font-family: Courier New; font-size: 11px;"&gt;'t0psecret'&lt;/span&gt;;&lt;br&gt;
GO&lt;br&gt;
&lt;br&gt;
&lt;span style="color: Teal; background-color: transparent; font-family: Courier New; font-size: 11px;"&gt;--
Create a Service Broker endpoint&lt;/span&gt;
&lt;br&gt;
&lt;span style="color: Blue; background-color: transparent; font-family: Courier New; font-size: 11px;"&gt;CREATE&lt;/span&gt; ENDPOINT
BrokerEndpoint&lt;br&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;STATE = STARTED&lt;br&gt;
&lt;span style="color: Blue; background-color: transparent; font-family: Courier New; font-size: 11px;"&gt;AS&lt;/span&gt; TCP
( LISTENER_PORT = 4037 )&lt;br&gt;
&lt;span style="color: Blue; background-color: transparent; font-family: Courier New; font-size: 11px;"&gt;FOR&lt;/span&gt; SERVICE_BROKER
( AUTHENTICATION = WINDOWS );&lt;br&gt;
GO&lt;br&gt;
&lt;br&gt;
&lt;span style="color: Blue; background-color: transparent; font-family: Courier New; font-size: 11px;"&gt;select&lt;/span&gt; * &lt;span style="color: Blue; background-color: transparent; font-family: Courier New; font-size: 11px;"&gt;from&lt;/span&gt; sys.dm_qn_subscriptions&lt;/span&gt;
&lt;/p&gt;
&lt;/blockquote&gt;
&lt;p&gt;
&lt;/p&gt;
&lt;br&gt;
It's easy when you know ;)&lt;br&gt;</description>
      <comments>http://xealcom.co.uk/CommentView,guid,183a7bd5-2460-4c08-b8fc-3d9d9a14f615.aspx</comments>
      <category>Asp.Net</category>
    </item>
    <item>
      <trackback:ping>http://xealcom.co.uk/Trackback.aspx?guid=646e4e4f-7c03-4b0b-aaec-166fad5add26</trackback:ping>
      <pingback:server>http://xealcom.co.uk/pingback.aspx</pingback:server>
      <pingback:target>http://xealcom.co.uk/PermaLink,guid,646e4e4f-7c03-4b0b-aaec-166fad5add26.aspx</pingback:target>
      <dc:creator>
      </dc:creator>
      <wfw:comment>http://xealcom.co.uk/CommentView,guid,646e4e4f-7c03-4b0b-aaec-166fad5add26.aspx</wfw:comment>
      <wfw:commentRss>http://xealcom.co.uk/SyndicationService.asmx/GetEntryCommentsRss?guid=646e4e4f-7c03-4b0b-aaec-166fad5add26</wfw:commentRss>
      <body xmlns="http://www.w3.org/1999/xhtml">When you develop Asp.Net site with Visual
Studio 2005 and then test your site with internal browser, you may notice that your
output cache directives do not make any difference. The trick is that Asp.Net Development
Server used by the Visual Studio does not shut down after you closed the browser.
Therefore, it keeps the previous version(s) of your cached pages. You can see its
icon in the Menu Tray.<br /><br />
So, after you change cache parameters in your code before you run the page again,
simply stop the Asp.Net Development Server by right-clicking on the icon and choosing
"Stop" from the pop-up menu.<br /><br /><br /><img src="http://xealcom.co.uk/content/binary/StopDevSrv.gif" border="0" /><br /><br />
It's easy when you know ;)<br /></body>
      <title>Output Cache Testing</title>
      <guid isPermaLink="false">http://xealcom.co.uk/PermaLink,guid,646e4e4f-7c03-4b0b-aaec-166fad5add26.aspx</guid>
      <link>http://xealcom.co.uk/2007/08/20/OutputCacheTesting.aspx</link>
      <pubDate>Mon, 20 Aug 2007 15:37:54 GMT</pubDate>
      <description>When you develop Asp.Net site with Visual Studio 2005 and then test your site with internal browser, you may notice that your output cache directives do not make any difference. The trick is that Asp.Net Development Server used by the Visual Studio does not shut down after you closed the browser. Therefore, it keeps the previous version(s) of your cached pages. You can see its icon in the Menu Tray.&lt;br&gt;
&lt;br&gt;
So, after you change cache parameters in your code before you run the page again,
simply stop the Asp.Net Development Server by right-clicking on the icon and choosing
"Stop" from the pop-up menu.&lt;br&gt;
&lt;br&gt;
&lt;br&gt;
&lt;img src="http://xealcom.co.uk/content/binary/StopDevSrv.gif" border="0"&gt;
&lt;br&gt;
&lt;br&gt;
It's easy when you know ;)&lt;br&gt;</description>
      <comments>http://xealcom.co.uk/CommentView,guid,646e4e4f-7c03-4b0b-aaec-166fad5add26.aspx</comments>
      <category>Asp.Net</category>
    </item>
    <item>
      <trackback:ping>http://xealcom.co.uk/Trackback.aspx?guid=8062200a-a2e5-4518-a210-42198b1da16f</trackback:ping>
      <pingback:server>http://xealcom.co.uk/pingback.aspx</pingback:server>
      <pingback:target>http://xealcom.co.uk/PermaLink,guid,8062200a-a2e5-4518-a210-42198b1da16f.aspx</pingback:target>
      <dc:creator>
      </dc:creator>
      <wfw:comment>http://xealcom.co.uk/CommentView,guid,8062200a-a2e5-4518-a210-42198b1da16f.aspx</wfw:comment>
      <wfw:commentRss>http://xealcom.co.uk/SyndicationService.asmx/GetEntryCommentsRss?guid=8062200a-a2e5-4518-a210-42198b1da16f</wfw:commentRss>
      <body xmlns="http://www.w3.org/1999/xhtml">
        <p>
This short tip relates to working with <font color="#000080">Microsoft Visual Studio
2005</font> when creating a <font color="#000080">Custom Web Server Control</font></p>
        <p>
When designing a custom server control that has a property you can use Attribute to
set the property default value.
</p>
        <p>
        </p>
        <pre class="hl">
          <span class="hl sym">[</span>
          <span class="hl kwd">DefaultValue</span>
          <span class="hl sym">(</span>
          <span class="hl str">"MyDefaultValue"</span>
          <span class="hl sym">)]</span>
          <span class="hl kwa">public</span> String <span class="hl kwd">Value</span><span class="hl sym">(){</span><span class="hl kwa">get</span><span class="hl sym">{</span> String
tmpValue <span class="hl sym">=</span> ViewState<span class="hl sym">[</span><span class="hl str">"Value"</span><span class="hl sym">]</span> as
String<span class="hl sym">;</span><span class="hl kwa">return</span> tmpValue<span class="hl sym">;</span><span class="hl sym">}</span><span class="hl kwa">set</span><span class="hl sym">{</span> localVar <span class="hl sym">=</span> ViewState<span class="hl sym">[</span><span class="hl str">"Value"</span><span class="hl sym">]</span> as
String<span class="hl sym">;</span><span class="hl sym">}</span><span class="hl sym">}</span></pre>
        <p>
To make it display its value in the Properties Window right-click on the it and choose
Reset
</p>
        <img src="http://xealcom.co.uk/content/binary/PropertyReset.gif" border="0" />
      </body>
      <title>Default Property Value of Custom Server Control Is Not Displayed At Design Time</title>
      <guid isPermaLink="false">http://xealcom.co.uk/PermaLink,guid,8062200a-a2e5-4518-a210-42198b1da16f.aspx</guid>
      <link>http://xealcom.co.uk/2007/08/10/DefaultPropertyValueOfCustomServerControlIsNotDisplayedAtDesignTime.aspx</link>
      <pubDate>Fri, 10 Aug 2007 17:01:31 GMT</pubDate>
      <description>&lt;p&gt;
This short tip relates to working with &lt;font color="#000080"&gt;Microsoft Visual Studio
2005&lt;/font&gt; when creating a &lt;font color="#000080"&gt;Custom Web Server Control&lt;/font&gt;
&lt;/p&gt;
&lt;p&gt;
When designing a custom server control that has a property you can use Attribute to
set the property default value.
&lt;/p&gt;
&lt;p&gt;
&lt;/p&gt;
&lt;pre class="hl"&gt;&lt;span class="hl sym"&gt;[&lt;/span&gt;&lt;span class="hl kwd"&gt;DefaultValue&lt;/span&gt;&lt;span class="hl sym"&gt;(&lt;/span&gt; &lt;span class="hl str"&gt;"MyDefaultValue"&lt;/span&gt; &lt;span class="hl sym"&gt;)]&lt;/span&gt; &lt;span class="hl kwa"&gt;public&lt;/span&gt; String &lt;span class="hl kwd"&gt;Value&lt;/span&gt; &lt;span class="hl sym"&gt;(){&lt;/span&gt; &lt;span class="hl kwa"&gt;get&lt;/span&gt; &lt;span class="hl sym"&gt;{&lt;/span&gt; String
tmpValue &lt;span class="hl sym"&gt;=&lt;/span&gt; ViewState&lt;span class="hl sym"&gt;[&lt;/span&gt;&lt;span class="hl str"&gt;"Value"&lt;/span&gt;&lt;span class="hl sym"&gt;]&lt;/span&gt; as
String&lt;span class="hl sym"&gt;;&lt;/span&gt; &lt;span class="hl kwa"&gt;return&lt;/span&gt; tmpValue&lt;span class="hl sym"&gt;;&lt;/span&gt; &lt;span class="hl sym"&gt;}&lt;/span&gt; &lt;span class="hl kwa"&gt;set&lt;/span&gt; &lt;span class="hl sym"&gt;{&lt;/span&gt; localVar &lt;span class="hl sym"&gt;=&lt;/span&gt; ViewState&lt;span class="hl sym"&gt;[&lt;/span&gt;&lt;span class="hl str"&gt;"Value"&lt;/span&gt;&lt;span class="hl sym"&gt;]&lt;/span&gt; as
String&lt;span class="hl sym"&gt;;&lt;/span&gt; &lt;span class="hl sym"&gt;}&lt;/span&gt; &lt;span class="hl sym"&gt;}&lt;/span&gt; &lt;/pre&gt;
&lt;p&gt;
To make it display its value in the Properties Window right-click on the it and choose
Reset
&lt;/p&gt;
&lt;img src="http://xealcom.co.uk/content/binary/PropertyReset.gif" border="0"&gt;</description>
      <comments>http://xealcom.co.uk/CommentView,guid,8062200a-a2e5-4518-a210-42198b1da16f.aspx</comments>
      <category>Asp.Net</category>
    </item>
    <item>
      <trackback:ping>http://xealcom.co.uk/Trackback.aspx?guid=87f42101-f3de-486f-b34e-ea6e926f6e9a</trackback:ping>
      <pingback:server>http://xealcom.co.uk/pingback.aspx</pingback:server>
      <pingback:target>http://xealcom.co.uk/PermaLink,guid,87f42101-f3de-486f-b34e-ea6e926f6e9a.aspx</pingback:target>
      <dc:creator>
      </dc:creator>
      <wfw:comment>http://xealcom.co.uk/CommentView,guid,87f42101-f3de-486f-b34e-ea6e926f6e9a.aspx</wfw:comment>
      <wfw:commentRss>http://xealcom.co.uk/SyndicationService.asmx/GetEntryCommentsRss?guid=87f42101-f3de-486f-b34e-ea6e926f6e9a</wfw:commentRss>
      <body xmlns="http://www.w3.org/1999/xhtml">When using Web Application Project to develop
Asp.Net application Profile feature does not work with intellisense the way it works
with Web Site Projects.<br /><br />
If the <a href="http://www.codeplex.com/WebProfile">add-in</a> that was designed to
fix the issue does not work,  you can access Profile values specified in web.config
from code-behind use the following syntax:<br /><p><span style="color: Black; background-color: transparent; font-family: Courier New; font-size: 11px;">Context.Profile.SetPropertyValue( <span style="color: rgb(102, 102, 102); background-color: rgb(228, 228, 228); font-family: Courier New; font-size: 11px;">"ProfilePropertyName"</span>,
ProfilePropertyValue );</span></p><p><span style="color: Black; background-color: transparent; font-family: Courier New; font-size: 11px;">Context.Profile.GetPropertyValue( <span style="color: rgb(102, 102, 102); background-color: rgb(228, 228, 228); font-family: Courier New; font-size: 11px;">"ProfilePropertyName"</span> );</span></p><p>
In my experience, using Server 2003 64-bit with VS2005 Pro, I had no problems if the
WebProfileGenerator was installed by running Setup.exe.<span style="color: Black; background-color: transparent; font-family: Courier New; font-size: 11px;"><br /></span></p><p>
Download <a href="http://xealcom.co.uk/content/binary/WebProfileGenerator1.3.zip">WebProfileGenerator1.3.zip
(418.71 KB)</a> from this site.
</p></body>
      <title>Asp.Net Profiles in Web Application Project with Web Profile Generator</title>
      <guid isPermaLink="false">http://xealcom.co.uk/PermaLink,guid,87f42101-f3de-486f-b34e-ea6e926f6e9a.aspx</guid>
      <link>http://xealcom.co.uk/2007/08/04/AspNetProfilesInWebApplicationProjectWithWebProfileGenerator.aspx</link>
      <pubDate>Sat, 04 Aug 2007 06:40:17 GMT</pubDate>
      <description>When using Web Application Project to develop Asp.Net application Profile feature does not work with intellisense the way it works with Web Site Projects.&lt;br&gt;
&lt;br&gt;
If the &lt;a href="http://www.codeplex.com/WebProfile"&gt;add-in&lt;/a&gt; that was designed to
fix the issue does not work,&amp;nbsp; you can access Profile values specified in web.config
from code-behind use the following syntax:&lt;br&gt;
&lt;p&gt;
&lt;span style="color: Black; background-color: transparent; font-family: Courier New; font-size: 11px;"&gt;Context.Profile.SetPropertyValue( &lt;span style="color: rgb(102, 102, 102); background-color: rgb(228, 228, 228); font-family: Courier New; font-size: 11px;"&gt;"ProfilePropertyName"&lt;/span&gt;,
ProfilePropertyValue );&lt;/span&gt;
&lt;/p&gt;
&lt;p&gt;
&lt;span style="color: Black; background-color: transparent; font-family: Courier New; font-size: 11px;"&gt;Context.Profile.GetPropertyValue( &lt;span style="color: rgb(102, 102, 102); background-color: rgb(228, 228, 228); font-family: Courier New; font-size: 11px;"&gt;"ProfilePropertyName"&lt;/span&gt; );&lt;/span&gt;
&lt;/p&gt;
&lt;p&gt;
In my experience, using Server 2003 64-bit with VS2005 Pro, I had no problems if the
WebProfileGenerator was installed by running Setup.exe.&lt;span style="color: Black; background-color: transparent; font-family: Courier New; font-size: 11px;"&gt;
&lt;br&gt;
&lt;/span&gt;
&lt;/p&gt;
&lt;p&gt;
Download &lt;a href="http://xealcom.co.uk/content/binary/WebProfileGenerator1.3.zip"&gt;WebProfileGenerator1.3.zip
(418.71 KB)&lt;/a&gt; from this site.
&lt;/p&gt;</description>
      <comments>http://xealcom.co.uk/CommentView,guid,87f42101-f3de-486f-b34e-ea6e926f6e9a.aspx</comments>
      <category>Asp.Net</category>
    </item>
    <item>
      <trackback:ping>http://xealcom.co.uk/Trackback.aspx?guid=e2c70dcf-a405-494f-bd12-171bb2bb3152</trackback:ping>
      <pingback:server>http://xealcom.co.uk/pingback.aspx</pingback:server>
      <pingback:target>http://xealcom.co.uk/PermaLink,guid,e2c70dcf-a405-494f-bd12-171bb2bb3152.aspx</pingback:target>
      <dc:creator>
      </dc:creator>
      <wfw:comment>http://xealcom.co.uk/CommentView,guid,e2c70dcf-a405-494f-bd12-171bb2bb3152.aspx</wfw:comment>
      <wfw:commentRss>http://xealcom.co.uk/SyndicationService.asmx/GetEntryCommentsRss?guid=e2c70dcf-a405-494f-bd12-171bb2bb3152</wfw:commentRss>
      <slash:comments>1</slash:comments>
      <body xmlns="http://www.w3.org/1999/xhtml">When developing Asp.Net application with
Visual Studio 2005  I use <a href="http://webproject.scottgu.com/">Web Application
Project</a>. However, this type of project does not allow using <a href="http://msdn2.microsoft.com/en-us/library/yy40ytx0.aspx">Web
Site Administration Tool,</a> so I searched the web for a possible solution. Gladly
I came across the answer on <a href="http://blog.devstone.com/aaron/archive/2006/09/23/1832.aspx">R.
Aaron Zupancic's blog</a>.<br /><br />
Following his article I created a little utility that I hope could make using Aaron's
approach a little more flexible.<br />
Basically it's an aspx page (you can download it here <a href="http://xealcom.co.uk/content/binary/SelectWebSite.zip">SelectWebSite.zip</a>)
that allows you to select a Web Project and run the ASP.NET Web Site Administration
Tool against it.<br /><br />
1. Please follow Aaron's article to create a virtual directory for <font color="#000080">%WINDIR%\Microsoft.NET\Framework\v2.0.50727\ASP.NETWebAdminFiles</font><br /><ul><li><font face="Verdana" size="2">Create a new virtual directory that references %WINDIR%\Microsoft.NET\Framework\v2.0.50727\ASP.NETWebAdminFiles.</font></li><li><font face="Verdana" size="2">Make sure that the appopriate version of ASP.NET is
used.</font></li><li><font face="Verdana" size="2">On the directory security tab, disable anonymous access.</font></li></ul>
2. Then set the default document name to <font color="#000080">SelectWebSite.aspx</font><br /><br /><img src="http://xealcom.co.uk/content/binary/DefaultPage.gif" border="0" /><br /><br />
3. Download <a href="http://xealcom.co.uk/content/binary/SelectWebSite.zip">SelectWebSite.zip</a>,
un-zip and copy it to <font color="#000080">%WINDIR%\Microsoft.NET\Framework\v2.0.50727\ASP.NETWebAdminFiles<br /><br /><font color="#000000">4. Make sure that the user account that runs Asp.Net has "Modify"
permissions on the Asp.Net project directory and file that you want the WSAT to administer.<br /><br /><b>To check what account (or group) is used</b><br /></font></font><ul><li><font color="#000080"><font color="#000000">Create an .aspx file</font></font></li><li><font color="#000080"><font color="#000000">Copy the following code to it</font></font></li></ul><font><font><font color="#000080"><font color="#000000"><span style="color: Black; background-color: transparent; font-family: Courier New; font-size: 11px;">&lt;%@
Page Language="C#" %&gt;<br /><br />
&lt;!DOCTYPE html <span style="color: Blue; background-color: transparent; font-family: Courier New; font-size: 11px;">PUBLIC</span> "-//W3C//DTD
XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"&gt;<br /><br />
&lt;html xmlns="http://www.w3.org/1999/xhtml" &gt;<br />
&lt;head runat="server"&gt;<br />
&lt;title&gt;Untitled Page&lt;/title&gt;<br />
&lt;/head&gt;<br />
&lt;body&gt;<br />
&lt;form id="form1" runat="server"&gt;<br />
&lt;div&gt;<br />
&lt;% Response.Write(System.Security.Principal.WindowsIdentity.GetCurrent().Name);
%&gt;<br />
&lt;/div&gt;<br />
&lt;/form&gt;<br />
&lt;/body&gt;<br />
&lt;/html&gt;</span></font></font></font></font><br /><font color="#000080"><font color="#000000"><br /></font></font><ul><li><font color="#000080"><font color="#000000">Place it in a virtual directory of your
IIS server</font></font></li><li><font color="#000080"><font color="#000000">Run this page with a browser</font></font></li><li><font color="#000080"><font color="#000000">Note the ID that appears on the page</font></font></li><li><font color="#000080"><font color="#000000">Grant that ID "Modify" permissions on
the Asp.Net project<br /></font></font></li></ul><font color="#000080"><br /><font color="#000000">4. Run you browser and point it to the newly created virtual
directory. It should display </font></font>SelectWebSite.aspx<br /><br /><img src="http://xealcom.co.uk/content/binary/WSATSelector.gif" border="0" /><br /><br />
5. You can add the URL to your "Favorites" or "Bookmarks" and call it up when you
need to run Asp.Net Web Site Administration Tool for a particular Asp.Net app you
are developing.<br /><br /><br /><a href="http://xealcom.co.uk/content/binary/SelectWebSite.zip">SelectWebSite.zip
(1.1 KB)</a></body>
      <title>ASP.NET Web Site Administration Tool on a Server</title>
      <guid isPermaLink="false">http://xealcom.co.uk/PermaLink,guid,e2c70dcf-a405-494f-bd12-171bb2bb3152.aspx</guid>
      <link>http://xealcom.co.uk/2007/07/13/ASPNETWebSiteAdministrationToolOnAServer.aspx</link>
      <pubDate>Fri, 13 Jul 2007 18:20:01 GMT</pubDate>
      <description>When developing Asp.Net application with Visual Studio 2005&amp;nbsp; I use &lt;a href="http://webproject.scottgu.com/"&gt;Web
Application Project&lt;/a&gt;. However, this type of project does not allow using &lt;a href="http://msdn2.microsoft.com/en-us/library/yy40ytx0.aspx"&gt;Web
Site Administration Tool,&lt;/a&gt; so I searched the web for a possible solution. Gladly
I came across the answer on &lt;a href="http://blog.devstone.com/aaron/archive/2006/09/23/1832.aspx"&gt;R.
Aaron Zupancic's blog&lt;/a&gt;.&lt;br&gt;
&lt;br&gt;
Following his article I created a little utility that I hope could make using Aaron's
approach a little more flexible.&lt;br&gt;
Basically it's an aspx page (you can download it here &lt;a href="http://xealcom.co.uk/content/binary/SelectWebSite.zip"&gt;SelectWebSite.zip&lt;/a&gt;)
that allows you to select a Web Project and run the ASP.NET Web Site Administration
Tool against it.&lt;br&gt;
&lt;br&gt;
1. Please follow Aaron's article to create a virtual directory for &lt;font color="#000080"&gt;%WINDIR%\Microsoft.NET\Framework\v2.0.50727\ASP.NETWebAdminFiles&lt;/font&gt;
&lt;br&gt;
&lt;ul&gt;
&lt;li&gt;
&lt;font face="Verdana" size="2"&gt;Create a new virtual directory that references %WINDIR%\Microsoft.NET\Framework\v2.0.50727\ASP.NETWebAdminFiles.&lt;/font&gt; 
&lt;/li&gt;
&lt;li&gt;
&lt;font face="Verdana" size="2"&gt;Make sure that the appopriate version of ASP.NET is
used.&lt;/font&gt; 
&lt;/li&gt;
&lt;li&gt;
&lt;font face="Verdana" size="2"&gt;On the directory security tab, disable anonymous access.&lt;/font&gt;
&lt;/li&gt;
&lt;/ul&gt;
2. Then set the default document name to &lt;font color="#000080"&gt;SelectWebSite.aspx&lt;/font&gt;
&lt;br&gt;
&lt;br&gt;
&lt;img src="http://xealcom.co.uk/content/binary/DefaultPage.gif" border="0"&gt;
&lt;br&gt;
&lt;br&gt;
3. Download &lt;a href="http://xealcom.co.uk/content/binary/SelectWebSite.zip"&gt;SelectWebSite.zip&lt;/a&gt;,
un-zip and copy it to &lt;font color="#000080"&gt;%WINDIR%\Microsoft.NET\Framework\v2.0.50727\ASP.NETWebAdminFiles&lt;br&gt;
&lt;br&gt;
&lt;font color="#000000"&gt;4. Make sure that the user account that runs Asp.Net has "Modify"
permissions on the Asp.Net project directory and file that you want the WSAT to administer.&lt;br&gt;
&lt;br&gt;
&lt;b&gt;To check what account (or group) is used&lt;/b&gt;
&lt;br&gt;
&lt;/font&gt;&lt;/font&gt;
&lt;ul&gt;
&lt;li&gt;
&lt;font color="#000080"&gt;&lt;font color="#000000"&gt;Create an .aspx file&lt;/font&gt;&lt;/font&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;font color="#000080"&gt;&lt;font color="#000000"&gt;Copy the following code to it&lt;/font&gt;&lt;/font&gt;
&lt;/li&gt;
&lt;/ul&gt;
&lt;font&gt;&lt;font&gt;&lt;font color="#000080"&gt;&lt;font color="#000000"&gt;&lt;span style="color: Black; background-color: transparent; font-family: Courier New; font-size: 11px;"&gt;&amp;lt;%@
Page Language="C#" %&amp;gt;&lt;br&gt;
&lt;br&gt;
&amp;lt;!DOCTYPE html &lt;span style="color: Blue; background-color: transparent; font-family: Courier New; font-size: 11px;"&gt;PUBLIC&lt;/span&gt; "-//W3C//DTD
XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"&amp;gt;&lt;br&gt;
&lt;br&gt;
&amp;lt;html xmlns="http://www.w3.org/1999/xhtml" &amp;gt;&lt;br&gt;
&amp;lt;head runat="server"&amp;gt;&lt;br&gt;
&amp;lt;title&amp;gt;Untitled Page&amp;lt;/title&amp;gt;&lt;br&gt;
&amp;lt;/head&amp;gt;&lt;br&gt;
&amp;lt;body&amp;gt;&lt;br&gt;
&amp;lt;form id="form1" runat="server"&amp;gt;&lt;br&gt;
&amp;lt;div&amp;gt;&lt;br&gt;
&amp;lt;% Response.Write(System.Security.Principal.WindowsIdentity.GetCurrent().Name);
%&amp;gt;&lt;br&gt;
&amp;lt;/div&amp;gt;&lt;br&gt;
&amp;lt;/form&amp;gt;&lt;br&gt;
&amp;lt;/body&amp;gt;&lt;br&gt;
&amp;lt;/html&amp;gt;&lt;/span&gt;&lt;/font&gt;&lt;/font&gt;&lt;/font&gt;&lt;/font&gt;
&lt;br&gt;
&lt;font color="#000080"&gt;&lt;font color="#000000"&gt;
&lt;br&gt;
&lt;/font&gt;&lt;/font&gt;
&lt;ul&gt;
&lt;li&gt;
&lt;font color="#000080"&gt;&lt;font color="#000000"&gt;Place it in a virtual directory of your
IIS server&lt;/font&gt;&lt;/font&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;font color="#000080"&gt;&lt;font color="#000000"&gt;Run this page with a browser&lt;/font&gt;&lt;/font&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;font color="#000080"&gt;&lt;font color="#000000"&gt;Note the ID that appears on the page&lt;/font&gt;&lt;/font&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;font color="#000080"&gt;&lt;font color="#000000"&gt;Grant that ID "Modify" permissions on
the Asp.Net project&lt;br&gt;
&lt;/font&gt;&lt;/font&gt;
&lt;/li&gt;
&lt;/ul&gt;
&lt;font color="#000080"&gt;
&lt;br&gt;
&lt;font color="#000000"&gt;4. Run you browser and point it to the newly created virtual
directory. It should display &lt;/font&gt;&lt;/font&gt;SelectWebSite.aspx&lt;br&gt;
&lt;br&gt;
&lt;img src="http://xealcom.co.uk/content/binary/WSATSelector.gif" border="0"&gt;
&lt;br&gt;
&lt;br&gt;
5. You can add the URL to your "Favorites" or "Bookmarks" and call it up when you
need to run Asp.Net Web Site Administration Tool for a particular Asp.Net app you
are developing.&lt;br&gt;
&lt;br&gt;
&lt;br&gt;
&lt;a href="http://xealcom.co.uk/content/binary/SelectWebSite.zip"&gt;SelectWebSite.zip
(1.1 KB)&lt;/a&gt;</description>
      <comments>http://xealcom.co.uk/CommentView,guid,e2c70dcf-a405-494f-bd12-171bb2bb3152.aspx</comments>
      <category>Asp.Net</category>
    </item>
    <item>
      <trackback:ping>http://xealcom.co.uk/Trackback.aspx?guid=2d10c490-c78d-4397-9182-ee6e9c61ede8</trackback:ping>
      <pingback:server>http://xealcom.co.uk/pingback.aspx</pingback:server>
      <pingback:target>http://xealcom.co.uk/PermaLink,guid,2d10c490-c78d-4397-9182-ee6e9c61ede8.aspx</pingback:target>
      <dc:creator>
      </dc:creator>
      <wfw:comment>http://xealcom.co.uk/CommentView,guid,2d10c490-c78d-4397-9182-ee6e9c61ede8.aspx</wfw:comment>
      <wfw:commentRss>http://xealcom.co.uk/SyndicationService.asmx/GetEntryCommentsRss?guid=2d10c490-c78d-4397-9182-ee6e9c61ede8</wfw:commentRss>
      <body xmlns="http://www.w3.org/1999/xhtml">
        <font face="Verdana">Today I was playing
with different options that can be set for State Management in Asp.Net. 
<br /><br />
"<b>State Server</b>"<br />
Setting this method was fairly straight forward. Start "ASP.NET State Service" and
set web.config<br /><p><span style="color: Black; background-color: transparent; font-family: Courier New; font-size: 11px;">&lt;sessionState<br />
  mode="InProc"<br />
  stateConnectionString="tcpip=SrvOrIP:42424"/&gt;</span></p>
where <font face="Courier New">srvOrIp</font> is the server where the </font>
        <font face="Verdana">"ASP.NET
State Service" is running.<br />
I</font>f <font face="Verdana"><font face="Courier New">srvOrIp</font></font> is
a remote server, you will also need to set it up to allow for remote access. This
is done by editing the registry settings on this server. <font face="Verdana">Set
AllowRemoteConnection to 1. You can also change the port number.</font><br /><br /><img src="http://xealcom.co.uk/images/Aspnet_state_regedit.gif" alt="Aspnet_state_regedit.gif" border="0" height="181" width="563" /><font><font face="Verdana"><span style="color: Black; background-color: transparent; font-family: Courier New; font-size: 11px;"></span></font></font><br /><font face="Verdana"><br /><br />
"<b>SQL Session State</b>"<br />
If you are using .Net Framework 2.0, you should use <font color="#000080">aspnet_regsql.exe</font> located
in <font color="#000080">%systemroot%\microsoft.net\Framework\v2.0.50727</font>.<br />
Your <font color="#000080">&lt;sessionState/&gt;</font> section in web.config files
may look similar to this<br /><p><span style="color: Black; background-color: transparent; font-family: Courier New; font-size: 11px;">&lt;sessionState 
<br />
  mode="SQLServer"<br />
  sqlConnectionString=<br />
    "Persist Security Info=True; 
<br />
     Data Source=yourSqlServer;<br />
     User ID=AspStateUser; 
<br />
     Password=secret"<br />
  useHostingIdentity="<span style="color: Blue; background-color: transparent; font-family: Courier New; font-size: 11px;">true</span>"<br />
  cookieless="<span style="color: Blue; background-color: transparent; font-family: Courier New; font-size: 11px;">false</span>"<br />
/&gt; </span></p>
So, having done this, every time I run my test site I woul get the error <font color="#ff0000">ASP.NET
version 2.0 Session State is not installed ...</font> I had a good look  around
the web hoping to find a solution, but in the end solved the issue by setting the
following permissions for the SQL Server user account used in the connection string:<br /><br />
In <font face="Courier New" size="2"><b><font color="#000080">tempdb</font><font face="Verdana"></font></b></font>database
- grant membership in <font color="#000080"><b><font face="Courier New">db_datareader</font></b></font> and <font color="#000080"><b><font face="Courier New">db_datawriter</font></b></font> roles<br />
In <font color="#000080"><b><font face="Courier New">ASPState</font></b></font> database
- add the user to <font color="#000080" face="Courier New">dbo</font> schema</font><br /><p></p>
BTW<br /><font face="Verdana">1. To test that </font><font face="Verdana"><font face="Courier New">aspnet_regsql.exe</font> command
completed successfully add user account to <font face="Courier New"><font color="#000080">sysadmin</font></font>server
role.<br />
2. Run the site<br />
3. If no errors were received, </font><font face="Verdana">remove the user from </font><font face="Verdana"><font color="#000080" face="Courier New">sysadmin</font> and
set permissions as per above<br /><br />
It's easy when you know ;)<br /></font></body>
      <title>ASP.NET version 2.0 Session State is not installed</title>
      <guid isPermaLink="false">http://xealcom.co.uk/PermaLink,guid,2d10c490-c78d-4397-9182-ee6e9c61ede8.aspx</guid>
      <link>http://xealcom.co.uk/2007/07/10/ASPNETVersion20SessionStateIsNotInstalled.aspx</link>
      <pubDate>Tue, 10 Jul 2007 15:33:22 GMT</pubDate>
      <description>&lt;font face="Verdana"&gt;Today I was playing with different options that can be set for
State Management in Asp.Net. 
&lt;br&gt;
&lt;br&gt;
"&lt;b&gt;State Server&lt;/b&gt;"&lt;br&gt;
Setting this method was fairly straight forward. Start "ASP.NET State Service" and
set web.config&lt;br&gt;
&lt;p&gt;
&lt;span style="color: Black; background-color: transparent; font-family: Courier New; font-size: 11px;"&gt;&amp;lt;sessionState&lt;br&gt;
&amp;nbsp; mode="InProc"&lt;br&gt;
&amp;nbsp; stateConnectionString="tcpip=SrvOrIP:42424"/&amp;gt;&lt;/span&gt;
&lt;/p&gt;
where &lt;font face="Courier New"&gt;srvOrIp&lt;/font&gt; is the server where the &lt;/font&gt;&lt;font face="Verdana"&gt;"ASP.NET
State Service" is running.&lt;br&gt;
I&lt;/font&gt;f &lt;font face="Verdana"&gt;&lt;font face="Courier New"&gt;srvOrIp&lt;/font&gt; &lt;/font&gt; is
a remote server, you will also need to set it up to allow for remote access. This
is done by editing the registry settings on this server. &lt;font face="Verdana"&gt;Set
AllowRemoteConnection to 1. You can also change the port number.&lt;/font&gt;
&lt;br&gt;
&lt;br&gt;
&lt;img src="http://xealcom.co.uk/images/Aspnet_state_regedit.gif" alt="Aspnet_state_regedit.gif" border="0" height="181" width="563"&gt;&lt;font&gt;&lt;font face="Verdana"&gt;&lt;span style="color: Black; background-color: transparent; font-family: Courier New; font-size: 11px;"&gt;&lt;/span&gt;&lt;/font&gt;&lt;/font&gt;
&lt;br&gt;
&lt;font face="Verdana"&gt;
&lt;br&gt;
&lt;br&gt;
"&lt;b&gt;SQL Session State&lt;/b&gt;"&lt;br&gt;
If you are using .Net Framework 2.0, you should use &lt;font color="#000080"&gt;aspnet_regsql.exe&lt;/font&gt; located
in &lt;font color="#000080"&gt;%systemroot%\microsoft.net\Framework\v2.0.50727&lt;/font&gt;.&lt;br&gt;
Your &lt;font color="#000080"&gt;&amp;lt;sessionState/&amp;gt;&lt;/font&gt; section in web.config files
may look similar to this&lt;br&gt;
&lt;p&gt;
&lt;span style="color: Black; background-color: transparent; font-family: Courier New; font-size: 11px;"&gt;&amp;lt;sessionState 
&lt;br&gt;
&amp;nbsp; mode="SQLServer"&lt;br&gt;
&amp;nbsp; sqlConnectionString=&lt;br&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; "Persist Security Info=True; 
&lt;br&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Data Source=yourSqlServer;&lt;br&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; User ID=AspStateUser; 
&lt;br&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Password=secret"&lt;br&gt;
&amp;nbsp; useHostingIdentity="&lt;span style="color: Blue; background-color: transparent; font-family: Courier New; font-size: 11px;"&gt;true&lt;/span&gt;"&lt;br&gt;
&amp;nbsp; cookieless="&lt;span style="color: Blue; background-color: transparent; font-family: Courier New; font-size: 11px;"&gt;false&lt;/span&gt;"&lt;br&gt;
/&amp;gt; &lt;/span&gt;
&lt;/p&gt;
So, having done this, every time I run my test site I woul get the error &lt;font color="#ff0000"&gt;ASP.NET
version 2.0 Session State is not installed ...&lt;/font&gt; I had a good look&amp;nbsp; around
the web hoping to find a solution, but in the end solved the issue by setting the
following permissions for the SQL Server user account used in the connection string:&lt;br&gt;
&lt;br&gt;
In &lt;font face="Courier New" size="2"&gt;&lt;b&gt;&lt;font color="#000080"&gt;tempdb&lt;/font&gt;&lt;font face="Verdana"&gt; &lt;/font&gt;&lt;/b&gt;&lt;/font&gt;database
- grant membership in &lt;font color="#000080"&gt;&lt;b&gt;&lt;font face="Courier New"&gt;db_datareader&lt;/font&gt;&lt;/b&gt;&lt;/font&gt; and &lt;font color="#000080"&gt;&lt;b&gt;&lt;font face="Courier New"&gt;db_datawriter&lt;/font&gt;&lt;/b&gt;&lt;/font&gt; roles&lt;br&gt;
In &lt;font color="#000080"&gt;&lt;b&gt;&lt;font face="Courier New"&gt;ASPState&lt;/font&gt;&lt;/b&gt;&lt;/font&gt; database
- add the user to &lt;font color="#000080" face="Courier New"&gt;dbo&lt;/font&gt; schema&lt;/font&gt;
&lt;br&gt;
&lt;p&gt;
&lt;/p&gt;
BTW&lt;br&gt;
&lt;font face="Verdana"&gt;1. To test that &lt;/font&gt;&lt;font face="Verdana"&gt;&lt;font face="Courier New"&gt;aspnet_regsql.exe&lt;/font&gt; command
completed successfully add user account to &lt;font face="Courier New"&gt;&lt;font color="#000080"&gt;sysadmin&lt;/font&gt; &lt;/font&gt;server
role.&lt;br&gt;
2. Run the site&lt;br&gt;
3. If no errors were received, &lt;/font&gt;&lt;font face="Verdana"&gt;remove the user from &lt;/font&gt;&lt;font face="Verdana"&gt;&lt;font color="#000080" face="Courier New"&gt;sysadmin&lt;/font&gt; and
set permissions as per above&lt;br&gt;
&lt;br&gt;
It's easy when you know ;)&lt;br&gt;
&lt;/font&gt;</description>
      <comments>http://xealcom.co.uk/CommentView,guid,2d10c490-c78d-4397-9182-ee6e9c61ede8.aspx</comments>
      <category>Asp.Net</category>
    </item>
    <item>
      <trackback:ping>http://xealcom.co.uk/Trackback.aspx?guid=4f84c2aa-bff5-4a17-8879-f955d0031a56</trackback:ping>
      <pingback:server>http://xealcom.co.uk/pingback.aspx</pingback:server>
      <pingback:target>http://xealcom.co.uk/PermaLink,guid,4f84c2aa-bff5-4a17-8879-f955d0031a56.aspx</pingback:target>
      <dc:creator>
      </dc:creator>
      <wfw:comment>http://xealcom.co.uk/CommentView,guid,4f84c2aa-bff5-4a17-8879-f955d0031a56.aspx</wfw:comment>
      <wfw:commentRss>http://xealcom.co.uk/SyndicationService.asmx/GetEntryCommentsRss?guid=4f84c2aa-bff5-4a17-8879-f955d0031a56</wfw:commentRss>
      <body xmlns="http://www.w3.org/1999/xhtml">
        <div>
          <font face="Verdana">
            <span class="921185107-03072007">
              <font size="2">When using
Microsoft Visual Studio 2005 Web Deployment Projects I received this error:</font>
            </span>
          </font>
        </div>
        <div>
          <span class="921185107-03072007">
            <p>
              <span style="font-size: 11px; color: black; font-family: Courier New; background-color: transparent;">Parser
Error Message: Could not load type 'SiteMaster'.</span>
            </p>
          </span>
        </div>
        <div>
          <font face="Verdana">
            <span class="921185107-03072007">
              <font size="2">There were
no errors during compilation, but when I ran the site after it had been published,
this error came up on first hit.</font>
            </span>
          </font>
        </div>
        <div>
          <font face="Verdana">
            <span class="921185107-03072007">
            </span> </font>
        </div>
        <div>
          <font face="Verdana">
            <span class="921185107-03072007">
              <font size="2">I used "Merge
all outputs to a single assembly" for Web Deployment project.</font>
            </span>
          </font>
        </div>
        <div>
          <font face="Verdana">
            <span class="921185107-03072007">
              <font size="2">The problem
was that I gave Web Deployment assembly the same name as the output
assembly for the site.</font>
            </span>
          </font>
        </div>
        <div>
          <font face="Verdana">
            <span class="921185107-03072007">
            </span> </font>
        </div>
        <div>
          <font face="Verdana">
            <span class="921185107-03072007">
              <font size="2">Changed
the names - problem solved.</font>
            </span>
          </font>
        </div>
        <div>
          <font face="Verdana">
            <span class="921185107-03072007">
            </span> </font>
        </div>
        <div>
          <font face="Verdana">
            <span class="921185107-03072007">
              <font size="2">It's easy
when you know ;)</font>
            </span>
          </font>
        </div>
      </body>
      <title>Parser Error Message: Could not load type 'SiteMaster'.</title>
      <guid isPermaLink="false">http://xealcom.co.uk/PermaLink,guid,4f84c2aa-bff5-4a17-8879-f955d0031a56.aspx</guid>
      <link>http://xealcom.co.uk/2007/07/03/ParserErrorMessageCouldNotLoadTypeSiteMaster.aspx</link>
      <pubDate>Tue, 03 Jul 2007 08:02:24 GMT</pubDate>
      <description>&lt;div&gt;&lt;font face="Verdana"&gt;&lt;span class="921185107-03072007"&gt;&lt;font size="2"&gt;When using
Microsoft Visual Studio 2005 Web Deployment Projects I received this&amp;nbsp;error:&lt;/font&gt;&lt;/span&gt;&lt;/font&gt;
&lt;/div&gt;
&lt;div&gt;&lt;span class="921185107-03072007"&gt; 
&lt;p&gt;
&lt;span style="font-size: 11px; color: black; font-family: Courier New; background-color: transparent;"&gt;Parser
Error Message: Could not load type 'SiteMaster'.&lt;/span&gt;
&lt;/p&gt;
&lt;/span&gt;
&lt;/div&gt;
&lt;div&gt;&lt;font face="Verdana"&gt;&lt;span class="921185107-03072007"&gt;&lt;font size="2"&gt;There were
no errors during compilation, but when I ran the site after it had been published,
this error came up on first hit.&lt;/font&gt;&lt;/span&gt;&lt;/font&gt;
&lt;/div&gt;
&lt;div&gt;&lt;font face="Verdana"&gt;&lt;span class="921185107-03072007"&gt;&lt;/span&gt;&amp;nbsp;&lt;/font&gt;
&lt;/div&gt;
&lt;div&gt;&lt;font face="Verdana"&gt;&lt;span class="921185107-03072007"&gt;&lt;font size="2"&gt;I used "Merge
all outputs to a single assembly" for Web Deployment project.&lt;/font&gt;&lt;/span&gt;&lt;/font&gt;
&lt;/div&gt;
&lt;div&gt;&lt;font face="Verdana"&gt;&lt;span class="921185107-03072007"&gt;&lt;font size="2"&gt;The problem
was that&amp;nbsp;I&amp;nbsp;gave&amp;nbsp;Web Deployment assembly the same name as the output
assembly for the site.&lt;/font&gt;&lt;/span&gt;&lt;/font&gt;
&lt;/div&gt;
&lt;div&gt;&lt;font face="Verdana"&gt;&lt;span class="921185107-03072007"&gt;&lt;/span&gt;&amp;nbsp;&lt;/font&gt;
&lt;/div&gt;
&lt;div&gt;&lt;font face="Verdana"&gt;&lt;span class="921185107-03072007"&gt;&lt;font size="2"&gt;Changed
the names - problem solved.&lt;/font&gt;&lt;/span&gt;&lt;/font&gt;
&lt;/div&gt;
&lt;div&gt;&lt;font face="Verdana"&gt;&lt;span class="921185107-03072007"&gt;&lt;/span&gt;&amp;nbsp;&lt;/font&gt;
&lt;/div&gt;
&lt;div&gt;&lt;font face="Verdana"&gt;&lt;span class="921185107-03072007"&gt;&lt;font size="2"&gt;It's easy
when you know ;)&lt;/font&gt;&lt;/span&gt;&lt;/font&gt;
&lt;/div&gt;</description>
      <comments>http://xealcom.co.uk/CommentView,guid,4f84c2aa-bff5-4a17-8879-f955d0031a56.aspx</comments>
      <category>Asp.Net</category>
    </item>
    <item>
      <trackback:ping>http://xealcom.co.uk/Trackback.aspx?guid=940e2480-1258-428c-acb2-6d5fcd19f5ed</trackback:ping>
      <pingback:server>http://xealcom.co.uk/pingback.aspx</pingback:server>
      <pingback:target>http://xealcom.co.uk/PermaLink,guid,940e2480-1258-428c-acb2-6d5fcd19f5ed.aspx</pingback:target>
      <dc:creator>
      </dc:creator>
      <wfw:comment>http://xealcom.co.uk/CommentView,guid,940e2480-1258-428c-acb2-6d5fcd19f5ed.aspx</wfw:comment>
      <wfw:commentRss>http://xealcom.co.uk/SyndicationService.asmx/GetEntryCommentsRss?guid=940e2480-1258-428c-acb2-6d5fcd19f5ed</wfw:commentRss>
      <title>Asp.Net_SessionID Head Ache</title>
      <guid isPermaLink="false">http://xealcom.co.uk/PermaLink,guid,940e2480-1258-428c-acb2-6d5fcd19f5ed.aspx</guid>
      <link>http://xealcom.co.uk/2007/06/24/AspNetSessionIDHeadAche.aspx</link>
      <pubDate>Sun, 24 Jun 2007 13:44:11 GMT</pubDate>
      <description>&lt;span lang="EN-GB"&gt;It took me ages to figure out why Request.Cookies[“ASP.NET_SessionID”]&lt;span&gt;&amp;nbsp; &lt;/span&gt;was
always ‘null’ in my attempts to learn about its behaviour.&lt;o:p&gt;&lt;/o:p&gt;
&lt;/span&gt;
&lt;p class="MsoNormal"&gt;
&lt;/p&gt;
&lt;p class="MsoNormal"&gt;
&lt;span lang="EN-GB"&gt;For “ASP.NET_SessionID” to materialise - Page.Session MUST be written
to!&lt;o:p&gt;&lt;/o:p&gt;
&lt;/span&gt; 
&lt;/p&gt;
</description>
      <comments>http://xealcom.co.uk/CommentView,guid,940e2480-1258-428c-acb2-6d5fcd19f5ed.aspx</comments>
      <category>Asp.Net</category>
    </item>
    <item>
      <trackback:ping>http://xealcom.co.uk/Trackback.aspx?guid=05fe1730-18ae-4988-a04c-3fa533084c80</trackback:ping>
      <pingback:server>http://xealcom.co.uk/pingback.aspx</pingback:server>
      <pingback:target>http://xealcom.co.uk/PermaLink,guid,05fe1730-18ae-4988-a04c-3fa533084c80.aspx</pingback:target>
      <dc:creator>
      </dc:creator>
      <wfw:comment>http://xealcom.co.uk/CommentView,guid,05fe1730-18ae-4988-a04c-3fa533084c80.aspx</wfw:comment>
      <wfw:commentRss>http://xealcom.co.uk/SyndicationService.asmx/GetEntryCommentsRss?guid=05fe1730-18ae-4988-a04c-3fa533084c80</wfw:commentRss>
      <body xmlns="http://www.w3.org/1999/xhtml">I was installing <a href="http://www.dasblog.info/">dasBlog
1.9</a> and encounted the error below.<br /><br /><b>Description</b>: <font color="#ff0000">An unhandled exception occurred during the
execution of the current web request. Please review the stack trace for more information
about the error and where it originated in the code</font>.<br /><br /><b>Exception Details</b>: "System.InvalidOperationException": Unable to generate a
temporary class (result=1).<br />
error CS2001: Source file 'C:\WINDOWS\TEMP\fxsvqhpv.0.cs' could not be found<br />
error CS2008: No inputs specified<br /><br />
It turned out to be the permissions for the user account used by IIS to process Asp.Net
requests.<br />
So, to resolve this issue, grant this user account the 'List Folder Contents' and
'Read' permissions on the 
<br /><font color="#000080">%windir%\Temp</font> folder.<br /><br /><b>Source</b><br />
http://support.microsoft.com/kb/908158<br /><br />
BTW<br />
To find out which account IIS uses for Asp.net 
<br />
1. Create the following *.aspx file<br /><p><span style="color: Black; background-color: transparent; font-family: Courier New; font-size: 11px;">&lt;%@
Page Language=<span style="color: rgb(102, 102, 102); background-color: rgb(228, 228, 228); font-family: Courier New; font-size: 11px;">"C#"</span> %&gt;<br /><br />
&lt;!DOCTYPE html PUBLIC <span style="color: rgb(102, 102, 102); background-color: rgb(228, 228, 228); font-family: Courier New; font-size: 11px;">"-//W3C//DTD
XHTML 1.0 Transitional//EN"</span><span style="color: rgb(102, 102, 102); background-color: rgb(228, 228, 228); font-family: Courier New; font-size: 11px;">"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"</span>&gt;<br />
&lt;html xmlns=<span style="color: rgb(102, 102, 102); background-color: rgb(228, 228, 228); font-family: Courier New; font-size: 11px;">"http://www.w3.org/1999/xhtml"</span>&gt;<br />
&lt;head runat=<span style="color: rgb(102, 102, 102); background-color: rgb(228, 228, 228); font-family: Courier New; font-size: 11px;">"server"</span>&gt;<br />
&lt;title&gt;Untitled Page&lt;/title&gt;<br />
&lt;/head&gt;<br />
&lt;body&gt;<br />
&lt;form id=<span style="color: rgb(102, 102, 102); background-color: rgb(228, 228, 228); font-family: Courier New; font-size: 11px;">"form1"</span> runat=<span style="color: rgb(102, 102, 102); background-color: rgb(228, 228, 228); font-family: Courier New; font-size: 11px;">"server"</span>&gt;<br />
&lt;div&gt;<br />
&lt;% Response.Write( System.Security.Principal.WindowsIdentity.GetCurrent().Name
); %&gt;<br />
&lt;/div&gt;<br />
&lt;/form&gt;<br />
&lt;/body&gt;<br />
&lt;/html&gt;</span></p><p><span style="color: Black; background-color: transparent; font-family: Courier New; font-size: 11px;"><font size="2" face="Verdana">2.
Copy it to your IIS server virtual directory and run in a browser.</font></span></p>
It's easy when you know ;)<br /><p><span style="color: Black; background-color: transparent; font-family: Courier New; font-size: 11px;"><font size="2" face="Verdana"><br /></font></span></p></body>
      <title>System.InvalidOperationException: Unable to generate a temporary class</title>
      <guid isPermaLink="false">http://xealcom.co.uk/PermaLink,guid,05fe1730-18ae-4988-a04c-3fa533084c80.aspx</guid>
      <link>http://xealcom.co.uk/2007/06/21/SystemInvalidOperationExceptionUnableToGenerateATemporaryClass.aspx</link>
      <pubDate>Thu, 21 Jun 2007 07:21:56 GMT</pubDate>
      <description>I was installing &lt;a href="http://www.dasblog.info/"&gt;dasBlog 1.9&lt;/a&gt; and encounted
the error below.&lt;br&gt;
&lt;br&gt;
&lt;b&gt;Description&lt;/b&gt;: &lt;font color="#ff0000"&gt;An unhandled exception occurred during the
execution of the current web request. Please review the stack trace for more information
about the error and where it originated in the code&lt;/font&gt;.&lt;br&gt;
&lt;br&gt;
&lt;b&gt;Exception Details&lt;/b&gt;: "System.InvalidOperationException": Unable to generate a
temporary class (result=1).&lt;br&gt;
error CS2001: Source file 'C:\WINDOWS\TEMP\fxsvqhpv.0.cs' could not be found&lt;br&gt;
error CS2008: No inputs specified&lt;br&gt;
&lt;br&gt;
It turned out to be the permissions for the user account used by IIS to process Asp.Net
requests.&lt;br&gt;
So, to resolve this issue, grant this user account the 'List Folder Contents' and
'Read' permissions on the 
&lt;br&gt;
&lt;font color="#000080"&gt;%windir%\Temp&lt;/font&gt; folder.&lt;br&gt;
&lt;br&gt;
&lt;b&gt;Source&lt;/b&gt;
&lt;br&gt;
http://support.microsoft.com/kb/908158&lt;br&gt;
&lt;br&gt;
BTW&lt;br&gt;
To find out which account IIS uses for Asp.net 
&lt;br&gt;
1. Create the following *.aspx file&lt;br&gt;
&lt;p&gt;
&lt;span style="color: Black; background-color: transparent; font-family: Courier New; font-size: 11px;"&gt;&amp;lt;%@
Page Language=&lt;span style="color: rgb(102, 102, 102); background-color: rgb(228, 228, 228); font-family: Courier New; font-size: 11px;"&gt;"C#"&lt;/span&gt; %&amp;gt;&lt;br&gt;
&lt;br&gt;
&amp;lt;!DOCTYPE html PUBLIC &lt;span style="color: rgb(102, 102, 102); background-color: rgb(228, 228, 228); font-family: Courier New; font-size: 11px;"&gt;"-//W3C//DTD
XHTML 1.0 Transitional//EN"&lt;/span&gt; &lt;span style="color: rgb(102, 102, 102); background-color: rgb(228, 228, 228); font-family: Courier New; font-size: 11px;"&gt;"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"&lt;/span&gt;&amp;gt;&lt;br&gt;
&amp;lt;html xmlns=&lt;span style="color: rgb(102, 102, 102); background-color: rgb(228, 228, 228); font-family: Courier New; font-size: 11px;"&gt;"http://www.w3.org/1999/xhtml"&lt;/span&gt;&amp;gt;&lt;br&gt;
&amp;lt;head runat=&lt;span style="color: rgb(102, 102, 102); background-color: rgb(228, 228, 228); font-family: Courier New; font-size: 11px;"&gt;"server"&lt;/span&gt;&amp;gt;&lt;br&gt;
&amp;lt;title&amp;gt;Untitled Page&amp;lt;/title&amp;gt;&lt;br&gt;
&amp;lt;/head&amp;gt;&lt;br&gt;
&amp;lt;body&amp;gt;&lt;br&gt;
&amp;lt;form id=&lt;span style="color: rgb(102, 102, 102); background-color: rgb(228, 228, 228); font-family: Courier New; font-size: 11px;"&gt;"form1"&lt;/span&gt; runat=&lt;span style="color: rgb(102, 102, 102); background-color: rgb(228, 228, 228); font-family: Courier New; font-size: 11px;"&gt;"server"&lt;/span&gt;&amp;gt;&lt;br&gt;
&amp;lt;div&amp;gt;&lt;br&gt;
&amp;lt;% Response.Write( System.Security.Principal.WindowsIdentity.GetCurrent().Name
); %&amp;gt;&lt;br&gt;
&amp;lt;/div&amp;gt;&lt;br&gt;
&amp;lt;/form&amp;gt;&lt;br&gt;
&amp;lt;/body&amp;gt;&lt;br&gt;
&amp;lt;/html&amp;gt;&lt;/span&gt;
&lt;/p&gt;
&lt;p&gt;
&lt;span style="color: Black; background-color: transparent; font-family: Courier New; font-size: 11px;"&gt;&lt;font size="2" face="Verdana"&gt;2.
Copy it to your IIS server virtual directory and run in a browser.&lt;/font&gt;&lt;/span&gt;
&lt;/p&gt;
It's easy when you know ;)&lt;br&gt;
&lt;p&gt;
&lt;span style="color: Black; background-color: transparent; font-family: Courier New; font-size: 11px;"&gt;&lt;font size="2" face="Verdana"&gt;
&lt;br&gt;
&lt;/font&gt;&lt;/span&gt;
&lt;/p&gt;</description>
      <comments>http://xealcom.co.uk/CommentView,guid,05fe1730-18ae-4988-a04c-3fa533084c80.aspx</comments>
      <category>Asp.Net</category>
    </item>
    <item>
      <trackback:ping>http://xealcom.co.uk/Trackback.aspx?guid=f17e43a6-2f3c-40e0-8696-e20038203b24</trackback:ping>
      <pingback:server>http://xealcom.co.uk/pingback.aspx</pingback:server>
      <pingback:target>http://xealcom.co.uk/PermaLink,guid,f17e43a6-2f3c-40e0-8696-e20038203b24.aspx</pingback:target>
      <dc:creator>
      </dc:creator>
      <wfw:comment>http://xealcom.co.uk/CommentView,guid,f17e43a6-2f3c-40e0-8696-e20038203b24.aspx</wfw:comment>
      <wfw:commentRss>http://xealcom.co.uk/SyndicationService.asmx/GetEntryCommentsRss?guid=f17e43a6-2f3c-40e0-8696-e20038203b24</wfw:commentRss>
      <body xmlns="http://www.w3.org/1999/xhtml">
        <p>
When you install Visual Studio 2005 Asp.Net gets SQL Express as a default provider.
This means that all your web project security - Roles, Membership, etc - is handled
in aspnetdb on the local machine. To change from local machine to an SQL Server you
need to make these modifications. 
</p>
        <p>
          <br />
This is from Scott Guthrie's blog 
<br /><a href="http://weblogs.asp.net/scottgu/archive/2005/08/25/423703.aspx">How do I change
the providers to use SQL Server Instead of SQL Express?</a></p>
      </body>
      <title>Changing Default Provider in Visual Studio 2005</title>
      <guid isPermaLink="false">http://xealcom.co.uk/PermaLink,guid,f17e43a6-2f3c-40e0-8696-e20038203b24.aspx</guid>
      <link>http://xealcom.co.uk/2006/06/25/ChangingDefaultProviderInVisualStudio2005.aspx</link>
      <pubDate>Sun, 25 Jun 2006 13:48:19 GMT</pubDate>
      <description>
		&lt;p&gt;
When you install Visual Studio 2005 Asp.Net gets SQL Express as a default provider.
This means that all your web project security - Roles, Membership, etc - is handled
in aspnetdb on the local machine. To change from local machine to an SQL Server you
need to make these modifications. 
&lt;/p&gt;
&lt;p&gt;
&lt;br /&gt;
This is from Scott Guthrie's blog 
&lt;br /&gt;
&lt;a href="http://weblogs.asp.net/scottgu/archive/2005/08/25/423703.aspx"&gt;How do I change
the providers to use SQL Server Instead of SQL Express?&lt;/a&gt;
&lt;/p&gt;
</description>
      <comments>http://xealcom.co.uk/CommentView,guid,f17e43a6-2f3c-40e0-8696-e20038203b24.aspx</comments>
      <category>Asp.Net</category>
    </item>
  </channel>
</rss>