<?xml version="1.0" encoding="utf-8"?>
<feed xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xml:lang="en-us" xmlns="http://www.w3.org/2005/Atom">
  <title>Nikolais Rant</title>
  <link rel="alternate" type="text/html" href="http://blogs.phiner.co.nz/" />
  <link rel="self" href="http://blogs.phiner.co.nz/SyndicationService.asmx/GetAtom" />
  <icon>favicon.ico</icon>
  <updated>2005-09-07T18:39:00.0000000-05:00</updated>
  <author>
    <name>Nikolai Blackie</name>
  </author>
  <subtitle>Stuff n Things</subtitle>
  <id>http://blogs.phiner.co.nz/</id>
  <generator uri="http://www.dasblog.net" version="1.8.5223.2">DasBlog</generator>
  <entry>
    <title>Web Application Startup Failures - Access is denied</title>
    <link rel="alternate" type="text/html" href="http://blogs.phiner.co.nz/PermaLink,guid,c3f7fff2-7be8-4204-90e4-95219ea9714a.aspx" />
    <id>http://blogs.phiner.co.nz/PermaLink,guid,c3f7fff2-7be8-4204-90e4-95219ea9714a.aspx</id>
    <published>2005-09-07T18:37:00.0000000-05:00</published>
    <updated>2005-09-07T18:39:00.0000000-05:00</updated>
    <category term="Computers - .NET" label="Computers - .NET" scheme="dasBlog" />
    <content type="html">&lt;p&gt;&lt; add assembly = &lt;
* &gt;
   If you are getting "Parser Error Message: Access is denied: 'Some Assembly'." and
   "Source Error: / &gt;" sometimes when you are running your web applications it maybe
   because of index server. Here are some tips to sort it... Easiest being stopping Index
   Server. 
&lt;/p&gt;
&lt;p&gt;
   &lt;a href="http://support.microsoft.com/default.aspx?scid=kb;en-us;329065" target="#"&gt;http://support.microsoft.com/default.aspx?scid=kb;en-us;329065&lt;/a&gt; 
&lt;/p&gt;
&lt;p&gt;
   Care of &lt;a href="http://blogs.wwwcoder.com/deepak/archive/2004/10/14/885.aspx" target="#"&gt;http://blogs.wwwcoder.com/deepak/archive/2004/10/14/885.aspx&lt;/a&gt; 
&lt;/p&gt;
&lt;img width="0" height="0" src="http://blogs.phiner.co.nz/aggbug.ashx?id=c3f7fff2-7be8-4204-90e4-95219ea9714a" /&gt;</content>
  </entry>
  <entry>
    <title>Virtual Server 2005 Playtime</title>
    <link rel="alternate" type="text/html" href="http://blogs.phiner.co.nz/PermaLink,guid,7caf799e-c138-4ef8-9adc-db629fb6e1c2.aspx" />
    <id>http://blogs.phiner.co.nz/PermaLink,guid,7caf799e-c138-4ef8-9adc-db629fb6e1c2.aspx</id>
    <published>2005-09-01T20:51:00.0000000-05:00</published>
    <updated>2005-09-01T20:52:00.0000000-05:00</updated>
    <category term="Computers - .NET" label="Computers - .NET" scheme="dasBlog" />
    <category term="Computers - General" label="Computers - General" scheme="dasBlog" />
    <content type="html">&lt;p&gt;
   Well I am about to begin my journey into VS.NET 2005 and SQL Server 2005 using Virtual
   Server to host my development environment. Here is a quick tip just incase you have
   some issues getting the server up and running. 
&lt;/p&gt;
&lt;p&gt;
   When attempting to fire up the Virtual Machine Remote Control (VMRC) Server and you
   keep getting 'Virtual Server could not start the VMRC server. Another server may be
   using the selected TCP/IP port.' run the following command to check which application
   is hogging the tcp/ip port 5900 
