<?xml version="1.0" encoding="utf-8"?>
<rss xmlns:atom="https://www.w3.org/2005/Atom" xmlns:sy="https://purl.org/rss/1.0/modules/syndication/" xmlns:dc="https://purl.org/dc/elements/1.1/" xmlns:content="https://purl.org/rss/1.0/modules/content/" xmlns:wfw="https://wellformedweb.org/CommentAPI/" xmlns:slash="https://purl.org/rss/1.0/modules/slash/"
  version="2.0">
  <channel>
    <title>Navigate till the end</title>
    <atom:link
      href="https://docs.microsoft.com/archive/blogs/mubashirk/feed.xml"
      rel="self"
      type="application/rss+xml" />
    <link>https://docs.microsoft.com/archive/blogs/mubashirk/feed.xml</link>
    <description />
    <lastBuildDate>Wed, 17 Apr 2019 04:11:01 GMT</lastBuildDate>
    <language>en-US</language>
    <sy:updatePeriod>hourly</sy:updatePeriod>
    <sy:updateFrequency>1</sy:updateFrequency>
    <item>
      <title>Steps for internationalizing your application: Globalization and Localization</title>
      <link>https://docs.microsoft.com/archive/blogs/mubashirk/steps-for-internationalizing-your-application-globalization-and-localization</link>
      <pubDate>Wed, 10 Mar 2010 19:45:00 GMT</pubDate>
      <dc:creator><![CDATA[MSDN Archive]]></dc:creator>
      <guid
        isPermaLink="false">https://blogs.msdn.microsoft.com/mubashirk/2010/03/10/steps-for-internationalizing-your-application-globalization-and-localization/</guid>
      <description><![CDATA[Today I am going to show on how we can internationalize an asp.net application. I have gone through...]]></description>
      <content:encoded><![CDATA[<p>Today I am going to show on how we can internationalize an asp.net application. I have gone through some scenarios and&#160; came across some error which I have discussed here as well. Moreover, I have also described about Satellite assembly versioning facts.</p>  <p>Here it goes:</p>  <ol>   <li>Open the Microsoft Visual Studio 2008(Recommended VS2008 SP1). </li>    <li>Open a new web application project in your preferred language. I am using C#. </li>    <li>In the solution explorer, you will see default.aspx page and if we expand “Show all files”, we will see “Default.aspx.cx” and a designer file (Default.aspx.designer.cx) as well. </li>    <li>Add a <strong>App_GlobalResources</strong> ASP.Net Folder by right clicking on the “Project” and click on Add. </li>    <li>This will add <strong>App_GlobalResources</strong> folder to the Project/Solution. </li>    <li>Now, here we have to be cautious on what we add. </li>    <li>Lets add a new item to the <strong>App_GlobalResources</strong>. </li>    <li>Right click on the <strong>App_GlobalResources</strong> folder, it should automatically reflect “Resource1.resx”file. </li>    <li>Change the file name to a general name, say “Strings.resx” or “Localization.resx” </li>    <li>I will keep the name of the resource as “Strings”. </li>    <li>This will add a new resource to the <strong>App_GlobalResources</strong> folder. </li>    <li><strong>NOTE: It is necessary to have a default resource file . Without the default resource file(in my case it is “Strings.aspx”) it is going to throw following error. </strong></li> </ol>  <p><strong>Server Error in '/' Application. </strong></p>  <p><i><strong>Could not load file or assembly 'App_GlobalResources' or one of its dependencies. The system cannot find the file specified.</strong></i></p>  <p><a href="https://msdnshared.blob.core.windows.net/media/TNBlogsFS/BlogFileStorage/blogs_msdn/mubashirk/WindowsLiveWriter/Stepsforinternationalizingyourapplicatio_381E/image_2.png" original-url="https://blogs.msdn.com/blogfiles/mubashirk/WindowsLiveWriter/Stepsforinternationalizingyourapplicatio_381E/image_2.png"><img style="border-right-width: 0px; display: inline; border-top-width: 0px; border-bottom-width: 0px; border-left-width: 0px" title="image" border="0" alt="image" src="https://msdnshared.blob.core.windows.net/media/TNBlogsFS/BlogFileStorage/blogs_msdn/mubashirk/WindowsLiveWriter/Stepsforinternationalizingyourapplicatio_381E/image_thumb.png" original-url="https://blogs.msdn.com/blogfiles/mubashirk/WindowsLiveWriter/Stepsforinternationalizingyourapplicatio_381E/image_thumb.png" width="867" height="495" /></a> </p>  <p>Description: 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.    <br />Exception Details: System.IO.FileNotFoundException:<strong> Could not load file or assembly 'App_GlobalResources' or one of its dependencies. The system cannot find the file specified.</strong></p>  <p>&#160;</p>  <p>&#160;</p>  <p>Once we add a default resource, if you look into the “<strong>App_GlobalResources</strong>” folder, <strong>you will see an auto generated code.</strong></p>  <p><strong><em>This is what is responsible for access of the resources.</em></strong></p>  <p>Now, as per my example, I have added a dropdown box and a label control on the page.</p>  <p>In the dropdown box, I have added following list items.</p>  <p>&#160;</p>  <p>&lt;asp:DropDownList ID=&quot;DropDownList1&quot; runat=&quot;server&quot; AutoPostBack=&quot;True&quot;</p>  <p>onselectedindexchanged=&quot;DropDownList1_SelectedIndexChanged&quot;&gt;</p>  <p>&lt;asp:ListItem Value=&quot;French&quot;&gt;French&lt;/asp:ListItem&gt;</p>  <p>&lt;asp:ListItem Value=&quot;Arabic&quot;&gt;Arabic&lt;/asp:ListItem&gt;</p>  <p>&lt;asp:ListItem Value=&quot;German&quot;&gt;German&lt;/asp:ListItem&gt;</p>  <p>&lt;asp:ListItem Value=&quot;English&quot; Selected=&quot;True&quot;&gt;English&lt;/asp:ListItem&gt;</p>  <p>&lt;/asp:DropDownList&gt;</p>  <p>&#160;</p>  <p>In the Default.aspx.cx code, here is what I have added.</p>  <p>protected void DropDownList1_SelectedIndexChanged(object sender, EventArgs e)</p>  <p>{</p>  <p>if (this.DropDownList1.SelectedIndex == 0)</p>  <p>{</p>  <p>//French</p>  <p>Thread.CurrentThread.CurrentCulture = CultureInfo.CreateSpecificCulture(&quot;fr-FR&quot;);</p>  <p>Thread.CurrentThread.CurrentUICulture = new CultureInfo(&quot;fr-FR&quot;);</p>  <p>}</p>  <p>else if (this.DropDownList1.SelectedIndex == 1)</p>  <p>{</p>  <p>//Arabic</p>  <p>Thread.CurrentThread.CurrentCulture = CultureInfo.CreateSpecificCulture(&quot;ar-SA&quot;);</p>  <p>Thread.CurrentThread.CurrentUICulture = new CultureInfo(&quot;ar-SA&quot;);</p>  <p>}</p>  <p>else if (this.DropDownList1.SelectedIndex == 2)</p>  <p>{</p>  <p>//German</p>  <p>Thread.CurrentThread.CurrentCulture = CultureInfo.CreateSpecificCulture(&quot;de-De&quot;);</p>  <p>Thread.CurrentThread.CurrentUICulture = new CultureInfo(&quot;de-De&quot;);</p>  <p>}</p>  <p>else</p>  <p>{</p>  <p>//English</p>  <p>Thread.CurrentThread.CurrentCulture = CultureInfo.CreateSpecificCulture(&quot;en-US&quot;);</p>  <p>Thread.CurrentThread.CurrentUICulture = new CultureInfo(&quot;en-US&quot;);</p>  <p>}</p>  <p>this.Label1.Text = Resources.Strings.String1.ToString();</p>  <p>}</p>  <p>&#160;</p>  <p>On changing the dropdown value, I set the culture for the thread and it automatically selects the respective resource based on the culture.</p>  <p>There you go, now you can select the culture in your page, and it is going to select the respective resource automatically.</p>  <p>&#160;</p>  <p><strong><font size="4">Different ways of accessing Resources:</font></strong></p>  <p>Retrieve Resource Values Programmatically</p>  <p>1. <strong><font size="2">Directly accessing using the resource namespace:</font></strong></p>  <p><strong>We can access our resources as: this.Label1.Text = Resources.Strings.String1.ToString();</strong></p>  <p>Once the default resource is added, it automatically adds a “Resources” namespace.</p>  <p>Within the “Resources” namespace, we see the class generated by name “Strings”. This is how we added resources to the “App_GlobalResources”, e.g Strings.resx.</p>  <p>So, by default, the classname generated will be “Strings”.</p>  <p>2. <strong>Accessing the application using ResourceManager</strong></p>  <p><strong>ResourceManager (string baseName, System.Reflection.Assembly assembly)</strong></p>  <p>e.g: ResourceManager gStrings = new ResourceManager(&quot;Resources.Strings&quot;, System.Reflection.Assembly.Load(&quot;App_GlobalResources&quot;));</p>  <p><strong>Here, Resources is NameSpace, Strings is the name of the class in namespace of the resource file.</strong></p>  <p><strong>The reason I am calling “System.Reflection.Assembly.Load(“App_GlobalResources”) is because, my resource files are loaded into “App_GlobalResources” folder. By this name the dll will be generated</strong>.</p>  <p>In case we do not mentioned the proper namespace, as “Resources.Strings” or proper assembly name, we will get the below mentioned error message.</p>  <p><a href="https://msdnshared.blob.core.windows.net/media/TNBlogsFS/BlogFileStorage/blogs_msdn/mubashirk/WindowsLiveWriter/Stepsforinternationalizingyourapplicatio_381E/image_4.png" original-url="https://blogs.msdn.com/blogfiles/mubashirk/WindowsLiveWriter/Stepsforinternationalizingyourapplicatio_381E/image_4.png"><img style="border-right-width: 0px; display: inline; border-top-width: 0px; border-bottom-width: 0px; border-left-width: 0px" title="image" border="0" alt="image" src="https://msdnshared.blob.core.windows.net/media/TNBlogsFS/BlogFileStorage/blogs_msdn/mubashirk/WindowsLiveWriter/Stepsforinternationalizingyourapplicatio_381E/image_thumb_1.png" original-url="https://blogs.msdn.com/blogfiles/mubashirk/WindowsLiveWriter/Stepsforinternationalizingyourapplicatio_381E/image_thumb_1.png" width="884" height="536" /></a> </p>  <p><strong><font size="3">Implicit / Explicit localization:</font></strong></p>  <p><strong>Implicit localization:</strong></p>  <p>If local resource files are created in Application, then implicit localization can be used to fill the property values for the control.</p>  <p>To use implicit localization, following naming convention must be used for resources in local resource file </p>  <p>key.property</p>  <p><strong>Where key: Any name for the resource</strong></p>  <p><strong>Property: Property of the control that we are localizing</strong></p>  <p>Ex: If we are creating resource for control label named Label1, you need to create following key/value pairs in local resource file</p>  <p>this.Label1.Text = &quot;Error Message&quot;</p>  <p>In aspx page, we need to use a special meta attribute in the markup for the control to specify implicit localization as- </p>  <p>&lt;asp:Label ID=&quot;Label1&quot; runat=&quot;server&quot; meta:resourcekey=&quot;string1&quot; Text=&quot;Label&quot;&gt;&lt;/asp:Label&gt;</p>  <p>No need to explicitly specify which properties are localized.</p>  <p>The resourcekey value matches a key in resource file.</p>  <p>At run time, ASP.NET matches resources to control properties using the resourcekey, if property value is defined in resource file, ASP.NET substitute the resource value for the property.</p>  <p><strong>Explicit localization</strong> :</p>  <p>We use resource expression for each property of a control</p>  <p>For ex: A label control that is configured to set a text from global resource look like- </p>  <p>&lt;asp:Label ID=&quot;Label1&quot; runat=&quot;server&quot; Text=&quot;&lt;%$ Resources:ResourceFileName, String1 %&gt;&quot;&gt;&lt;/asp:Label&gt;</p>  <p>The resource expression takes the following form </p>  <p>&lt;%$ Resources:Class, ResourceID %&gt;</p>  <p>Where Class: Identifies the resource file to be used</p>  <p>ResourceID: Identifier of the resource to be read from resource file</p>  <p>&#160;</p>  <p>&#160;</p>  <p><strong><font size="3">Versioning Satellite assemblies:</font></strong></p>  <p>&#160;</p>  <p>Instructs the <a href="https://msdn.microsoft.com/en-us/library/system.resources.resourcemanager.aspx">ResourceManager</a> to ask for a particular version of a satellite assembly to simplify updates of the main assembly of an application.</p>  <p><strong>The SatelliteContractVersionAttribute establishes a contract between a main assembly and all its satellites. When the ResourceManager looks up resources, it explicitly loads the satellite version specified by this attribute on the main assembly, allowing a layer of indirection to facilitate versioning scenarios.</strong></p>  <p>When the main assembly is updated, its assembly version number is incremented. However, you might not want to ship new copies of your satellite assemblies if the existing ones are sufficient and compatible with the newer version of your product. In this case, increment the main assembly's version number but leave the satellite contract version number the same. The ResourceManager will use your existing satellite assemblies.</p>  <p>If you need to revise a satellite assembly but not the main assembly, you must increment the version number on your satellite. In this case, ship a policy assembly along with your satellite assembly stating that your new satellite assembly has backward compatibility with your old satellite assembly. The ResourceManager will still use the old contract number written into your main assembly; however, the loader will bind to the satellite assembly version as specified by the policy assembly.</p>  <p><strong><em>A publisher policy assembly is the way in which a vendor of a shared component makes a compatibility statement about a particular version of a released assembly. A publisher policy assembly is a strongly named assembly with a name in the format policy.&lt;major&gt;.&lt;minor&gt;.&lt;ComponentAssemblyName&gt;, and is registered in the Global Assembly Cache (GAC). The publisher policy is generated from an XML configuration file (see &lt;bindingRedirect&gt; Element) by using the Assembly Linker (Al.exe) tool. The assembly linker is used with the /link option to link the XML configuration file to a manifest assembly, that is then stored in the GAC. The publisher policy assemblies can be used when a vendor ships a maintenance release (Service Pack) that contains bug fixes.</em></strong></p>  <p>Note: </p>  <p>Apply this attribute to your main assembly, passing it the version number of the satellite assembly that will work with this version of the main assembly.</p>]]></content:encoded>
    </item>
    <item>
      <title>Facts about Globalization, Satellite assemblies, localization:</title>
      <link>https://docs.microsoft.com/archive/blogs/mubashirk/facts-about-globalization-satellite-assemblies-localization</link>
      <pubDate>Wed, 10 Mar 2010 14:00:32 GMT</pubDate>
      <dc:creator><![CDATA[MSDN Archive]]></dc:creator>
      <guid
        isPermaLink="false">https://blogs.msdn.microsoft.com/mubashirk/2010/03/10/facts-about-globalization-satellite-assemblies-localization/</guid>
      <description><![CDATA[1.&#160;&#160;&#160; Adding App_LocalResources folder to the application does not create separate...]]></description>
      <content:encoded><![CDATA[<p>1.&#160;&#160;&#160; Adding App_LocalResources folder to the application does not create separate Dlls with repect to the&#160; </p>  <p>&#160;&#160;&#160;&#160;&#160;&#160; culture.    <br />2.&#160;&#160;&#160; If we not have UICulture=&quot;auto&quot; set in the page directive, it will not display the culture specific UI.     <br /></p>  <p>3.&#160;&#160;&#160; We can also set the culture at global level in web.config in &lt;globalization&gt; element under </p>  <p>&#160;&#160;&#160;&#160;&#160;&#160; &lt;System.web&gt; element.    <br />4.&#160;&#160;&#160; We can have multiple App_LocalResources folder under different child folders. However we can have </p>  <p>&#160;&#160;&#160;&#160;&#160;&#160; only one App_GlobalResource folder.    <br />5.&#160;&#160;&#160; Local resource is specific to a single Web page and used for providing versions of a Web page in </p>  <p>&#160;&#160;&#160;&#160;&#160;&#160; different languages. </p>  <p>   <br />6.&#160;&#160;&#160; Local resources must be stored in App_LocalResources sub folder.</p>  <p>   <br />7.&#160;&#160;&#160; Local resources must be named in format &lt;WebPageName&gt; [.language / language and culture].resx.</p>  <p>   <br />8.&#160;&#160;&#160; Ex: Default.aspx.resx- Base resource file. This is the default, or fallback, resource file. This is must </p>  <p>&#160;&#160;&#160;&#160;&#160;&#160; have. e.g: Default.aspx.fr.resx- A resource file for French etc.</p>  <p>   <br />9.&#160;&#160;&#160; Global resource can be read from any page or code that is in the application.</p>  <p>   <br />10.&#160; Global resource must be stored in App_GlobalResources at the root of the application.</p>  <p>11.&#160; Namespace used: System.Globalization; System.Resources; System.Threading</p>  <p>12.&#160; The difference between resource-only and satellite assemblies is that resource-only assemblies can</p>  <p>&#160;&#160;&#160;&#160;&#160; contain any resource, such as images and text. Satellite assemblies contain only culture-specific </p>  <p>&#160;&#160;&#160;&#160;&#160; resources.</p>  <p>I will try to look for more if time permits, till then cheeers :) </p>]]></content:encoded>
    </item>
    <item>
      <title>How to make a Virtual directory in IIS7 as FPSE enabled?</title>
      <link>https://docs.microsoft.com/archive/blogs/mubashirk/how-to-make-a-virtual-directory-in-iis7-as-fpse-enabled</link>
      <pubDate>Tue, 21 Apr 2009 21:54:00 GMT</pubDate>
      <dc:creator><![CDATA[MSDN Archive]]></dc:creator>
      <guid
        isPermaLink="false">https://blogs.msdn.microsoft.com/mubashirk/2009/04/21/how-to-make-a-virtual-directory-in-iis7-as-fpse-enabled/</guid>
      <description><![CDATA[Go to the below mentioned location on x86 box through command prompt.      C:\Program Files\Common...]]></description>
      <content:encoded><![CDATA[<p>Go to the below mentioned location on x86 box through command prompt.    <br /></p>  <p>C:\Program Files\Common Files\microsoft shared\Web Server Extensions\50\bin&gt;</p>  <p>Type the following command.    <br />owsadm.exe -o create -w Test1 -p 80 </p>  <p>-o = Operation to be performed.    <br />-w = sub web to be extended.     <br />-p = port to be used. </p>  <p>You can get more help on owsadm.exe by tying owsadm.exe -help. </p>  <p>Here we have to make sure that the name(alias) of the virtual directory and its physical path(folder name) are same. </p>  <p>On IIS6, we can enabled the Virtual directory as FPSE enabled by right clicking on the Virtual directory to be extended and then click on &quot;Configure Server Extensions 2002&quot;. </p>  <p>Note:- We cannot extend(FPSE) the virtual directories which are pointing to remote location/UNC share. </p>  <p>Reference for FPSE: <a href="https://learn.iis.net/page.aspx/134/install-frontpage-server-extensions/">https://learn.iis.net/page.aspx/134/install-frontpage-server-extensions/</a></p>  <p>&#160;</p>  <p>Cheers :) </p>  <p>&#160;</p>  <p></p>  <div style="padding-bottom: 0px; margin: 0px; padding-left: 0px; padding-right: 0px; display: inline; float: none; padding-top: 0px" id="scid:0767317B-992E-4b12-91E0-4F059A8CECA8:47b03f1f-0cf5-48c5-8716-24e7295c95b2" class="wlWriterEditableSmartContent">Technorati Tags: <a href="https://technorati.com/tags/Extend+Virtual+directory+IIS7+Virtual+directory+FPSE+FPSE+2002" rel="tag">Extend Virtual directory IIS7 Virtual directory FPSE FPSE 2002</a></div>]]></content:encoded>
    </item>
    <item>
      <title>Not able to debug an ASP.Net application in Visual Studio 2005 on Windows Vista operating system having IE7.</title>
      <link>https://docs.microsoft.com/archive/blogs/mubashirk/not-able-to-debug-an-asp-net-application-in-visual-studio-2005-on-windows-vista-operating-system-having-ie7</link>
      <pubDate>Thu, 12 Feb 2009 18:21:03 GMT</pubDate>
      <dc:creator><![CDATA[MSDN Archive]]></dc:creator>
      <guid
        isPermaLink="false">https://blogs.msdn.microsoft.com/mubashirk/2009/02/12/not-able-to-debug-an-asp-net-application-in-visual-studio-2005-on-windows-vista-operating-system-having-ie7/</guid>
      <description><![CDATA[There are different ways to resolve this issue.  Resolutions:  Resolution 1. In Internet Explorer 7,...]]></description>
      <content:encoded><![CDATA[<p>There are different ways to resolve this issue.  <p>Resolutions:  <p>Resolution 1. In Internet Explorer 7, uncheck the "Enabled protected mode" under the "Security" tab in IE settings for the Local Intranet Zone.  <p>Resolution 2. In Internet Explorer 7, add the url e.g (<a href="https://localhost">https://localhost</a>) to the "Trusted Sites".  <p>Resolution 3. Run the Visual Studio 2005 as "Run as administrator".  <p>Resolution 4. Uncheck the User Account Control (UAC) settings for the user in the control panel under User account settings(not recomended).  <p>After installing the VS2005 SP1, the issue still persists.  <p>However, the issue does not occur on Visual Studio 2008 and IE8.  <p>&nbsp; <p>Hope this helps :)  <p>Cheers!</p> <p> <div class="wlWriterEditableSmartContent" id="scid:0767317B-992E-4b12-91E0-4F059A8CECA8:f75f361f-4f12-45c4-b38c-f3c11afbe73e" style="padding-right: 0px; display: inline; padding-left: 0px; float: none; padding-bottom: 0px; margin: 0px; padding-top: 0px">Technorati Tags: <a href="https://technorati.com/tags/Debugging+VS2005+Debugging+VS2005+IE7" rel="tag">Debugging VS2005 Debugging VS2005 IE7</a></div></p>]]></content:encoded>
    </item>
    <item>
      <title>Modify default templates for Visual Studio 2008</title>
      <link>https://docs.microsoft.com/archive/blogs/mubashirk/modify-default-templates-for-visual-studio-2008</link>
      <pubDate>Tue, 13 Jan 2009 12:26:50 GMT</pubDate>
      <dc:creator><![CDATA[MSDN Archive]]></dc:creator>
      <guid
        isPermaLink="false">https://blogs.msdn.microsoft.com/mubashirk/2009/01/13/modify-default-templates-for-visual-studio-2008/</guid>
      <description><![CDATA[In Visual Studio we have the option of adding our own templates for any application type, be it...]]></description>
      <content:encoded><![CDATA[<p>In Visual Studio we have the option of adding our own templates for any application type, be it windows application, web application, web service etc. I did not want to add my own templates as I wanted to change the default templates that are bundled with Visual Studio 2008. After researching on this case, I finally found out how we can achieve it.  <p>I will choose the web as my platform. Visual Studio 2008 has two modes of creating a web application.  <p>1. Web application project  <p>2. Websites project.  <p><b><u>Website project model:</u></b> <p>Create a new website.  <p>File --&gt; New --&gt; New website --&gt; ASP.Net Web Site  <p>Once we create a new project, it will automatically add the four items in the solution. App_data folder, Default.aspx, Default.aspx.cs and web.config file. These are the default templates which are installed along with the Visual Studio 2008. These templates are located in the WebApplication.Zip folder at:  <p><b>C:\Program Files\Microsoft Visual Studio 9.0\Common7\IDE\ProjectTemplatesCache\Web\CSharp\1033\WebApplication.zip </b> <p><b>File name: Default.aspx</b>  <p><b></b> <p>Open the <b><i>WebApplication.Zip</i></b> folder. Make sure you have the backup of the folder. Edit the default.aspx in the notepad. Modify the contents of the file as per the requirement and save the files. Open the Visual Studio 2008 and create a new website project. Now you should see the modified file contents in the default.aspx file in Visual Studio 2008.  <p>When we add the new item to the existing solution, the changes made on the default.aspx page does not reflect here. It only reflects the changes when we create a new website. This is expected because the location for the item template is different.  <p>When we add the new item to the Visual Studio solution, we have multiple options.  <p>Â· Add the new item and use the code behind page.  <p>Â· Add the new item and use inline code.  <p>Â· Add the new item and preset the master page.  <p>For all the three options the templates used are taken from different template locations  <p><b></b> <p><b>Option1.</b>  <p>Add the new item with the code behind file and no master page. The option "Place code in separate file" is checked. Go to the below mentioned location and modify the code as per requirement.  <p><b>C:\Program Files\Microsoft Visual Studio9.0\Common7\IDE\ItemTemplatesCache\Web\CSharp\1033\WebForm.zip</b>  <p><b>File name: WebForm_cb.aspx </b> <p><b>Option2.</b>  <p>Add the new item without the code behind file (inline code) and no master page. The option "Place code in separate file" is unchecked. Go to the below mentioned location and modify the code as per requirement.  <p><b>C:\Program Files\Microsoft Visual Studio9.0\Common7\IDE\ItemTemplatesCache\Web\CSharp\1033\WebForm.zip</b>  <p><b>File name: WebForm.aspx </b> <p><b>Option3.</b>  <p>Add the new item without the code behind file (inline code) and with "Select master page" option checked. The option "Place code in separate file" is unchecked. Go to the below mentioned location and modify the code as per requirement.  <p><b>C:\Program Files\Microsoft Visual Studio9.0\Common7\IDE\ItemTemplatesCache\Web\CSharp\1033\WebForm.zip</b>  <p><b>File name: ContentPage.aspx </b> <p><b>Option4.</b>  <p>Add the new item with the code behind file and with "Select master page" option checked. The option "Place code in separate file" is checked. Go to the below mentioned location and modify the code as per requirement.  <p><b>C:\Program Files\Microsoft Visual Studio9.0\Common7\IDE\ItemTemplatesCache\Web\CSharp\1033\WebForm.zip</b>  <p><b>File name: ContentPage_cb.aspx</b>  <p><b><u>Web application project model:</u></b> <p>Create a new Web application project.  <p>Go to ... File --&gt; New --&gt; Project --&gt; Project type --&gt; Visual C# -&gt; Web --&gt; ASP.Net Web Application  <p>In case of the web application project, the Visual Studio 2008 adds many default items. Properties, AssemblyInfo.cs, References, App_Data, Default.aspx, default.aspx.cx, default.aspx.designer.cs and web.config file. These templates are located at:  <p><b>C:\Program Files\Microsoft Visual Studio 9.0\Common7\IDE\ProjectTemplatesCache\CSharp\Web\1033\WebApplicationProject.zip</b>  <p><b></b> <p>Here I am going to change the default contents of the Default.aspx file. Make sure you have taken the backup before modifying the contents of the default template.  <p>Now, let's add a new item to the project. Right click on the project and click on <i>Add </i>and <i>New Item.</i> Select the <i>Web Form </i>and click on the add button. When we add a new item to the solution explorer, say a new webform, we do not see the changes. This is because the item templates are taken from the different template location.  <p>In Web application project, neither do we have inline code model nor do we have an option to preset the master page for the webform. Below is the location for the default template.  <p><b>C:\Program Files\Microsoft Visual Studio 9.0\Common7\IDE\ItemTemplatesCache\CSharp\Web\1033\WebForm.zip</b>  <p>I hope this helps.  <p>&nbsp;</p> <div class="wlWriterSmartContent" id="scid:0767317B-992E-4b12-91E0-4F059A8CECA8:1e860fcb-24c5-4aff-a2f7-11baadb34f17" style="padding-right: 0px; display: inline; padding-left: 0px; float: none; padding-bottom: 0px; margin: 0px; padding-top: 0px">Technorati Tags: <a href="https://technorati.com/tags/Visual+Studio+Templates+Default+templates+Visual+Studio+Default+templates+Modify+VS+templates+Web+Templates+Web+Templates" rel="tag">Visual Studio Templates Default templates Visual Studio Default templates Modify VS templates Web Templates Web Templates</a></div>]]></content:encoded>
    </item>
    <item>
      <title>FTP over SSL, how to check in FTP Logs.</title>
      <link>https://docs.microsoft.com/archive/blogs/mubashirk/ftp-over-ssl-how-to-check-in-ftp-logs</link>
      <pubDate>Fri, 19 Dec 2008 18:55:11 GMT</pubDate>
      <dc:creator><![CDATA[MSDN Archive]]></dc:creator>
      <guid
        isPermaLink="false">https://blogs.msdn.microsoft.com/mubashirk/2008/12/19/ftp-over-ssl-how-to-check-in-ftp-logs/</guid>
      <description><![CDATA[Technorati Tags: FTP over SSL SSL FTPS IIS7 FTP FTP Logs I was working with one of my customer who...]]></description>
      <content:encoded><![CDATA[<div class="wlWriterEditableSmartContent" id="scid:0767317B-992E-4b12-91E0-4F059A8CECA8:2a94dc24-60fb-47f9-a16e-867b5201df7b" style="padding-right: 0px; display: inline; padding-left: 0px; float: none; padding-bottom: 0px; margin: 0px; padding-top: 0px">Technorati Tags: <a href="https://technorati.com/tags/FTP+over+SSL+SSL+FTPS+IIS7+FTP+FTP+Logs" rel="tag">FTP over SSL SSL FTPS IIS7 FTP FTP Logs</a></div> <p>I was working with one of my customer who was trying to figure out how to check whether FTP is using SSL or not. Well, first of all I couldn't find out how exactly we can do it. But later on figured it out. In FTP log fields, there is a W3C logging field called Method (cs-method).  <p><a href="https://msdnshared.blob.core.windows.net/media/TNBlogsFS/BlogFileStorage/blogs_msdn/mubashirk/WindowsLiveWriter/FTPoverSSLhowtocheckinFTPLogs_4C2F/clip_image002%5B5%5D.jpg" original-url="https://blogs.msdn.com/blogfiles/mubashirk/WindowsLiveWriter/FTPoverSSLhowtocheckinFTPLogs_4C2F/clip_image002%5B5%5D.jpg"><img title="clip_image002[5]" style="border-right: 0px; border-top: 0px; display: inline; border-left: 0px; border-bottom: 0px" height="449" alt="clip_image002[5]" src="https://msdnshared.blob.core.windows.net/media/TNBlogsFS/BlogFileStorage/blogs_msdn/mubashirk/WindowsLiveWriter/FTPoverSSLhowtocheckinFTPLogs_4C2F/clip_image002%5B5%5D_thumb.jpg" original-url="https://blogs.msdn.com/blogfiles/mubashirk/WindowsLiveWriter/FTPoverSSLhowtocheckinFTPLogs_4C2F/clip_image002%5B5%5D_thumb.jpg" width="491" border="0"></a> <p>In order to find the difference I first used FTP without SSL and then with SSL. Below are the two logs.  <p><b>Without SSL</b>  <p><b>===========</b>  <p>#Software: Microsoft Internet Information Services 7.0  <p>#Version: 1.0  <p>#Date: 2008-12-17 21:45:24  <p><b>#Fields: date time c-ip c-port cs-username s-sitename s-computername sc-host s-ip s-port cs-method cs-uri-stem sc-status sc-win32-status sc-substatus sc-bytes cs-bytes time-taken x-session x-fullpath x-debug</b>  <p>2008-12-17 21:45:24 65.52.18.179 65491 - FTPSVC3 ComputerName - 65.52.22.60 21 <b>ControlChannelOpened</b> - - 0 0 0 0 0 bd8ac5be-aad1-405a-a591-49ad5cee540a - -  <p>2008-12-17 21:45:24 65.52.18.179 65491 - FTPSVC3 ComputerName - 65.52.22.60 21 <b>USER</b> UserName 331 0 0 43 21 0 bd8ac5be-aad1-405a-a591-49ad5cee540a - -  <p>2008-12-17 21:45:24 65.52.18.179 65491 UserName FTPSVC3 ComputerName - 65.52.22.60 21 <b>PASS ***</b> 230 0 0 21 16 46 bd8ac5be-aad1-405a-a591-49ad5cee540a / -  <p>2008-12-17 21:45:24 65.52.18.179 65491 UserName FTPSVC3 ComputerName - 65.52.22.60 21 <b>PWD </b>- 257 0 0 31 5 0 bd8ac5be-aad1-405a-a591-49ad5cee540a - -  <p>2008-12-17 21:45:24 65.52.18.179 65491 UserName FTPSVC3 ComputerName - 65.52.22.60 21 <b>FEAT</b> - 211 0 0 135 6 0 bd8ac5be-aad1-405a-a591-49ad5cee540a - -  <p>2008-12-17 21:45:24 65.52.18.179 65491 UserName FTPSVC3 ComputerName - 65.52.22.60 21 <b>REST</b> 100 350 0 0 24 10 0 bd8ac5be-aad1-405a-a591-49ad5cee540a - -  <p>2008-12-17 21:45:24 65.52.18.179 65491 UserName FTPSVC3 ComputerName - 65.52.22.60 21 <b>REST</b> 0 350 0 0 22 8 0 bd8ac5be-aad1-405a-a591-49ad5cee540a - -  <p>2008-12-17 21:45:24 65.52.18.179 65491 UserName FTPSVC3 ComputerName - 65.52.22.60 21 <b>PASV</b> - 227 0 0 50 6 0 bd8ac5be-aad1-405a-a591-49ad5cee540a - -  <p>2008-12-17 21:45:24 65.52.18.179 65492 UserName FTPSVC3 ComputerName - 65.52.22.60 59032 <b>DataChannelOpened </b>- - 0 0 0 0 0 bd8ac5be-aad1-405a-a591-49ad5cee540a - -  <p>2008-12-17 21:45:24 65.52.18.179 65492 UserName FTPSVC3 ComputerName - 65.52.22.60 59032 <b>DataChannelClosed</b> - - 0 0 1856 0 0 bd8ac5be-aad1-405a-a591-49ad5cee540a - -  <p>2008-12-17 21:45:24 65.52.18.179 65491 UserName FTPSVC3 ComputerName - 65.52.22.60 21 <b>LIST </b>- 226 0 0 1921 6 78 bd8ac5be-aad1-405a-a591-49ad5cee540a / -  <p>2008-12-17 21:45:31 65.52.18.179 65491 UserName FTPSVC3 ComputerName - 65.52.22.60 21 <b>ControlChannelClosed</b> - - 1236 0 418 78 7254 bd8ac5be-aad1-405a-a591-49ad5cee540a - -  <p>Here in these logs, we are not using SSL, therefore we do not see AUTH SSL or PBSZ entry in the logs.  <p><b>With SSL</b>  <p>=========  <p>#Software: Microsoft Internet Information Services 7.0  <p>#Version: 1.0  <p>#Date: 2008-12-17 21:46:16  <p><b>#Fields: date time c-ip c-port cs-username s-sitename s-computername sc-host s-ip s-port cs-method cs-uri-stem sc-status sc-win32-status sc-substatus sc-bytes cs-bytes time-taken x-session x-fullpath x-debug</b>  <p>2008-12-17 21:46:16 65.52.18.179 65502 - FTPSVC3 ComputerName - 65.52.22.60 21 <b>ControlChannelOpened</b> - - 0 0 0 0 0 40392027-3887-4ad3-aaf2-b4d3c49c96d2 - -  <p>2008-12-17 21:46:16 65.52.18.179 65502 - FTPSVC3 ComputerName - 65.52.22.60 21 <b><i>AUTH SSL</i></b> 234 0 0 22 10 62 40392027-3887-4ad3-aaf2-b4d3c49c96d2 - -  <p>2008-12-17 21:46:20 65.52.18.179 65502 - FTPSVC3 ComputerName - 65.52.22.60 21 <b>PBSZ</b> 0 200 0 0 69 8 0 40392027-3887-4ad3-aaf2-b4d3c49c96d2 - -  <p>2008-12-17 21:46:20 65.52.18.179 65502 - FTPSVC3 ComputerName - 65.52.22.60 21 <b>USER</b> UserName 331 0 0 69 21 0 40392027-3887-4ad3-aaf2-b4d3c49c96d2 - -  <p>2008-12-17 21:46:20 65.52.18.179 65502 UserName FTPSVC3 ComputerName - 65.52.22.60 21 <b>PASS ***</b> 230 0 0 53 16 47 40392027-3887-4ad3-aaf2-b4d3c49c96d2 / -  <p>2008-12-17 21:46:20 65.52.18.179 65502 UserName FTPSVC3 ComputerName - 65.52.22.60 21 <b>PWD</b> - 257 0 0 69 5 0 40392027-3887-4ad3-aaf2-b4d3c49c96d2 - -  <p>2008-12-17 21:46:20 65.52.18.179 65502 UserName FTPSVC3 ComputerName - 65.52.22.60 21 <b>FEAT</b> - 211 0 0 297 6 0 40392027-3887-4ad3-aaf2-b4d3c49c96d2 - -  <p>2008-12-17 21:46:20 65.52.18.179 65502 UserName FTPSVC3 ComputerName - 65.52.22.60 21 <b>REST </b>100 350 0 0 53 10 0 40392027-3887-4ad3-aaf2-b4d3c49c96d2 - -  <p>2008-12-17 21:46:20 65.52.18.179 65502 UserName FTPSVC3 ComputerName - 65.52.22.60 21 <b>REST</b> 0 350 0 0 53 8 0 40392027-3887-4ad3-aaf2-b4d3c49c96d2 - -  <p>2008-12-17 21:46:20 65.52.18.179 65502 UserName FTPSVC3 ComputerName - 65.52.22.60 21 <b>PBSZ</b> 0 200 0 0 69 8 0 40392027-3887-4ad3-aaf2-b4d3c49c96d2 - -  <p>2008-12-17 21:46:20 65.52.18.179 65502 UserName FTPSVC3 ComputerName - 65.52.22.60 21 <b>PROT</b> P 200 0 0 69 8 0 40392027-3887-4ad3-aaf2-b4d3c49c96d2 - -  <p>2008-12-17 21:46:20 65.52.18.179 65502 UserName FTPSVC3 ComputerName - 65.52.22.60 21 <b>PASV</b> - 227 0 0 85 6 0 40392027-3887-4ad3-aaf2-b4d3c49c96d2 - -  <p>2008-12-17 21:46:20 65.52.18.179 65503 UserName FTPSVC3 ComputerName - 65.52.22.60 59043 <b>DataChannelOpened</b> - - 0 0 0 0 0 40392027-3887-4ad3-aaf2-b4d3c49c96d2 - -  <p>2008-12-17 21:46:20 65.52.18.179 65503 UserName FTPSVC3 ComputerName - 65.52.22.60 59043 <b>DataChannelClosed</b> - - 0 0 1930 474 0 40392027-3887-4ad3-aaf2-b4d3c49c96d2 - -  <p>2008-12-17 21:46:20 65.52.18.179 65502 UserName FTPSVC3 ComputerName - 65.52.22.60 21 <b>LIST </b>- 226 0 0 2052 480 47 40392027-3887-4ad3-aaf2-b4d3c49c96d2 / -  <p>2008-12-17 21:46:26 65.52.18.179 65502 UserName FTPSVC3 ComputerName - 65.52.22.60 21 <b>ControlChannelClosed</b> - - 1236 0 2005 1320 9906 40392027-3887-4ad3-aaf2-b4d3c49c96d2 - -  <p>I have highlighted the difference in the cs-method column. In the second line we see the <strong><em>AUTH SSL</em></strong>&nbsp; method. This confirms we are using SSL for the data channel. Also, PBSZ and PROT confirm that data channel is using SSL. You can refer the following <a href="https://tools.ietf.org/html/draft-murray-auth-ftp-ssl-00">link</a> for reference(<a href="https://tools.ietf.org/html/draft-murray-auth-ftp-ssl-00">https://tools.ietf.org/html/draft-murray-auth-ftp-ssl-00</a>)  <p>Hope you will find it useful.  ]]></content:encoded>
    </item>
  </channel>
</rss>