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

<channel>
	<title>..::\\ www.christiano.ch //::.. &#187; Visual Studio</title>
	<atom:link href="http://www.christiano.ch/wordpress/category/microsoft/microsoft_visual_studio/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.christiano.ch/wordpress</link>
	<description>christiano.ch blog - personal knowledge base, news, memoires et cetera</description>
	<lastBuildDate>Thu, 02 Sep 2010 04:54:56 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0.1</generator>
<meta xmlns="http://www.w3.org/1999/xhtml" name="robots" content="noindex,follow" />
		<item>
		<title>Microsoft Team Foundation Server 2010 and external access FQDN</title>
		<link>http://www.christiano.ch/wordpress/2010/05/01/microsoft-team-foundation-server-2010-and-external-access-fqdn/</link>
		<comments>http://www.christiano.ch/wordpress/2010/05/01/microsoft-team-foundation-server-2010-and-external-access-fqdn/#comments</comments>
		<pubDate>Sat, 01 May 2010 09:44:17 +0000</pubDate>
		<dc:creator>christian</dc:creator>
				<category><![CDATA[Microsoft]]></category>
		<category><![CDATA[Visual Studio]]></category>
		<category><![CDATA[Visual Studio 2010]]></category>
		<category><![CDATA[TFS]]></category>

		<guid isPermaLink="false">http://www.christiano.ch/wordpress/2010/05/01/microsoft-team-foundation-server-2010-and-external-access-fqdn/</guid>
		<description><![CDATA[Yesterday I&#8217;ve installed Microsoft (TFS) Team Foundation Server 2010 and today I&#8217;m struggling with the configuration. My team wants to access the TFS / Source Control Safe using internal but also external host names. So, how to accomplish the right configuration? Good question. To save your time i thought I&#8217;ll blog about my journey .. [...]]]></description>
			<content:encoded><![CDATA[<table border="0" cellspacing="0" cellpadding="2" width="675">
<tbody>
<tr>
<td valign="top" width="671">Yesterday I&#8217;ve installed Microsoft (TFS) Team Foundation Server 2010 and today I&#8217;m struggling with the configuration. My team wants to access the TFS / Source Control Safe using internal but also external host names. So, how to accomplish the right configuration? Good question. To save your time i thought I&#8217;ll blog about my journey .. </td>
<td valign="top" width="10"><a href="http://www.christiano.ch/wordpress/wp-content/uploads/2010/05/Logo_Microsoft.Team_.foundation.server.20101.png"><img style="border-bottom: 0px; border-left: 0px; display: inline; border-top: 0px; border-right: 0px" title="Logo_Microsoft.Team.foundation.server.2010" border="0" alt="Logo_Microsoft.Team.foundation.server.2010" src="http://www.christiano.ch/wordpress/wp-content/uploads/2010/05/Logo_Microsoft.Team_.foundation.server.2010_thumb1.png" width="180" height="87" /></a> </td>
</tr>
</tbody>
</table>
<p> <span id="more-949"></span>
<p>i realized that a setup of a proper configuration requires a lot of time .. time i don’t have at the moment. So i decided to post what i have and update the post when i find the time ….</p>
<p>&#160;</p>
<p><strong>Links</strong></p>
<p>&#160;</p>
<p>If you get a <em>&quot;Access denied&quot; </em>or <em>&quot;No network provider accepted the given network path&quot;</em> then read here</p>
<p><a title="Disable the Loop Back Check on your TFS Server" href="http://support.microsoft.com/kb/926642" target="_blank">Microsoft KB 926642 Entry Disable the Loop Back Check on your TFS Server</a></p>
<p>Probably the best paper / explanation </p>
<p><a title="Exposing TFS 2010 (Beta 2, RC and RTM) to the Internet by Aron Block" href="http://www.christiano.ch/common/documents/Exposing_Team_Foundation_Server_to_the_Internet.docx" target="_blank">Exposing TFS 2010 (Beta 2+) to the Internet by Aron Block</a> (<strong>use Save as Docx</strong>!)</p>
<p>two other guys blogging about this issue … </p>
<p><a title="http://blog.keithpatton.com/2009/10/22/Enabling+A+Fully+Qualified+Domain+Name+FQDN+In+Team+Foundation+Server+2010+TFS+2010.aspx" href="http://blog.keithpatton.com/2009/10/22/Enabling+A+Fully+Qualified+Domain+Name+FQDN+In+Team+Foundation+Server+2010+TFS+2010.aspx" target="_blank">http://blog.keithpatton.com/2009/10/22/Enabling+A+Fully+Qualified+Domain+Name+FQDN+In+Team+Foundation+Server+2010+TFS+2010.aspx</a></p>
<p><a title="http://www.euri.com/Blog/tabid/85/EntryId/38/Changing-the-URL-of-Team-Foundation-Server-TFS-2010-Beta-1-to-a-FQDN.aspx" href="http://www.euri.com/Blog/tabid/85/EntryId/38/Changing-the-URL-of-Team-Foundation-Server-TFS-2010-Beta-1-to-a-FQDN.aspx" target="_blank">http://www.euri.com/Blog/tabid/85/EntryId/38/Changing-the-URL-of-Team-Foundation-Server-TFS-2010-Beta-1-to-a-FQDN.aspx</a></p>
]]></content:encoded>
			<wfw:commentRss>http://www.christiano.ch/wordpress/2010/05/01/microsoft-team-foundation-server-2010-and-external-access-fqdn/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>VS.NET TFS: IISReset and The system cannot find the file specified. (2147942402, 80070002)</title>
		<link>http://www.christiano.ch/wordpress/2010/05/01/vs-net-tfs-iisreset-and-the-system-cannot-find-the-file-specified-2147942402-80070002/</link>
		<comments>http://www.christiano.ch/wordpress/2010/05/01/vs-net-tfs-iisreset-and-the-system-cannot-find-the-file-specified-2147942402-80070002/#comments</comments>
		<pubDate>Sat, 01 May 2010 06:59:25 +0000</pubDate>
		<dc:creator>christian</dc:creator>
				<category><![CDATA[IIS]]></category>
		<category><![CDATA[Microsoft]]></category>
		<category><![CDATA[Visual Studio]]></category>
		<category><![CDATA[Windows General]]></category>
		<category><![CDATA[IISReset]]></category>
		<category><![CDATA[TFS]]></category>

		<guid isPermaLink="false">http://www.christiano.ch/wordpress/2010/05/01/vs-net-tfs-iisreset-and-the-system-cannot-find-the-file-specified-2147942402-80070002/</guid>
		<description><![CDATA[Okay, today i installed Microsoft Team Foundation Server 2010. At the end of the Setup, i had a warning regarding the configuration of the IIS Web Server Part. In the result i tried to reset the IIS using iisreset.exe. What i got is an error message stating: The system cannot find the file specified. (2147942402, [...]]]></description>
			<content:encoded><![CDATA[<table border="0" cellspacing="0" cellpadding="2" width="675">
<tbody>
<tr>
<td valign="top" width="593">Okay, today i installed Microsoft Team Foundation Server 2010. At the end of the Setup, i had a warning regarding the configuration of the IIS Web Server Part. In the result i tried to reset the IIS using <strong><em>iisreset.exe</em></strong>. What i got is an error message stating:          <br /><strong><em>The system cannot find the file specified. (2147942402, 80070002)</em></strong></td>
<td valign="top" width="81"><a href="http://www.christiano.ch/wordpress/wp-content/uploads/2010/05/Logo_Microsoft.Team_.foundation.server.2010.png"><img style="border-bottom: 0px; border-left: 0px; display: inline; border-top: 0px; border-right: 0px" title="Logo_Microsoft.Team.foundation.server.2010" border="0" alt="Logo_Microsoft.Team.foundation.server.2010" src="http://www.christiano.ch/wordpress/wp-content/uploads/2010/05/Logo_Microsoft.Team_.foundation.server.2010_thumb.png" width="180" height="88" /></a> </td>
</tr>
</tbody>
</table>
<p> <span id="more-945"></span>
<p>If you are Installing Microsoft TFS 2010 RC or RTM, you may notice after the installation a warning that IISRESET failed.&#160; The warning instructs you to run it manually.&#160; Running it manually results in the same error:</p>
<p><strong><em>The system cannot find the file specified. (2147942402, 80070002)</em></strong></p>
<p><a href="http://www.christiano.ch/wordpress/wp-content/uploads/2010/05/IISReset_The_System_cannot_find_the_file_specified_2147942402_80070002.png"><img style="border-bottom: 0px; border-left: 0px; display: inline; border-top: 0px; border-right: 0px" title="IISReset_The_System_cannot_find_the_file_specified_2147942402_80070002" border="0" alt="IISReset_The_System_cannot_find_the_file_specified_2147942402_80070002" src="http://www.christiano.ch/wordpress/wp-content/uploads/2010/05/IISReset_The_System_cannot_find_the_file_specified_2147942402_80070002_thumb.png" width="667" height="332" /></a> </p>
<p>IISRESET failing is not a problem for TFS, but nevertheless you may want to address this.&#160; To fix it, open Add / Remove Programs (appwiz.cpl) and run Repair on the .NET 4.0 Client component.&#160; This requires a reboot.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.christiano.ch/wordpress/2010/05/01/vs-net-tfs-iisreset-and-the-system-cannot-find-the-file-specified-2147942402-80070002/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>VS.NET: Missing item templates in Visual Studio</title>
		<link>http://www.christiano.ch/wordpress/2010/04/23/vs-net-missing-item-templates-in-visual-studio/</link>
		<comments>http://www.christiano.ch/wordpress/2010/04/23/vs-net-missing-item-templates-in-visual-studio/#comments</comments>
		<pubDate>Fri, 23 Apr 2010 06:14:15 +0000</pubDate>
		<dc:creator>christian</dc:creator>
				<category><![CDATA[Microsoft]]></category>
		<category><![CDATA[Visual Studio 2010]]></category>
		<category><![CDATA[Visual Studio; Templates]]></category>

		<guid isPermaLink="false">http://www.christiano.ch/wordpress/2010/04/23/vs-net-missing-item-templates-in-visual-studio/</guid>
		<description><![CDATA[Today, when I started visual studio and wanted to Add new Item to an existing project / solution, I found that the Template for Silverlight Child Window was missing from my visual studio 2010 templates. Thanks to Eric Hammersley who gave the perfect solution. To add missing templates you need to run following command (Elevated!) [...]]]></description>
			<content:encoded><![CDATA[<table border="0" cellspacing="0" cellpadding="2" width="675">
<tbody>
<tr>
<td valign="top" width="540">
<p>Today, when I started visual studio and wanted to Add new Item to an existing project / solution, I found that the Template for Silverlight Child Window was missing from my visual studio 2010 templates. </p>
</td>
<td valign="top" width="134"><a href="http://www.christiano.ch/wordpress/wp-content/uploads/2010/04/Logo_Visual_Studio_2010.jpg"><img style="border-right-width: 0px; display: inline; border-top-width: 0px; border-bottom-width: 0px; margin-left: 0px; border-left-width: 0px; margin-right: 0px" title="Logo Microsoft Visual Studio" border="0" alt="Logo Microsoft Visual Studio" align="right" src="http://www.christiano.ch/wordpress/wp-content/uploads/2010/04/Logo_Visual_Studio_2010_thumb.jpg" width="180" height="70" /></a> </td>
</tr>
</tbody>
</table>
<p> <span id="more-914"></span>
<p>Thanks to <a href="http://geekswithblogs.net/ehammersley/archive/2005/11/08/59451.aspx">Eric Hammersley</a> who gave the perfect solution. To add missing templates you need to run following command (Elevated!) on visual studio command prompt.</p>
<p>Close all instance of Visual Studio. Open visual studio command prompt and type,</p>
<p><strong>&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; devenv /installvstemplates</strong></p>
<p>&#160;&#160;&#160;&#160;&#160;&#160; Press Enter. Let the process be complete and now open visual studio. You will get all missing templates under Visual Studio installed templates.</p>
<p>Have phun!</p>
]]></content:encoded>
			<wfw:commentRss>http://www.christiano.ch/wordpress/2010/04/23/vs-net-missing-item-templates-in-visual-studio/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>VS.NET: Cannot implicitly convert type &#8216;SomeType[]&#8216; to &#8216;System.Collections.ObjectModel.ObservableCollection&lt;[Namespace].SomeType&gt;&#8217;</title>
		<link>http://www.christiano.ch/wordpress/2010/03/23/vs-net-cannot-implicitly-convert-type-sometype-to-system-collections-objectmodel-observablecollectionnamespace-sometype/</link>
		<comments>http://www.christiano.ch/wordpress/2010/03/23/vs-net-cannot-implicitly-convert-type-sometype-to-system-collections-objectmodel-observablecollectionnamespace-sometype/#comments</comments>
		<pubDate>Tue, 23 Mar 2010 11:07:27 +0000</pubDate>
		<dc:creator>christian</dc:creator>
				<category><![CDATA[Microsoft]]></category>
		<category><![CDATA[Visual Studio 2010]]></category>
		<category><![CDATA[VS.NET]]></category>

		<guid isPermaLink="false">http://www.christiano.ch/wordpress/2010/03/23/vs-net-cannot-implicitly-convert-type-sometype-to-system-collections-objectmodel-observablecollectionnamespace-sometype/</guid>
		<description><![CDATA[There seems to be a known bug / issue in Visual Studio 2010 RC when dealing with Service References (to a WCF Service). The Collection Type of the Service Reference is set to custom and you start getting compilation errors like: Cannot implicitly convert type &#8216;SomeType[]&#8216; to &#8216;System.Collections.ObjectModel.ObservableCollection&#60;[Namespace].SomeType&#62;&#8217;&#160;&#160;&#160; To get rid of this annoying error, [...]]]></description>
			<content:encoded><![CDATA[<table border="0" cellspacing="0" cellpadding="2" width="675">
<tbody>
<tr>
<td valign="top" width="657">There seems to be a known bug / issue in Visual Studio 2010 RC when dealing with Service References (to a WCF Service). The Collection Type of the Service Reference is set to custom and you start getting compilation errors like:         <br />Cannot implicitly convert type &#8216;SomeType[]&#8216; to &#8216;System.Collections.ObjectModel.ObservableCollection&lt;[Namespace].SomeType&gt;&#8217;&#160;&#160;&#160; </td>
<td valign="top" width="17"><a href="http://www.christiano.ch/wordpress/wp-content/uploads/2010/03/Logo_Visual_Studio_2010.jpg"><img style="border-bottom: 0px; border-left: 0px; display: inline; border-top: 0px; border-right: 0px" title="Logo Microsoft Visual Studio" border="0" alt="Logo Microsoft Visual Studio" src="http://www.christiano.ch/wordpress/wp-content/uploads/2010/03/Logo_Visual_Studio_2010_thumb.jpg" width="160" height="62" /></a> </td>
</tr>
</tbody>
</table>
<p> <span id="more-906"></span>
<p>To get rid of this annoying error, just choose <em>Configure Service Reference</em> and select either Array or follow on of the instructions which are described <a title="http://social.msdn.microsoft.com/Forums/en-US/webdevelopmentprerelease/thread/4e733ac6-607b-45fc-8d13-f99b7e15a424" href="http://social.msdn.microsoft.com/Forums/en-US/webdevelopmentprerelease/thread/4e733ac6-607b-45fc-8d13-f99b7e15a424" target="_blank">here</a>. I decided to use the ExtensionMethod way..</p>
<p>As confirmed by one of the Microsoft Product guys, this bug is killed in the final Version of Visual Studio 2010 – which should have been released yesterday .. according to rumors the RTM is detailed..&#160; </p>
<p>&#160;</p>
<p><strong><em>Links</em></strong></p>
<p><a title="Configure Service Reference Dialog Box @msdn.microsoft.com" href="http://msdn.microsoft.com/en-us/library/bb514724.aspx" target="_blank">Configure Service Reference Dialog Box @msdn.microsoft.com</a></p>
<p><a title="ObservableCollection missing as Collection Type in WCF since VS 2010 RC" href="http://forums.silverlight.net/forums/t/162678.aspx" target="_blank">ObservableCollection missing as Collection Type in WCF since VS 2010 RC</a></p>
<p><a title="VS2010 RC - WCF ObservableCollection is missing in Service Reference" href="http://social.msdn.microsoft.com/Forums/en-US/webdevelopmentprerelease/thread/4e733ac6-607b-45fc-8d13-f99b7e15a424" target="_blank">VS2010 RC &#8211; WCF ObservableCollection is missing in Service Reference</a></p>
]]></content:encoded>
			<wfw:commentRss>http://www.christiano.ch/wordpress/2010/03/23/vs-net-cannot-implicitly-convert-type-sometype-to-system-collections-objectmodel-observablecollectionnamespace-sometype/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>WCF Service: Adding a reference results in: System.BadImageFormatException</title>
		<link>http://www.christiano.ch/wordpress/2010/02/20/wcf-service-adding-a-reference-results-in-system-badimageformatexception/</link>
		<comments>http://www.christiano.ch/wordpress/2010/02/20/wcf-service-adding-a-reference-results-in-system-badimageformatexception/#comments</comments>
		<pubDate>Sat, 20 Feb 2010 12:57:24 +0000</pubDate>
		<dc:creator>christian</dc:creator>
				<category><![CDATA[Visual Studio]]></category>
		<category><![CDATA[Visual Studio 2010]]></category>
		<category><![CDATA[Service Reference]]></category>
		<category><![CDATA[WCF]]></category>
		<category><![CDATA[Winform]]></category>

		<guid isPermaLink="false">http://www.christiano.ch/wordpress/2010/02/20/wcf-service-adding-a-reference-results-in-system-badimageformatexception/</guid>
		<description><![CDATA[I have a Solution with a WCF Service Project, a few Classes in projects and a Winform Project. When trying to add a Service Reference from within the Winform Project i always got the Microsoft WCF Service Host &#8211; ‘System.BadImageFormatException: Could not load file or assembly &#8216;file’.. An explanation or better, a direction I’ve found [...]]]></description>
			<content:encoded><![CDATA[<table border="0" cellspacing="0" cellpadding="2" width="675">
<tbody>
<tr>
<td valign="top" width="672">I have a Solution with a WCF Service Project, a few Classes in projects and a Winform Project. When trying to add a Service Reference from within the Winform Project i always got the <em>Microsoft WCF Service Host &#8211; ‘System.BadImageFormatException: Could not load file or assembly &#8216;file’..</em></td>
<td valign="top" width="10"><a href="http://www.christiano.ch/wordpress/wp-content/uploads/2010/02/Logo_Visual_Studio_20101.jpg"><img style="border-bottom: 0px; border-left: 0px; display: inline; border-top: 0px; border-right: 0px" title="Logo Microsoft Visual Studio" border="0" alt="Logo Microsoft Visual Studio" src="http://www.christiano.ch/wordpress/wp-content/uploads/2010/02/Logo_Visual_Studio_2010_thumb1.jpg" width="165" height="64" /></a> </td>
</tr>
</tbody>
</table>
<p> <span id="more-873"></span>
<p>An explanation or better, a direction I’ve found at <a href="http://www.atalasoft.com/kb/article.aspx?id=10165" target="_blank">Atalasoft Knowledgebase Q10165</a>.</p>
<p>I just changed the <strong><em>Platform target </em></strong>from <strong><em>x86 </em></strong>to <strong><em>Any CPU</em></strong>, recompiled both projects in the solution and since then, i can add a service reference. Who knows why.. you? drop me a mail/comment!</p>
<p><strong><em>Error Message i got: </em></strong></p>
<p><em>System.BadImageFormatException: Could not load file or assembly &#8216;file:///D:\Development\WCFTestService.SQL.2010\Media.Manager.SQL.Services.WCF\bin\Debug\Media.Manager.SQL.Services.WCF.exe&#8217; or one of its dependencies. An attempt was made to load a program with an incorrect format.     <br />File name: &#8216;file:///D:\Development\WCFTestService.SQL.2010\Media.Manager.SQL.Services.WCF\bin\Debug\Media.Manager.SQL.Services.WCF.exe&#8217;      <br />&#160;&#160; at System.Reflection.RuntimeAssembly._nLoad(AssemblyName fileName, String codeBase, Evidence assemblySecurity, RuntimeAssembly locationHint, StackCrawlMark&amp; stackMark, Boolean throwOnFileNotFound, Boolean forIntrospection, Boolean suppressSecurityChecks)      <br />&#160;&#160; at System.Reflection.RuntimeAssembly.InternalLoadAssemblyName(AssemblyName assemblyRef, Evidence assemblySecurity, StackCrawlMark&amp; stackMark, Boolean forIntrospection, Boolean suppressSecurityChecks)      <br />&#160;&#160; at System.Reflection.Assembly.Load(AssemblyName assemblyRef)      <br />&#160;&#160; at Microsoft.Tools.SvcHost.ServiceHostHelper.LoadServiceAssembly(String svcAssemblyPath) </em></p>
<p><em>WRN: Assembly binding logging is turned OFF.     <br />To enable assembly bind failure logging, set the registry value [HKLM\Software\Microsoft\Fusion!EnableLog] (DWORD) to 1.      <br />Note: There is some performance penalty associated with assembly bind failure logging.      <br />To turn this feature off, remove the registry value [HKLM\Software\Microsoft\Fusion!EnableLog].</em></p>
]]></content:encoded>
			<wfw:commentRss>http://www.christiano.ch/wordpress/2010/02/20/wcf-service-adding-a-reference-results-in-system-badimageformatexception/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>VS.NET: Add Service Reference, Discover Service does not work</title>
		<link>http://www.christiano.ch/wordpress/2010/02/20/vs-net-add-service-reference-discover-service-does-not-work/</link>
		<comments>http://www.christiano.ch/wordpress/2010/02/20/vs-net-add-service-reference-discover-service-does-not-work/#comments</comments>
		<pubDate>Sat, 20 Feb 2010 12:35:01 +0000</pubDate>
		<dc:creator>christian</dc:creator>
				<category><![CDATA[Visual Studio]]></category>
		<category><![CDATA[Visual Studio 2010]]></category>
		<category><![CDATA[Service Reference]]></category>
		<category><![CDATA[WCF]]></category>

		<guid isPermaLink="false">http://www.christiano.ch/wordpress/2010/02/20/vs-net-add-service-reference-discover-service-does-not-work/</guid>
		<description><![CDATA[Trying to add a Service Reference in Visual Studio using the Discover Services in Solution and the Wizard can’t find the Service in the Solution? In order to use the &#34;Discover services in solution&#34; functionality, the service projects must be based on one of the WCF project templates. If you want to alter your existing [...]]]></description>
			<content:encoded><![CDATA[<table border="0" cellspacing="0" cellpadding="2" width="675">
<tbody>
<tr>
<td valign="top" width="668">Trying to add a Service Reference in Visual Studio using the Discover Services in Solution and the Wizard can’t find the Service in the Solution?</td>
<td valign="top" width="10"><a href="http://www.christiano.ch/wordpress/wp-content/uploads/2010/02/Logo_Visual_Studio_2010.jpg"><img style="border-bottom: 0px; border-left: 0px; display: inline; border-top: 0px; border-right: 0px" title="Logo Microsoft Visual Studio" border="0" alt="Logo Microsoft Visual Studio" src="http://www.christiano.ch/wordpress/wp-content/uploads/2010/02/Logo_Visual_Studio_2010_thumb.jpg" width="165" height="64" /></a> </td>
</tr>
</tbody>
</table>
<p> <span id="more-870"></span>
<p>In order to use the &quot;Discover services in solution&quot; functionality, the service projects must be based on one of the WCF project templates.   <br /> If you want to alter your existing project(s) so that they will be identified as projects containing WCF service(s), do the following:</p>
<ul>
<li> Right-click on the project in the Solution Explorer, and select Unload project</li>
<li>Right-click the project again (this time the node will end in (unavailable) ) and choose Edit xxxxx.csproj</li>
<li>In the first &lt;PropertyGroup&gt; section, add the following line:     <br /><b>&lt;ProjectTypeGuids&gt;{3D9AD99F-2412-4246-B90B-4EAA41C64699};{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}&lt;/ProjectTypeGuids&gt;</b></li>
<li>Save and close the file </li>
<li>Reload the project by right-clicking it again and choose Reload.</li>
</ul>
<p>&#160; You should then be able to use the &quot;Discover services in solution&quot; functionality.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.christiano.ch/wordpress/2010/02/20/vs-net-add-service-reference-discover-service-does-not-work/feed/</wfw:commentRss>
		<slash:comments>3</slash:comments>
		</item>
		<item>
		<title>VS.NET: Visual Studio 2010 Extension Manager</title>
		<link>http://www.christiano.ch/wordpress/2010/02/20/vs-net-visual-studio-2010-extension-manager/</link>
		<comments>http://www.christiano.ch/wordpress/2010/02/20/vs-net-visual-studio-2010-extension-manager/#comments</comments>
		<pubDate>Sat, 20 Feb 2010 12:18:35 +0000</pubDate>
		<dc:creator>christian</dc:creator>
				<category><![CDATA[Visual Studio]]></category>
		<category><![CDATA[Visual Studio 2010]]></category>

		<guid isPermaLink="false">http://www.christiano.ch/wordpress/2010/02/20/vs-net-visual-studio-2010-extension-manager/</guid>
		<description><![CDATA[One of the powerful aspect of Visual Studio is its ability to be extended and many people do that. You can find numerous extensions at the Visual Studio Gallery. The VSX team links to a 4-part blog series on how to create and share templates. You can also look find extension examples on the vsx [...]]]></description>
			<content:encoded><![CDATA[<table border="0" cellspacing="0" cellpadding="2" width="675">
<tbody>
<tr>
<td valign="top" width="499">One of the powerful aspect of Visual Studio is its ability to be extended and many people do that. You can find numerous extensions at the <a href="http://www.visualstudiogallery.com/">Visual Studio Gallery</a>. The VSX team links to a 4-part blog series on <a href="http://blogs.msdn.com/vsxteam/archive/2009/06/08/how-do-i-create-and-share-a-template-on-the-visual-studio-gallery.aspx">how to create and share templates</a>. You can also look find extension examples on the <a href="http://code.msdn.microsoft.com/vsx">vsx code gallery</a>.</td>
<td valign="top" width="165"><a href="http://www.christiano.ch/wordpress/wp-content/uploads/2010/02/Logo_MS_Visual_Studio_2010.jpg"><img style="border-right-width: 0px; display: inline; border-top-width: 0px; border-bottom-width: 0px; border-left-width: 0px" title="Logo Microsoft Visual Studio" border="0" alt="Logo Microsoft Visual Studio" src="http://www.christiano.ch/wordpress/wp-content/uploads/2010/02/Logo_MS_Visual_Studio_2010_thumb.jpg" width="165" height="64" /></a> </td>
</tr>
</tbody>
</table>
<p> <span id="more-867"></span>
<p>With Visual Studio 2010, you can search for items and install them directly from within Visual Studio&#8217;s new <a href="http://msdn.microsoft.com/en-us/library/dd293638%28VS.100%29.aspx">Extension Manager</a>. You launch it from the Tools menu:</p>
<p><a href="http://www.christiano.ch/wordpress/wp-content/uploads/2010/02/Visual.Studio.2010.Extension.Manager.Menu_.Entry_.png"><img style="border-bottom: 0px; border-left: 0px; display: inline; border-top: 0px; border-right: 0px" title="Visual.Studio.2010.Extension.Manager.Menu.Entry" border="0" alt="Visual.Studio.2010.Extension.Manager.Menu.Entry" src="http://www.christiano.ch/wordpress/wp-content/uploads/2010/02/Visual.Studio.2010.Extension.Manager.Menu_.Entry_thumb.png" width="351" height="397" /></a> </p>
<p>When the dialog comes up, be sure to explore the various actionable areas on the left and also note the search on the right. For example, i clicked on <strong><em>Online Gallery</em></strong> on the left, in the Textbox in the upper right corner i typed <strong><em>Go To Definition </em></strong>(which is one of my favorite extensions atm) et voila:</p>
<p>Click on <strong><em>Download</em></strong>, restart Studio and you can Ctrl-Click and Variable, type, object to jump to its declaration</p>
<p><a href="http://www.christiano.ch/wordpress/wp-content/uploads/2010/02/Visual.Studio.2010.Extension.Manager_Sample.png"><img style="border-bottom: 0px; border-left: 0px; display: inline; border-top: 0px; border-right: 0px" title="Visual.Studio.2010.Extension.Manager_Sample" border="0" alt="Visual.Studio.2010.Extension.Manager_Sample" src="http://www.christiano.ch/wordpress/wp-content/uploads/2010/02/Visual.Studio.2010.Extension.Manager_Sample_thumb.png" width="800" height="450" /></a> </p>
</p>
<p>have phun!</p>
]]></content:encoded>
			<wfw:commentRss>http://www.christiano.ch/wordpress/2010/02/20/vs-net-visual-studio-2010-extension-manager/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>IIS7: Web Application writing to Event Log generates Security Exception</title>
		<link>http://www.christiano.ch/wordpress/2009/12/02/iis7-web-application-writing-to-event-log-generates-security-exception/</link>
		<comments>http://www.christiano.ch/wordpress/2009/12/02/iis7-web-application-writing-to-event-log-generates-security-exception/#comments</comments>
		<pubDate>Wed, 02 Dec 2009 07:08:51 +0000</pubDate>
		<dc:creator>christian</dc:creator>
				<category><![CDATA[IIS]]></category>
		<category><![CDATA[Microsoft]]></category>
		<category><![CDATA[Visual Studio]]></category>

		<guid isPermaLink="false">http://www.christiano.ch/wordpress/2009/12/02/iis7-web-application-writing-to-event-log-generates-security-exception/</guid>
		<description><![CDATA[Every tried to write to the Application Event Log out of a Web Application running in Windows Server 2008 / IIS7? Well, i just tried that and spent about an hour to figure out, how to ‘allow’ the Web Application to write to the Event Log. using the following snippet in my code: EventLog evtLog [...]]]></description>
			<content:encoded><![CDATA[<table border="0" cellspacing="0" cellpadding="2" width="675">
<tbody>
<tr>
<td valign="top" width="630">Every tried to write to the Application Event Log out of a Web Application running in Windows Server 2008 / IIS7? Well, i just tried that and spent about an hour to figure out, how to ‘allow’ the Web Application to write to the Event Log.          </td>
<td valign="top" width="44"><a href="http://www.christiano.ch/wordpress/wp-content/uploads/2009/12/Logo_IIS72.png"><img style="border-bottom: 0px; border-left: 0px; display: inline; border-top: 0px; border-right: 0px" title="Logo_IIS7" border="0" alt="Logo_IIS7" src="http://www.christiano.ch/wordpress/wp-content/uploads/2009/12/Logo_IIS7_thumb2.png" width="150" height="88" /></a> </td>
</tr>
</tbody>
</table>
<p> <span id="more-807"></span>
<p>using the following snippet in my code: </p>
<p><font face="Courier"><strong>EventLog evtLog = new EventLog();        <br />evtLog.Source = &quot;DEMO.Web&quot;;         <br />evtLog.WriteEntry(&quot;TEST&quot;);</strong></font></p>
<p>(ASP Handler Class) &#8211; (.ashx extension) resulted in a:</p>
<p><font face="Courier">Server Error in &#8216;/DEMO/test&#8217; Application.</font></p>
<p><font face="Courier">Security Exception </font></p>
<p><font face="Courier">Description: The application attempted to perform an operation not allowed by the security policy.&#160; To grant this application the required permission please contact your system administrator or change the application&#8217;s trust level in the configuration file.      <br /></font><font face="Courier">Exception Details: System.Security.SecurityException: The source was not found, but some or all event logs could not be searched.&#160; Inaccessible logs: Security. </font></p>
<p><font face="Courier">Source Error:      <br /></font><font face="Courier">An unhandled exception was generated during the execution of the current web request. Information regarding the origin and location of the exception can be identified using the exception stack trace below.&#160; </font></p>
<p><font face="Courier">Stack Trace:      <br /></font><font face="Courier">[SecurityException: The source was not found, but some or all event logs could not be searched.&#160; Inaccessible logs: Security.]      <br /></font><font face="Courier">System.Diagnostics.EventLog.FindSourceRegistration(String source, String machineName, Boolean readOnly) +563      <br /></font><font face="Courier">System.Diagnostics.EventLog.SourceExists(String source, String machineName) +264      <br /></font><font face="Courier">System.Diagnostics.EventLog.VerifyAndCreateSource(String sourceName, String currentMachineName) +84      <br /></font><font face="Courier">System.Diagnostics.EventLog.WriteEntry(String message, EventLogEntryType type, Int32 eventID, Int16 category, Byte[] rawData) +377      <br /></font><font face="Courier">System.Diagnostics.EventLog.WriteEntry(String message) +36      <br /></font><font face="Courier">DEMOProject.Web.DEMO.ProcessRequest(HttpContext context) in D:\Development\DEMO.ashx.cs:25      <br /></font><font face="Courier">System.Web.CallHandlerExecutionStep.System.Web.      <br />HttpApplication.IExecutionStep.Execute() +599       <br /></font><font face="Courier">System.Web.HttpApplication.ExecuteStep(IExecutionStep step, Boolean&amp; completedSynchronously) +171</font></p>
<p><font face="Courier"></font></p>
<p>I searched for a while until i found this one here:</p>
<p>Network Service is allowed <a href="http://msdn.microsoft.com/en-us/library/ms998320.aspx#paght000015%5Feventlogaccess">to <em>write</em> to the Event Log</a>, but not create an event source. you could give permissions to <code>HKLM\SYSTEM\CurrentControlSet\Services\Eventlog\</code> to allow it to create &#8211; but if you&#8217;ve already created it at install time, there&#8217;s no need.</p>
<p>It&#8217;s possible that it&#8217;s failing on the <code>SourceExists</code> as well &#8211; since that requires enumerating the same registry key. I&#8217;d probably just remove the SourceExists/Create check and trust that it&#8217;s there &#8211; if you&#8217;re anonymous, you can&#8217;t create it anyway.</p>
<p>So i just added the <strong><em>Network Service </em></strong>Account to the EventLog Key granting Full Control for the key and all of its sub keys.</p>
<p>Path is: </p>
<p><strong><em>Screenshot:        <br /></em></strong></p>
<p><a href="http://www.christiano.ch/wordpress/wp-content/uploads/2009/12/Registry_EventLog_Key_Path.png"><img style="border-right-width: 0px; display: inline; border-top-width: 0px; border-bottom-width: 0px; margin-left: 0px; border-left-width: 0px; margin-right: 0px" title="Registry_EventLog_Key_Path" border="0" alt="Registry_EventLog_Key_Path" align="left" src="http://www.christiano.ch/wordpress/wp-content/uploads/2009/12/Registry_EventLog_Key_Path_thumb.png" width="402" height="30" /></a></p>
<p>&#160;</p>
<p>HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\EventLog </p>
<p>&#160;</p>
<p><strong><em>Screenshot:</em></strong></p>
<p><a href="http://www.christiano.ch/wordpress/wp-content/uploads/2009/12/Registry_EventLog_Key_Permissions.png"><img style="border-right-width: 0px; display: block; float: none; border-top-width: 0px; border-bottom-width: 0px; margin-left: auto; border-left-width: 0px; margin-right: auto" title="Registry_EventLog_Key_Permissions" border="0" alt="Registry_EventLog_Key_Permissions" src="http://www.christiano.ch/wordpress/wp-content/uploads/2009/12/Registry_EventLog_Key_Permissions_thumb.png" width="610" height="416" /></a> </p>
<p>Now we’re almost done. Now, don’t forget to create the corresponding Application-Event-Source-Whatever-Key! In this case/example the Key is named: <strong><em>DEMO.Web</em></strong></p>
<p><strong><em>Screenshot:</em></strong></p>
<p><a href="http://www.christiano.ch/wordpress/wp-content/uploads/2009/12/Registry_EventLog_SubKey.png"><img style="border-right-width: 0px; display: block; float: none; border-top-width: 0px; border-bottom-width: 0px; margin-left: auto; border-left-width: 0px; margin-right: auto" title="Registry_EventLog_SubKey" border="0" alt="Registry_EventLog_SubKey" src="http://www.christiano.ch/wordpress/wp-content/uploads/2009/12/Registry_EventLog_SubKey_thumb.png" width="338" height="374" /></a> </p>
</p>
<p>Now, try it again, logging to Event Manager should be working fine.. </p>
<p><a href="http://www.christiano.ch/wordpress/wp-content/uploads/2009/12/EventLogResult.png"><img style="border-right-width: 0px; display: block; float: none; border-top-width: 0px; border-bottom-width: 0px; margin-left: auto; border-left-width: 0px; margin-right: auto" title="EventLogResult" border="0" alt="EventLogResult" src="http://www.christiano.ch/wordpress/wp-content/uploads/2009/12/EventLogResult_thumb.png" width="625" height="614" /></a></p>
]]></content:encoded>
			<wfw:commentRss>http://www.christiano.ch/wordpress/2009/12/02/iis7-web-application-writing-to-event-log-generates-security-exception/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>Visual Studio 2010 and .NET Framework 4 Deliver Beta 2 in Final Stretch to March 22 Launch</title>
		<link>http://www.christiano.ch/wordpress/2009/10/21/visual-studio-2010-and-net-framework-4-deliver-beta-2-in-final-stretch-to-march-22-launch/</link>
		<comments>http://www.christiano.ch/wordpress/2009/10/21/visual-studio-2010-and-net-framework-4-deliver-beta-2-in-final-stretch-to-march-22-launch/#comments</comments>
		<pubDate>Wed, 21 Oct 2009 06:05:12 +0000</pubDate>
		<dc:creator>christian</dc:creator>
				<category><![CDATA[Microsoft]]></category>
		<category><![CDATA[Visual Studio]]></category>

		<guid isPermaLink="false">http://www.christiano.ch/wordpress/2009/10/21/visual-studio-2010-and-net-framework-4-deliver-beta-2-in-final-stretch-to-march-22-launch/</guid>
		<description><![CDATA[REDMOND, Wash. — Oct. 19, 2009 — Microsoft Corp. today announced the immediate availability of Microsoft Visual Studio 2010 Beta 2 and Microsoft .NET Framework 4 Beta 2 to MSDN subscribers; general availability will follow on Oct. 21. The company also outlined a simplified product lineup and pricing options for Visual Studio 2010 as well [...]]]></description>
			<content:encoded><![CDATA[<table style="width: 675px;" border="0" cellspacing="0" cellpadding="2">
<tbody>
<tr>
<td width="406" valign="top"><strong>REDMOND, Wash. — Oct. 19, 2009 —</strong> Microsoft Corp. today announced the immediate availability of Microsoft Visual Studio 2010 Beta 2 and Microsoft .NET Framework 4 Beta 2 to MSDN subscribers; general availability will follow on Oct. 21. The company also outlined a simplified product lineup and pricing options for Visual Studio 2010 as well as new benefits for MSDN subscribers, including the Ultimate Offer, available to all active MSDN Premium subscribers at the official product launch on March 22, 2010.</td>
<td width="268" valign="top"><a href="http://www.christiano.ch/wordpress/wp-content/uploads/2009/10/VisualStudioNet.png"><img style="border-right-width: 0px; display: inline; border-top-width: 0px; border-bottom-width: 0px; border-left-width: 0px" title="VisualStudioNet" src="http://www.christiano.ch/wordpress/wp-content/uploads/2009/10/VisualStudioNet_thumb.png" border="0" alt="VisualStudioNet" width="284" height="174" /></a></td>
</tr>
</tbody>
</table>
<p><span id="more-619"></span></p>
<p>Customers should begin investigating the significant innovations in each of the technologies today. New testing options in Visual Studio 2010 will help ensure quality code. Enhancements to the integrated development environment mean that whether modeling, coding, testing or debugging, developers can use existing skills to deploy a growing number of application types. Built-in tools for Windows 7 and Microsoft SharePoint 2010, new drag and drop bindings for Silverlight and Windows Presentation Foundation, and interoperability with innovative technologies (such as those for the database, ASP.NET model view controller, unified modeling language, Expression, and multicore) allow developers to bring their visions to life. With the .NET Framework 4, developers can experience immensely smaller deployments with up to an 81 percent reduction in the framework size when using the Client Profile. Other .NET Framework 4 developer benefits include additional support for industry standards, inclusion of the Dynamic Language Runtime for more language choice, new support for high-performance middle-tier applications (including parallel programming, workflow and service-oriented applications) and backward compatibility through side-by-side installation with .NET Framework 3.5.</p>
<h1>Video</h1>
<p>
<object classid="clsid:02bf25d5-8c17-4b23-bc80-d3488abddc6b" width="427" height="351" codebase="http://www.apple.com/qtactivex/qtplugin.cab#version=6,0,2,0"><param name="src" value="http://www.christiano.ch/common/multimedia/video/1002270_MSDN_interview.mpg" /><embed type="video/quicktime" width="427" height="351" src="http://www.christiano.ch/common/multimedia/video/1002270_MSDN_interview.mpg"></embed></object>
</p>
<p><br class="spacer_" /></p>
<p><br class="spacer_" /></p>
<h1>Links</h1>
<p><a href="http://msdn.microsoft.com/en-us/default.aspx" target="_blank">Download Visual Studio 2010 and .NET Framework 4 Beta 2</a></p>
<p><a href="http://www.microsoft.com/presspass/newsroom/developer/default.mspx" target="_blank">Developer Tools Newsroom on PressPass</a></p>
<p><a href="http://www.microsoft.com/presspass/newsroom/developer/default.mspx" target="_blank">Developer Tools Newsroom on PressPass</a></p>
<p><a title="http://www.microsoft.com/presspass/press/2009/oct09/10-19vsfinalstretchpr.mspx" href="http://www.microsoft.com/presspass/press/2009/oct09/10-19vsfinalstretchpr.mspx" target="_blank">News Article on MS PressPass</a></p>
]]></content:encoded>
			<wfw:commentRss>http://www.christiano.ch/wordpress/2009/10/21/visual-studio-2010-and-net-framework-4-deliver-beta-2-in-final-stretch-to-march-22-launch/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
<enclosure url="http://www.christiano.ch/common/multimedia/video/1002270_MSDN_interview.mpg" length="224266244" type="video/mpeg" />
		</item>
		<item>
		<title>Use LINQ to query a List of String</title>
		<link>http://www.christiano.ch/wordpress/2009/08/25/use-linq-to-query-a-list-of-string/</link>
		<comments>http://www.christiano.ch/wordpress/2009/08/25/use-linq-to-query-a-list-of-string/#comments</comments>
		<pubDate>Tue, 25 Aug 2009 21:38:47 +0000</pubDate>
		<dc:creator>christian</dc:creator>
				<category><![CDATA[LINQ]]></category>
		<category><![CDATA[Microsoft]]></category>
		<category><![CDATA[Visual Studio]]></category>

		<guid isPermaLink="false">http://www.christiano.ch/wordpress/?p=457</guid>
		<description><![CDATA[LINQ (Language Integrated Query) is cool. I just wrote a little sample to query a List of String. Private coolPeople As New List&#40;Of String&#41;&#40;&#41; &#160; Sub Main&#40;&#41; coolPeople.Add&#40;&#34;Christoph&#34;&#41; coolPeople.Add&#40;&#34;Christian&#34;&#41; coolPeople.Add&#40;&#34;Hans&#34;&#41; coolPeople.Add&#40;&#34;Flurina&#34;&#41; coolPeople.Add&#40;&#34;Angie&#34;&#41; coolPeople.Add&#40;&#34;Paul&#34;&#41; &#160; Dim query As IEnumerable&#40;Of String&#41; = From p In coolPeople Select p _ Where p.Length &#38;gt; 5 _ Order By p [...]]]></description>
			<content:encoded><![CDATA[<p>LINQ (Language Integrated Query) is cool. I just wrote a little sample to query a List of String.<span id="more-457"></span></p>

<div class="wp_syntax"><div class="code"><pre class="vbnet" style="font-family:monospace;"><span style="color: #FF8000;">Private</span> coolPeople <span style="color: #FF8000;">As</span> <span style="color: #FF8000;">New</span> List<span style="color: #000000;">&#40;</span>Of <span style="color: #FF8000;">String</span><span style="color: #000000;">&#41;</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span>
&nbsp;
<span style="color: #0600FF;">Sub</span> Main<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span>
coolPeople.<span style="color: #0000FF;">Add</span><span style="color: #000000;">&#40;</span><span style="color: #808080;">&quot;Christoph&quot;</span><span style="color: #000000;">&#41;</span>
coolPeople.<span style="color: #0000FF;">Add</span><span style="color: #000000;">&#40;</span><span style="color: #808080;">&quot;Christian&quot;</span><span style="color: #000000;">&#41;</span>
coolPeople.<span style="color: #0000FF;">Add</span><span style="color: #000000;">&#40;</span><span style="color: #808080;">&quot;Hans&quot;</span><span style="color: #000000;">&#41;</span>
coolPeople.<span style="color: #0000FF;">Add</span><span style="color: #000000;">&#40;</span><span style="color: #808080;">&quot;Flurina&quot;</span><span style="color: #000000;">&#41;</span>
coolPeople.<span style="color: #0000FF;">Add</span><span style="color: #000000;">&#40;</span><span style="color: #808080;">&quot;Angie&quot;</span><span style="color: #000000;">&#41;</span>
coolPeople.<span style="color: #0000FF;">Add</span><span style="color: #000000;">&#40;</span><span style="color: #808080;">&quot;Paul&quot;</span><span style="color: #000000;">&#41;</span>
&nbsp;
<span style="color: #0600FF;">Dim</span> query <span style="color: #FF8000;">As</span> IEnumerable<span style="color: #000000;">&#40;</span>Of <span style="color: #FF8000;">String</span><span style="color: #000000;">&#41;</span> <span style="color: #008000;">=</span> From p In coolPeople <span style="color: #0600FF;">Select</span> p _
Where p.<span style="color: #0000FF;">Length</span> <span style="color: #008000;">&amp;</span>gt; <span style="color: #FF0000;">5</span> _
Order By p
<span style="color: #FF8000;">For</span> <span style="color: #0600FF;">Each</span> person <span style="color: #FF8000;">As</span> <span style="color: #FF8000;">String</span> In query
Console.<span style="color: #0000FF;">WriteLine</span><span style="color: #000000;">&#40;</span>person<span style="color: #000000;">&#41;</span>
<span style="color: #FF8000;">Next</span>
Console.<span style="color: #0000FF;">ReadLine</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span>
&nbsp;
<span style="color: #0600FF;">End</span> <span style="color: #0600FF;">Sub</span></pre></div></div>

]]></content:encoded>
			<wfw:commentRss>http://www.christiano.ch/wordpress/2009/08/25/use-linq-to-query-a-list-of-string/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