&lt;/p&gt;
&lt;p&gt;
   From Steve Radich blog &lt;a href="http://www.aspdeveloper.net/tiki-view_blog_post.php?blogId=4&amp;postId=8" target="#"&gt;Permalink&lt;/a&gt;
   &lt;br&gt;
   To display the listening ports on a server you can do (From a command prompt):&lt;br&gt;
   &lt;br&gt;
   netstat -ano | find ""&lt;br&gt;
   &lt;br&gt;
   For example the newsgroup post is about virtual server which uses port 5900. You could
   do:&lt;br&gt;
   &lt;br&gt;
   netstat -ano | find "5900"&lt;br&gt;
   &lt;br&gt;
   This would return something like:&lt;br&gt;
   &lt;br&gt;
   TCP 0.0.0.0:5900 0.0.0.0:0 LISTENING 320 
   &lt;br&gt;
   &lt;br&gt;
   You can then launch Task Manager and find that task ID. If Task Manager doesn't show
   the process id column then you can (in task manager) go to View - Select Columns -
   PID (Process Identifier). 
   &lt;br&gt;
   &lt;br&gt;
   Thanks Steve 
&lt;/p&gt;
&lt;img width="0" height="0" src="http://blogs.phiner.co.nz/aggbug.ashx?id=7caf799e-c138-4ef8-9adc-db629fb6e1c2" /&gt;</content>
  </entry>
  <entry>
    <title>Installing the WSE 2.0 Sample Certificates </title>
    <link rel="alternate" type="text/html" href="http://blogs.phiner.co.nz/PermaLink,guid,e8a59747-a31e-47ae-b885-f9a992e4c90b.aspx" />
    <id>http://blogs.phiner.co.nz/PermaLink,guid,e8a59747-a31e-47ae-b885-f9a992e4c90b.aspx</id>
    <published>2005-08-17T18:14:00.0000000-05:00</published>
    <updated>2005-08-17T19:11:00.0000000-05:00</updated>
    <category term="Computers - .NET" label="Computers - .NET" scheme="dasBlog" />
    <content type="xhtml">
      <div xmlns="http://www.w3.org/1999/xhtml">
        <p>
      If your trying to get the WSE 2.0 samples setup then you will find these links most
      helpful. I have been using these to get the “AsymmetricEncryption“ sample
      up and running on Windows 2000 Professional.
   </p>
        <p>
          <a href="http://pluralsight.com/blogs/aaron/archive/2004/07/13/1623.aspx">http://pluralsight.com/blogs/aaron/archive/2004/07/13/1623.aspx</a>
        </p>
        <p>
          <a href="http://hyperthink.net/blog/PermaLink,guid,d453be63-5389-450b-8bae-81113fa188f4.aspx">http://hyperthink.net/blog/PermaLink,guid,d453be63-5389-450b-8bae-81113fa188f4.aspx</a>
        </p>
        <p>
      I also found that on Windows 2000 Professional that there is no "Other People Store"
      and the advice to use IE to import the Public Portion of the Server key does not work.
      To get around this I simply added the “Server Public.cer“ to “Current
      User\Personal“ and the samples work as is with no code changes.
   </p>
        <p>
      If you attempt to import the public portion cert “Server Public.cer“ to
      another location i.e. “Current User\Trusted People“ you will get
      policy errors such as “WSE405: A satisfactory subset of policy assertions that
      could be enforced for the outgoing message could not be found.“. This is basically
      caused due to the fact that the certificate specified in your policyCache.config can
      not be found.
   </p>
        <p>
      Another handy tip is to ensure you have diagnostics policy tracing set to on,
      this will generate a “SendPolicy.webinfo“ file in your client bin directory
      with details of any errors. It will provide you with handy information such as:
   </p>
        <p>
          <font face="Courier New" color="#008000" size="1">&lt;wset:message action="http://stockservice.contoso.com/wse/samples/2003/06/StockQuoteRequest"
      messageId="uuid:e8c0df94-bc61-4430-bcc6-a97fd4018192" appDomain="AsymEncryptPolicyClient.exe"
      time="2005-08-18T11:21:53.1093750+12:00"&gt;<br />
      &lt;wset:compile qname="wsp:Policy" wsu:Id="#Encrypt-X.509" usage="Required" canEnforce="false"&gt;<br />
      &lt;wset:compile qname="wssp:Confidentiality" usage="Required" canEnforce="false"&gt;<br />
      &lt;wset:annotation&gt;ISecurityTokenManager.PermitsPolicyEnforcementTokenCaching
      is set to true in the token manager registered for this token type. A token will be
      loaded from the token manager and cached for subsequent message enforcement.&lt;/wset:annotation&gt;<br />
      &lt;wset:annotation&gt;Invoking ISecurityTokenManager.LoadTokenFromSecurityTokenAssertion
      from the token manager registered for this token type.&lt;/wset:annotation&gt;<br />
      &lt;wset:annotation&gt;Could not find a security token.&lt;/wset:annotation&gt;<br />
      &lt;wset:annotation&gt;Looking for a satisfactory token in the current message's token
      collection...&lt;/wset:annotation&gt;<br />
      &lt;wset:annotation&gt;Looking for a satisfactory token in policy enforcement token
      cache...&lt;/wset:annotation&gt;<br />
      &lt;wset:annotation&gt;ISecurityTokenManager.PermitsPolicyEnforcementTokenCaching
      is set to true in the token manager registered for this token type. Attempting to
      use the previously cached token...&lt;/wset:annotation&gt;<br />
      &lt;wset:annotation&gt;Invoking ISecurityTokenManager.LoadTokenFromSecurityTokenAssertion
      from the token manager registered for this token type.&lt;/wset:annotation&gt;<br />
      &lt;wset:annotation&gt;Could not find a security token.&lt;/wset:annotation&gt;<br />
      &lt;/wset:compile&gt;<br />
      &lt;/wset:compile&gt;<br />
      &lt;/wset:message&gt;</font>
        </p>
        <img width="0" height="0" src="http://blogs.phiner.co.nz/aggbug.ashx?id=e8a59747-a31e-47ae-b885-f9a992e4c90b" />
      </div>
    </content>
  </entry>
  <entry>
    <title>BizTalk Deep Diving</title>
    <link rel="alternate" type="text/html" href="http://blogs.phiner.co.nz/PermaLink,guid,fa29ed65-aea8-4280-be8f-b9dacbc4f461.aspx" />
    <id>http://blogs.phiner.co.nz/PermaLink,guid,fa29ed65-aea8-4280-be8f-b9dacbc4f461.aspx</id>
    <published>2005-04-21T18:20:00.0000000-05:00</published>
    <updated>2005-05-02T22:06:00.0000000-05:00</updated>
    <category term="Computers - BizTalk" label="Computers - BizTalk" scheme="dasBlog" />
    <content type="xhtml">
      <div xmlns="http://www.w3.org/1999/xhtml">
        <p>
      Well I am one of the lucky first one hundred people to attend the Quick Learn BizTalk
      2004 Deep Dive training. John Callaway runs the course and has done a fantastic job
      putting the content together. If you can get on a course that isn't sold out I totally
      recommend it.
   </p>
        <p>
      Go check out Scotts Woodgates blog for feedback from partners that have attended to
      date <a href="http://blogs.msdn.com/scottwoo/archive/2005/04/28/413101.aspx" target="#">http://blogs.msdn.com/scottwoo/archive/2005/04/28/413101.aspx</a></p>
        <p>
          <a href="http://www.quicklearn.com/deepdive.htm" target="#">http://www.quicklearn.com/deepdive.htm</a>
        </p>
        <img width="0" height="0" src="http://blogs.phiner.co.nz/aggbug.ashx?id=fa29ed65-aea8-4280-be8f-b9dacbc4f461" />
      </div>
    </content>
  </entry>
  <entry>
    <title>Background Configuration Display</title>
    <link rel="alternate" type="text/html" href="http://blogs.phiner.co.nz/PermaLink,guid,f672a9fa-aee8-460e-a381-4129b600532d.aspx" />
    <id>http://blogs.phiner.co.nz/PermaLink,guid,f672a9fa-aee8-460e-a381-4129b600532d.aspx</id>
    <published>2005-04-21T00:55:00.0000000-05:00</published>
    <updated>2005-04-21T00:55:00.0000000-05:00</updated>
    <category term="Computers - .NET" label="Computers - .NET" scheme="dasBlog" />
    <category term="Computers - General" label="Computers - General" scheme="dasBlog" />
    <content type="xhtml">
      <div xmlns="http://www.w3.org/1999/xhtml">
        <p>
      On a course I saw this very cool SysInternals tool being used on the class desktops
      that display the systems configuration information. Very nifty, new and cool, very
      geeky. Check it out.
   </p>
        <p>
          <a href="http://www.sysinternals.com/ntw2k/freeware/bginfo.shtml" target="#">http://www.sysinternals.com/ntw2k/freeware/bginfo.shtml</a>
        </p>
        <img width="0" height="0" src="http://blogs.phiner.co.nz/aggbug.ashx?id=f672a9fa-aee8-460e-a381-4129b600532d" />
      </div>
    </content>
  </entry>
  <entry>
    <title>Production Deployments of Patterns &amp; Practices Enterprise Libraries Pt 2</title>
    <link rel="alternate" type="text/html" href="http://blogs.phiner.co.nz/PermaLink,guid,8e04638a-e5b7-4e32-86db-13f2959cb5d2.aspx" />
    <id>http://blogs.phiner.co.nz/PermaLink,guid,8e04638a-e5b7-4e32-86db-13f2959cb5d2.aspx</id>
    <published>2005-04-10T21:19:00.0000000-05:00</published>
    <updated>2005-04-10T21:22:00.0000000-05:00</updated>
    <category term="Computers - .NET" label="Computers - .NET" scheme="dasBlog" />
    <content type="xhtml">
      <div xmlns="http://www.w3.org/1999/xhtml">
        <p>
      Ok, I fixed the first issue with P&amp;P installation, then I had to deal with this
      next one.....
   </p>
        <font face="Courier New" color="#008000" size="2">
          <ul>
            <li>
         Failed to create instances of performance counter '# of Connections Opened/Sec' -
         Couldn't get process information from remote machine.. 
      </li>
            <li>
         Failed to create instances of performance counter 'Total Command Executions' - Couldn't
         get process information from remote machine.. 
      </li>
            <li>
         Failed to create instances of performance counter 'Average Command Execution Time'
         - Couldn't get process information from remote machine..</li>
          </ul>
        </font>
        <p>
      Well it seems this is a permissions related error and it will cause the DAAB (Data
      Access Block) to fail when attempting to log instrumentation information. I found
      this helpful FAQ via MSDN on adding your process user to the correct security groups.
   </p>
        <p>
          <a href="http://msdn.microsoft.com/netframework/programming/bcl/faq/SystemDiagnosticsProcessFAQ.aspx#Question8">http://msdn.microsoft.com/netframework/programming/bcl/faq/SystemDiagnosticsProcessFAQ.aspx#Question8</a>
        </p>
        <p>
          <a name="Question7">
            <b>How do I use the Process class under a non-admin account?</b>
          </a>
          <br />
          <a name="Answer7">
          </a>From Windows Server 2003, you will get an exception if you try
      to get process performance information under a non-admin account. The workaround is
      to add that account into the Performance Counter Users Group. 
   </p>
        <img width="0" height="0" src="http://blogs.phiner.co.nz/aggbug.ashx?id=8e04638a-e5b7-4e32-86db-13f2959cb5d2" />
      </div>
    </content>
  </entry>
  <entry>
    <title>Production Deployments of Patterns &amp; Practices Enterprise Libraries</title>
    <link rel="alternate" type="text/html" href="http://blogs.phiner.co.nz/PermaLink,guid,86b5263e-0567-4171-be33-2235d2fa0d1e.aspx" />
    <id>http://blogs.phiner.co.nz/PermaLink,guid,86b5263e-0567-4171-be33-2235d2fa0d1e.aspx</id>
    <published>2005-04-10T19:50:00.0000000-05:00</published>
    <updated>2005-04-21T18:24:00.0000000-05:00</updated>
    <category term="Computers - .NET" label="Computers - .NET" scheme="dasBlog" />
    <content type="xhtml">
      <div xmlns="http://www.w3.org/1999/xhtml">
        <p>
      Here is a tip for anyone out there searching to deal with errors associated with Patterns
      &amp; Practices Enterprise Library installservices.bat failures. If you are getting
      tonnes of errors like the following in you event log after attempting to deploy to
      your test or production server:
   </p>
        <p>
          <font face="Courier New" color="#008000" size="2">Enterprise Library Instrumentation<br />
      Failed to fire the WMI event 'DataConnectionOpenedEvent'. Exception: System.Exception:
      This schema for this assembly has not been registered with WMI.</font>
        </p>
        <p>
      Basically this caused by the annoying script installservices.bat requiring VS.NET
      installed on your production machine, it doesn't take much to notice what is wrong
      with that statement does it. Anyway, after reading on Tom Hollanders P&amp;P evangalist
      blog you really only need access too installutil to register the common classes with
      WMI. The bat script below should solve your problems, for this to work you need to
      copy all the compiled assemblies from you development “C:\Program
      Files\Microsoft Enterprise Library\bin“ to your production\test servers.
   </p>
        <p>
          <a href="http://blogs.msdn.com/tomholl/archive/2005/02/18/376187.aspx">http://blogs.msdn.com/tomholl/archive/2005/02/18/376187.aspx</a>
        </p>
        <p>
      Also check out some good pointers on Jans blog <a href="http://weblogs.asp.net/jan/archive/2005/02/23/379089.aspx">http://weblogs.asp.net/jan/archive/2005/02/23/379089.aspx</a></p>
        <p>
      Finally someone has actually found something useful on my blog =) But have also pointed
      out some issues, in this batch file you will need to update the base directory to
      C:\Windows for XP and C:\WINNT for Win2K3. Cheers <a href="http://hilton.giesenow.com/" target="_blank">Hilton
      Giesenow</a></p>
        <p>
          <font face="Courier New" color="#008000" size="2">cd C:\WINNT\Microsoft.NET\Framework\v1.1.4322</font>
        </p>
        <p>
          <font face="Courier New" color="#008000" size="2">installutil "C:\Program Files\Microsoft
      Enterprise Library\bin\Microsoft.Practices.EnterpriseLibrary.Common.dll"<br />
      installutil "C:\Program Files\Microsoft Enterprise Library\bin\Microsoft.Practices.EnterpriseLibrary.Caching.dll"<br />
      installutil "C:\Program Files\Microsoft Enterprise Library\bin\Microsoft.Practices.EnterpriseLibrary.Configuration.dll"<br />
      installutil "C:\Program Files\Microsoft Enterprise Library\bin\Microsoft.Practices.EnterpriseLibrary.Security.Cryptography.dll"<br />
      installutil "C:\Program Files\Microsoft Enterprise Library\bin\Microsoft.Practices.EnterpriseLibrary.Data.dll"<br />
      installutil "C:\Program Files\Microsoft Enterprise Library\bin\Microsoft.Practices.EnterpriseLibrary.ExceptionHandling.dll"<br />
      installutil "C:\Program Files\Microsoft Enterprise Library\bin\Microsoft.Practices.EnterpriseLibrary.Logging.dll"<br />
      installutil "C:\Program Files\Microsoft Enterprise Library\bin\Microsoft.Practices.EnterpriseLibrary.Security.dll"</font>
        </p>
        <p>
          <font face="Courier New" color="#008000" size="2">PAUSE</font>
        </p>
        <img width="0" height="0" src="http://blogs.phiner.co.nz/aggbug.ashx?id=86b5263e-0567-4171-be33-2235d2fa0d1e" />
      </div>
    </content>
  </entry>
  <entry>
    <title>Forgot that Connection String</title>
    <link rel="alternate" type="text/html" href="http://blogs.phiner.co.nz/PermaLink,guid,e86bbbc8-bdab-47b5-a3de-df122950cc1c.aspx" />
    <id>http://blogs.phiner.co.nz/PermaLink,guid,e86bbbc8-bdab-47b5-a3de-df122950cc1c.aspx</id>
    <published>2005-04-04T17:55:00.0000000-05:00</published>
    <updated>2005-04-04T17:55:00.0000000-05:00</updated>
    <category term="Computers - General" label="Computers - General" scheme="dasBlog" />
    <content type="xhtml">
      <div xmlns="http://www.w3.org/1999/xhtml">
        <p>
      This is an oldie but a goodie. .Net connection strings for accessing SQL server databases
      and the like are a pain in the ass to remember, this solid site takes away the need
      to remember this crap =)
   </p>
        <p align="center">
          <a href="http://www.connectionstrings.com" border="0" target="#">
            <img src="http://www.connectionstrings.com/img/cslogo6.jpg" />
          </a>
        </p>
        <img width="0" height="0" src="http://blogs.phiner.co.nz/aggbug.ashx?id=e86bbbc8-bdab-47b5-a3de-df122950cc1c" />
      </div>
    </content>
  </entry>
</feed>