<?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>IIS &#8211; Sibeesh Passion</title>
	<atom:link href="https://www.sibeeshpassion.com/tag/iis/feed/" rel="self" type="application/rss+xml" />
	<link>https://www.sibeeshpassion.com</link>
	<description>My passion towards life</description>
	<lastBuildDate>Wed, 02 Jun 2021 15:23:12 +0000</lastBuildDate>
	<language>en-US</language>
	<sy:updatePeriod>
	hourly	</sy:updatePeriod>
	<sy:updateFrequency>
	1	</sy:updateFrequency>
	<generator>https://wordpress.org/?v=6.9.4</generator>

<image>
	<url>/wp-content/uploads/2017/04/Sibeesh_Passion_Logo_Small.png</url>
	<title>IIS &#8211; Sibeesh Passion</title>
	<link>https://www.sibeeshpassion.com</link>
	<width>32</width>
	<height>32</height>
</image> 
	<item>
		<title>Fix To No Access-Control-Allow-Origin header is present Or Working With Cross Origin Request In Asp Net Web API</title>
		<link>https://www.sibeeshpassion.com/fix-to-no-access-control-allow-origin-header-is-present-or-working-with-cross-origin-request-in-asp-net-web-api/</link>
					<comments>https://www.sibeeshpassion.com/fix-to-no-access-control-allow-origin-header-is-present-or-working-with-cross-origin-request-in-asp-net-web-api/#disqus_thread</comments>
		
		<dc:creator><![CDATA[SibeeshVenu]]></dc:creator>
		<pubDate>Fri, 11 Mar 2016 09:28:29 +0000</pubDate>
				<category><![CDATA[.NET]]></category>
		<category><![CDATA[Web API]]></category>
		<category><![CDATA[Configure Web API In IIS]]></category>
		<category><![CDATA[CORS]]></category>
		<category><![CDATA[Cross Origin Request In Asp Net Web API]]></category>
		<category><![CDATA[IIS]]></category>
		<category><![CDATA[No Access-Control-Allow-Origin]]></category>
		<guid isPermaLink="false">http://sibeecst_passion.com/?p=11345</guid>

					<description><![CDATA[[toc] Introduction In this article we are going to few possible fixes we can apply when we get an error &#8220;Response to the preflight request doesn&#8217;t pass access control check: No &#8216;Access-Control-Allow-Origin&#8217; header is present on the requested resource. Origin &#8216;http://localhost:58018&#8217; is therefore not allowed access&#8221;. We get this error when we are trying to get some data from another origin may be via an AJAX call. In this post, we will discuss the solutions for this error in detail and we will also discuss Cross Origin Requests. Here I am going to use Visual Studio 2015, Web API 2. [&#8230;]]]></description>
										<content:encoded><![CDATA[<p>[toc]</p>
<h2>Introduction</h2>
<p>In this article we are going to few possible fixes we can apply when we get an error &#8220;Response to the preflight request doesn&#8217;t pass access control check: No &#8216;Access-Control-Allow-Origin&#8217; header is present on the requested resource. Origin &#8216;http://localhost:58018&#8217; is therefore not allowed access&#8221;. We get this error when we are trying to get some data from another origin may be via an <a href="http://sibeeshpassion.com/tag/ajax/" target="_blank" rel="noopener">AJAX </a>call. In this post, we will discuss the solutions for this error in detail and we will also discuss Cross Origin Requests. Here I am going to use <a href="http://sibeeshpassion.com/category/visual-studio/" target="_blank" rel="noopener">Visual Studio</a> 2015, Web API 2. I hope you will like this.</p>
<h2><strong>Background</strong></h2>
<p>I hosted my <a href="http://sibeeshpassion.com/category/web-api" target="_blank" rel="noopener">Web API</a> in a server, and what that API does is, it will just return the data in <a href="http://sibeeshpassion.com/tag/JSON/" target="_blank" rel="noopener">JSON </a>format. But when I try to consume this Web API via an Ajax call, I was getting the error &#8220;No &#8216;Access-Control-Allow-Origin&#8217; header is present on the requested resource&#8221;. I solved the same issues in different ways. Here I am going to share those.</p>
<h2><strong>Using the code</strong></h2>
<p>I assume that you have created a Web API and hosted it in your server. If you are new to Web API, you can always get some information from here <a href="http://sibeeshpassion.com/category/web-api" target="_blank" rel="noopener">Articles Related To Web API </a>.</p>
<p>We all will have some situations where we need to fetch some data from another domain or another site, right? If it is from the same site, you won&#8217;t be facing any issues at all. Like you are calling an Ajax call from the page www.sibeeshpassion.com/Receiver.html to www.sibeeshpassion.com/Sender.html to get the data, here the origin is same. and therefore you will get the data. What happens is when the sender and receiver are not in the same origin. Like you need to get the data from www.Microsoft.com by an Ajax call in www.sibeeshpassion.com/Receiver.html. The browser will not allow you to get the sensitive data from other domain, for the security purpose your browser will return you &#8220;No &#8216;Access-Control-Allow-Origin'&#8221;. To overcome this, we have something called Cross-Origin Resource Sharing (CORS). Basically, the process of allowing other sites to call your Web API is called CORS. According to <a href="https://www.w3.org/TR/cors/" target="_blank" rel="noopener">W3 Org</a> CORS is a standard which tells the server to allow the calls from other origins given. It is much secured than using JSONP(Previously we had been using JSON for getting the data from other domains.).</p>
<h3><strong>Fix To No Access-Control-Allow-Origin header is present</strong></h3>
<p>We can fix this issue in two ways,</p>
<ul>
<li>By using Microsoft.AspNet.WebApi.Cors</li>
<li>By adding header information in Web.config</li>
</ul>
<p>We will explain both now.</p>
<h3><strong>By using Microsoft.AspNet.WebApi.Cors</strong></h3>
<p>To work with this fix, you must include the package By using <em>Microsoft.AspNet.WebApi.Cors</em> from Manage Nuget window.</p>
<div id="attachment_11346" style="width: 644px" class="wp-caption alignnone"><a href="http://sibeeshpassion.com/wp-content/uploads/2016/03/CORS_In_Manage_NuGet_Package.png"><img fetchpriority="high" decoding="async" aria-describedby="caption-attachment-11346" class="size-large wp-image-11346" src="http://sibeeshpassion.com/wp-content/uploads/2016/03/CORS_In_Manage_NuGet_Package-1024x342.png" alt="CORS_In_Manage_NuGet_Package" width="634" height="212" srcset="/wp-content/uploads/2016/03/CORS_In_Manage_NuGet_Package-1024x342.png 1024w, /wp-content/uploads/2016/03/CORS_In_Manage_NuGet_Package-300x100.png 300w, /wp-content/uploads/2016/03/CORS_In_Manage_NuGet_Package-768x257.png 768w, /wp-content/uploads/2016/03/CORS_In_Manage_NuGet_Package-400x134.png 400w, /wp-content/uploads/2016/03/CORS_In_Manage_NuGet_Package-1795x600.png 1795w, /wp-content/uploads/2016/03/CORS_In_Manage_NuGet_Package.png 1861w" sizes="(max-width: 634px) 100vw, 634px" /></a><p id="caption-attachment-11346" class="wp-caption-text">CORS_In_Manage_NuGet_Package</p></div>
<p>Now got to App_Start folder from your solution. Then click on the file <em>WebApiConfig.cs</em>, this is the file where we set the configuration for our Web API.</p>
<div id="attachment_11347" style="width: 308px" class="wp-caption alignnone"><a href="http://sibeeshpassion.com/wp-content/uploads/2016/03/Web_API_Config_Class_File.png"><img decoding="async" aria-describedby="caption-attachment-11347" class="size-full wp-image-11347" src="http://sibeeshpassion.com/wp-content/uploads/2016/03/Web_API_Config_Class_File.png" alt="Web_API_Config_Class_File" width="298" height="221" /></a><p id="caption-attachment-11347" class="wp-caption-text">Web_API_Config_Class_File</p></div>
<p>Then you can add the preceding codes in the static function <em>Register</em>.</p>
<p>[csharp]<br />
var cors = new EnableCorsAttribute(&#8220;*&#8221;, &#8220;*&#8221;, &#8220;*&#8221;);<br />
config.EnableCors(cors);<br />
[/csharp]</p>
<p>IF you do this, the CORS will be applied globally for all the Web API controller you have. This is the easiest way of doing it. Now if you want to see the metadata of <em>EnableCorsAttribute</em>, you can see find it below.</p>
<p>[csharp]<br />
// Summary:<br />
// Initializes a new instance of the System.Web.Http.Cors.EnableCorsAttribute class.<br />
//<br />
// Parameters:<br />
// origins:<br />
// Comma-separated list of origins that are allowed to access the resource. Use<br />
// &#8220;*&#8221; to allow all.<br />
//<br />
// headers:<br />
// Comma-separated list of headers that are supported by the resource. Use &#8220;*&#8221; to<br />
// allow all. Use null or empty string to allow none.<br />
//<br />
// methods:<br />
// Comma-separated list of methods that are supported by the resource. Use &#8220;*&#8221; to<br />
// allow all. Use null or empty string to allow none.<br />
public EnableCorsAttribute(string origins, string headers, string methods);<br />
[/csharp]</p>
<p>As it is mentioned, it accepts the parameters origins, headers, methods. Here we pass * to all the three parameters to make everything to be allowable.</p>
<p>You can also try the same as below in the Register function. Here we are going to apply CORS for particular controller, which means it will be applied for all the actions in the controller. Before that make sure you have added the preceding code in your WebApiConfig.cs file</p>
<p>[csharp]<br />
config.EnableCors();<br />
[/csharp]</p>
<p>And in the API controller you need to set the origins,headers,methods as preceding.</p>
<p>[csharp]<br />
using System;<br />
using System.Collections.Generic;<br />
using System.IO;<br />
using System.Linq;<br />
using System.Net;<br />
using System.Net.Http;<br />
using System.Web.Http;<br />
using Newtonsoft.Json;<br />
using Newtonsoft.Json.Converters;<br />
using System.Configuration;<br />
using System.Data;<br />
using System.Data.SqlClient;<br />
using System.Runtime.Serialization;<br />
using System.Text;<br />
using System.Web;<br />
using System.Web.Http.Cors;</p>
<p>namespace APIServiceApplication.Controllers<br />
{</p>
<p>[EnableCors(origins: &#8220;*&#8221;, headers: &#8220;*&#8221;, methods: &#8220;*&#8221;)]<br />
public class DefaultController : ApiController<br />
{<br />
}<br />
}</p>
<p>[/csharp]</p>
<p>Make sure that you have added namespace <em>using System.Web.Http.Cors;</em> to use CORS. You can always disable CORS in an action by using <em>[DisableCors]</em>.</p>
<p>[csharp]<br />
namespace APIServiceApplication.Controllers<br />
{</p>
<p>[EnableCors(origins: &#8220;*&#8221;, headers: &#8220;*&#8221;, methods: &#8220;*&#8221;)]<br />
public class DefaultController : ApiController<br />
{<br />
[DisableCors]<br />
public string XMLData(string id)<br />
{<br />
return &#8220;Your requested product&#8221; + id;<br />
}<br />
}<br />
}<br />
[/csharp]</p>
<p>Here we have disabled CORS for the action <em>XMLData</em>. And again if you need to apply CORS only in a single action, you can do that as follows.</p>
<p>[csharp]<br />
namespace APIServiceApplication.Controllers<br />
{<br />
public class DefaultController : ApiController<br />
{<br />
[EnableCors(origins: &#8220;*&#8221;, headers: &#8220;*&#8221;, methods: &#8220;*&#8221;)]<br />
public string XMLData(string id)<br />
{<br />
return &#8220;Your requested product&#8221; + id;<br />
}<br />
}<br />
}<br />
[/csharp]</p>
<p>I hope you are aware of how to enable CORS now.</p>
<h3><strong>By adding header informations in Web.config</strong></h3>
<p>Another fix we can do is that add some tags in our Web.config file.</p>
<p>[html]<br />
&lt;system.webServer&gt;<br />
&lt;httpProtocol&gt;<br />
&lt;customHeaders&gt;<br />
&lt;add name=&#8221;Access-Control-Allow-Origin&#8221; value=&#8221;*&#8221; /&gt;<br />
&lt;add name=&#8221;Access-Control-Allow-Headers&#8221; value=&#8221;Content-Type&#8221; /&gt;<br />
&lt;add name=&#8221;Access-Control-Allow-Methods&#8221; value=&#8221;GET,POST,PUT,DELETE,OPTIONS&#8221; /&gt;<br />
&lt;add name=&#8221;Access-Control-Allow-Credentials&#8221; value=&#8221;true&#8221; /&gt;<br />
&lt;/customHeaders&gt;<br />
&lt;/httpProtocol&gt;<br />
&lt;/system.webServer&gt;<br />
[/html]</p>
<p>As you can see we have added keys with value for the listed items.</p>
<ul>
<li>Access-Control-Allow-Origin (For Origin)</li>
<li>Access-Control-Allow-Headers (For Headers)</li>
<li>Access-Control-Allow-Methods (For Methods)</li>
</ul>
<p>Now if you go to your server and check, you can see that all the things are configured perfectly. I have configured my API in my server IIS, so I am going to see my Response Header settings in IIS.</p>
<p>Go to the command window and type &#8220;inetmgr&#8221; and click OK, your IIS wilbe openeded shortly, now find your Web API which you have already configured under Default Web Site. Before doing this, please make sure that you have configured IIS in your windows. If you don&#8217;t know how to configure, I strongly recommend you to read <a href="http://sibeeshpassion.com/configure-iis-in-windows/" target="_blank" rel="noopener">Configure IIS in Windows </a>.</p>
<div id="attachment_11348" style="width: 248px" class="wp-caption alignnone"><a href="http://sibeeshpassion.com/wp-content/uploads/2016/03/Configured_Web_API_in_IIS.png"><img decoding="async" aria-describedby="caption-attachment-11348" class="size-full wp-image-11348" src="http://sibeeshpassion.com/wp-content/uploads/2016/03/Configured_Web_API_in_IIS.png" alt="Configured_Web_API_in_IIS" width="238" height="92" /></a><p id="caption-attachment-11348" class="wp-caption-text">Configured_Web_API_in_IIS</p></div>
<p>Go to Features View and double click on HTTP Response Headers under IIS category.</p>
<div id="attachment_11349" style="width: 660px" class="wp-caption alignnone"><a href="http://sibeeshpassion.com/wp-content/uploads/2016/03/HTTP_Response_Headers_In_IIS-e1457687018859.png"><img decoding="async" aria-describedby="caption-attachment-11349" class="size-full wp-image-11349" src="http://sibeeshpassion.com/wp-content/uploads/2016/03/HTTP_Response_Headers_In_IIS-e1457687018859.png" alt="HTTP_Response_Headers_In_IIS" width="650" height="455" srcset="/wp-content/uploads/2016/03/HTTP_Response_Headers_In_IIS-e1457687018859.png 650w, /wp-content/uploads/2016/03/HTTP_Response_Headers_In_IIS-e1457687018859-300x210.png 300w, /wp-content/uploads/2016/03/HTTP_Response_Headers_In_IIS-e1457687018859-400x280.png 400w" sizes="(max-width: 650px) 100vw, 650px" /></a><p id="caption-attachment-11349" class="wp-caption-text">HTTP_Response_Headers_In_IIS</p></div>
<p>You can see all the settings has been configured there.</p>
<div id="attachment_11350" style="width: 660px" class="wp-caption alignnone"><a href="http://sibeeshpassion.com/wp-content/uploads/2016/03/HTTP_Response_Headers_Available-e1457687318857.png"><img decoding="async" aria-describedby="caption-attachment-11350" class="size-full wp-image-11350" src="http://sibeeshpassion.com/wp-content/uploads/2016/03/HTTP_Response_Headers_Available-e1457687318857.png" alt="HTTP_Response_Headers_Available" width="650" height="456" srcset="/wp-content/uploads/2016/03/HTTP_Response_Headers_Available-e1457687318857.png 650w, /wp-content/uploads/2016/03/HTTP_Response_Headers_Available-e1457687318857-300x210.png 300w, /wp-content/uploads/2016/03/HTTP_Response_Headers_Available-e1457687318857-400x281.png 400w" sizes="(max-width: 650px) 100vw, 650px" /></a><p id="caption-attachment-11350" class="wp-caption-text">HTTP_Response_Headers_Available</p></div>
<h3>CORS in Asp.Net Core application</h3>
<p>Though the mechanism is the same, the way you do things in Asp.Net core application. To set the CORS in asp.net application, you should add the preceding code in your ConfigureServices method in Startup.cs file before the <em><span class="n">services</span><span class="p">.</span><span class="nf">AddMvc</span><span class="p">(); </span></em><span class="p">call</span>.</p>
<pre class="EnlighterJSRAW" data-enlighter-language="csharp">services.AddCors(cors =&gt; cors.AddPolicy("CorsPolicy", builder =&gt; {
 builder.AllowAnyHeader()
  .AllowAnyMethod()
  .AllowAnyOrigin();
}));</pre>
<p>You should also use this policy you have created in the Configure method in Startup.cs before the <em><span class="n">app</span><span class="p">.</span><span class="nf">UseMvc</span><span class="p">(); </span></em><span class="p">call.</span></p>
<pre class="EnlighterJSRAW" data-enlighter-language="csharp">app.UseCors("CorsPolicy");</pre>
<p>That&#8217;s all, now if you run your application, you will be able to fetch the data from your Web API.</p>
<h2><strong>Conclusion</strong></h2>
<p>Did I miss anything that you may think which is needed? Have you ever faced this issue? Did you try Web API yet? I hope you liked this article. Please share me your valuable suggestions and feedback.</p>
<h2><strong>Your turn. What do you think?</strong></h2>
<p>A blog isn’t a blog without comments, but do try to stay on topic. If you have a question unrelated to this post, you’re better off posting it on C# Corner, Code Project, Stack Overflow, Asp.Net Forum instead of commenting here. Tweet or email me a link to your question there and I’ll definitely try to help if I am able to.</p>
<p>Kindest Regards<br />
Sibeesh Venu</p>
]]></content:encoded>
					
					<wfw:commentRss>https://www.sibeeshpassion.com/fix-to-no-access-control-allow-origin-header-is-present-or-working-with-cross-origin-request-in-asp-net-web-api/feed/</wfw:commentRss>
			<slash:comments>11</slash:comments>
		
		
			</item>
		<item>
		<title>Configure IIS in Windows</title>
		<link>https://www.sibeeshpassion.com/configure-iis-in-windows/</link>
					<comments>https://www.sibeeshpassion.com/configure-iis-in-windows/#disqus_thread</comments>
		
		<dc:creator><![CDATA[SibeeshVenu]]></dc:creator>
		<pubDate>Wed, 30 Sep 2015 07:52:41 +0000</pubDate>
				<category><![CDATA[IIS]]></category>
		<category><![CDATA[Microsoft Windows]]></category>
		<category><![CDATA[Windows 7]]></category>
		<category><![CDATA[Windows 8.1]]></category>
		<category><![CDATA[Configure IIS in Windows]]></category>
		<category><![CDATA[Windows]]></category>
		<guid isPermaLink="false">http://sibeecst_passion.com/?p=10723</guid>

					<description><![CDATA[In this post we will discuss how we can configure IIS in windows. Here I am using windows 7, but no need to worry, the process is same for all the windows version. By default IIS will be disabled in windows. So we need to manually enable the IIS. We need to set this in control panel. Here I will share you the exact procedure to follow. I hope you will like this. Background All of you might be tried this already, but this is for the one who never worked or configured IIS. This is the first step you [&#8230;]]]></description>
										<content:encoded><![CDATA[<p>In this post we will discuss how we can configure IIS in windows. Here I am using windows 7, but no need to worry, the process is same for all the windows version. By default  IIS will be disabled in windows. So we need to manually enable the IIS. We need to set this in control panel. Here I will share you the exact procedure to follow. I hope you will like this.</p>
<p><strong>Background</strong></p>
<p>All of you might be tried this already, but this is for the one who never worked or configured IIS. This is the first step you need to do when you are going to work with IIS. </p>
<p><strong>Steps to configure IIS in windows</strong></p>
<p>Go to control panel, you can access control panel by typing the command &#8216;<em>control</em>&#8216; in the command window ( Window key+R)</p>
<div id="attachment_10724" style="width: 423px" class="wp-caption alignnone"><a href="http://sibeeshpassion.com/wp-content/uploads/2015/09/Go_to_control_panel_by_command.png"><img decoding="async" aria-describedby="caption-attachment-10724" src="http://sibeeshpassion.com/wp-content/uploads/2015/09/Go_to_control_panel_by_command.png" alt="Go to control panel by command" width="413" height="212" class="size-full wp-image-10724" srcset="/wp-content/uploads/2015/09/Go_to_control_panel_by_command.png 413w, /wp-content/uploads/2015/09/Go_to_control_panel_by_command-300x154.png 300w, /wp-content/uploads/2015/09/Go_to_control_panel_by_command-400x205.png 400w" sizes="(max-width: 413px) 100vw, 413px" /></a><p id="caption-attachment-10724" class="wp-caption-text">Go to control panel by command</p></div>
<p>Go to programs and features.</p>
<div id="attachment_10725" style="width: 644px" class="wp-caption alignnone"><a href="http://sibeeshpassion.com/wp-content/uploads/2015/09/Configure_IIS_in_Windows_1.png"><img decoding="async" aria-describedby="caption-attachment-10725" src="http://sibeeshpassion.com/wp-content/uploads/2015/09/Configure_IIS_in_Windows_1-1024x355.png" alt="Configure IIS in Windows" width="634" height="220" class="size-large wp-image-10725" srcset="/wp-content/uploads/2015/09/Configure_IIS_in_Windows_1-1024x355.png 1024w, /wp-content/uploads/2015/09/Configure_IIS_in_Windows_1-300x104.png 300w, /wp-content/uploads/2015/09/Configure_IIS_in_Windows_1-768x266.png 768w, /wp-content/uploads/2015/09/Configure_IIS_in_Windows_1-400x139.png 400w, /wp-content/uploads/2015/09/Configure_IIS_in_Windows_1.png 1304w" sizes="(max-width: 634px) 100vw, 634px" /></a><p id="caption-attachment-10725" class="wp-caption-text">Configure IIS in Windows</p></div>
<p>Click on turn windows features on or off.</p>
<div id="attachment_10726" style="width: 211px" class="wp-caption alignnone"><a href="http://sibeeshpassion.com/wp-content/uploads/2015/09/Configure_IIS_in_Windows_2.png"><img decoding="async" aria-describedby="caption-attachment-10726" src="http://sibeeshpassion.com/wp-content/uploads/2015/09/Configure_IIS_in_Windows_2.png" alt="Configure IIS in Windows" width="201" height="260" class="size-full wp-image-10726" /></a><p id="caption-attachment-10726" class="wp-caption-text">Configure IIS in Windows</p></div>
<p>Please wait for the windows to load the programs.</p>
<div id="attachment_10727" style="width: 431px" class="wp-caption alignnone"><a href="http://sibeeshpassion.com/wp-content/uploads/2015/09/Configure_IIS_in_Windows_3.png"><img decoding="async" aria-describedby="caption-attachment-10727" src="http://sibeeshpassion.com/wp-content/uploads/2015/09/Configure_IIS_in_Windows_3.png" alt="Configure IIS in Windows" width="421" height="375" class="size-full wp-image-10727" srcset="/wp-content/uploads/2015/09/Configure_IIS_in_Windows_3.png 421w, /wp-content/uploads/2015/09/Configure_IIS_in_Windows_3-300x267.png 300w, /wp-content/uploads/2015/09/Configure_IIS_in_Windows_3-400x356.png 400w" sizes="(max-width: 421px) 100vw, 421px" /></a><p id="caption-attachment-10727" class="wp-caption-text">Configure IIS in Windows</p></div>
<p>Once everything is loaded, please enable the check box near to Internet Information Services.</p>
<div id="attachment_10728" style="width: 435px" class="wp-caption alignnone"><a href="http://sibeeshpassion.com/wp-content/uploads/2015/09/Configure_IIS_in_Windows_4.png"><img decoding="async" aria-describedby="caption-attachment-10728" src="http://sibeeshpassion.com/wp-content/uploads/2015/09/Configure_IIS_in_Windows_4.png" alt="Configure IIS in Windows" width="425" height="370" class="size-full wp-image-10728" srcset="/wp-content/uploads/2015/09/Configure_IIS_in_Windows_4.png 425w, /wp-content/uploads/2015/09/Configure_IIS_in_Windows_4-300x261.png 300w, /wp-content/uploads/2015/09/Configure_IIS_in_Windows_4-400x348.png 400w" sizes="(max-width: 425px) 100vw, 425px" /></a><p id="caption-attachment-10728" class="wp-caption-text">Configure IIS in Windows</p></div>
<p>Please be noted that there are so many configurations, so I suggest you to enable which ever you need, you can see the options by extracting the tree structure.</p>
<div id="attachment_10729" style="width: 426px" class="wp-caption alignnone"><a href="http://sibeeshpassion.com/wp-content/uploads/2015/09/Configure_IIS_in_Windows_5.png"><img decoding="async" aria-describedby="caption-attachment-10729" src="http://sibeeshpassion.com/wp-content/uploads/2015/09/Configure_IIS_in_Windows_5.png" alt="Configure IIS in Windows" width="416" height="642" class="size-full wp-image-10729" srcset="/wp-content/uploads/2015/09/Configure_IIS_in_Windows_5.png 416w, /wp-content/uploads/2015/09/Configure_IIS_in_Windows_5-194x300.png 194w, /wp-content/uploads/2015/09/Configure_IIS_in_Windows_5-400x617.png 400w, /wp-content/uploads/2015/09/Configure_IIS_in_Windows_5-389x600.png 389w" sizes="(max-width: 416px) 100vw, 416px" /></a><p id="caption-attachment-10729" class="wp-caption-text">Configure IIS in Windows</p></div>
<p>Once you select the features, click on OK. That&#8217;s all IIS will be configured in few seconds. </p>
<p><strong>Conclusion</strong></p>
<p>Did I miss anything that you may think which is needed? I hope you liked this article. Please share me your valuable suggestions and feedback.</p>
<p><strong>Your turn. What do you think?</strong></p>
<p>A blog isn’t a blog without comments, but do try to stay on topic. If you have a question unrelated to this post, you’re better off posting it on C# Corner, Code Project, Stack Overflow, Asp.Net Forum instead of commenting here. Tweet or email me a link to your question there and I’ll definitely try to help if I am able to.</p>
<p>Kindest Regards<br />
Sibeesh Venu</p>
]]></content:encoded>
					
					<wfw:commentRss>https://www.sibeeshpassion.com/configure-iis-in-windows/feed/</wfw:commentRss>
			<slash:comments>3</slash:comments>
		
		
			</item>
		<item>
		<title>Solution to &#8220;Unable to Launch the IIS Express Web Server&#8221;</title>
		<link>https://www.sibeeshpassion.com/solution-to-unable-to-launch-the-iis-express-web-server/</link>
					<comments>https://www.sibeeshpassion.com/solution-to-unable-to-launch-the-iis-express-web-server/#disqus_thread</comments>
		
		<dc:creator><![CDATA[SibeeshVenu]]></dc:creator>
		<pubDate>Thu, 29 Jan 2015 19:46:06 +0000</pubDate>
				<category><![CDATA[IIS]]></category>
		<category><![CDATA[Microsoft]]></category>
		<category><![CDATA[IIS Express]]></category>
		<category><![CDATA[TFS]]></category>
		<category><![CDATA[Unable to launch IIS]]></category>
		<category><![CDATA[Unable to Launch the IIS Express Web Server]]></category>
		<category><![CDATA[Web Server]]></category>
		<guid isPermaLink="false">https://sibeeshpassion.com/?p=991</guid>

					<description><![CDATA[This article will help you to overcome the error Unable to Launch the IIS Express Web Server. Today I encountered the issue “Unable to launch the IIS Express Web Server” while I was running my Visual Studio 2012. So I thought of sharing how to resolve that issue. I hope it will help someone. Background In my team we have 5 to 10 members. Since we wanted to do a build for our current application, I used “Get the Latest files from the server”. (We are using TFS.) Then when I run my application I was getting this error. The [&#8230;]]]></description>
										<content:encoded><![CDATA[<p>This article will help you to overcome the error Unable to Launch the IIS Express Web Server. Today I encountered the issue “Unable to launch the IIS Express Web Server” while I was running my Visual Studio 2012. So I thought of sharing how to resolve that issue. I hope it will help someone.</p>
<div id="attachment_10673" style="width: 359px" class="wp-caption alignnone"><a href="http://sibeeshpassion.com/wp-content/uploads/2015/01/solution-to-unable-to-launch-the-iis-express-web-server1.jpg"><img decoding="async" aria-describedby="caption-attachment-10673" src="http://sibeeshpassion.com/wp-content/uploads/2015/01/solution-to-unable-to-launch-the-iis-express-web-server1.jpg" alt="Unable to Launch the IIS Express Web Server" width="349" height="188" class="size-full wp-image-10673" srcset="/wp-content/uploads/2015/01/solution-to-unable-to-launch-the-iis-express-web-server1.jpg 349w, /wp-content/uploads/2015/01/solution-to-unable-to-launch-the-iis-express-web-server1-300x162.jpg 300w" sizes="(max-width: 349px) 100vw, 349px" /></a><p id="caption-attachment-10673" class="wp-caption-text">Unable to Launch the IIS Express Web Server</p></div>
<p><strong>Background</strong></p>
<p>In my team we have 5 to 10 members. Since we wanted to do a build for our current application, I used “Get the Latest files from the server”. (We are using TFS.) Then when I run my application I was getting this error.</p>
<p>The cause of this error is, someone has checked in the solution file with his port number (the port number he was using). When I took the latest, it was set in my solution file also. We must take the latest solution file only when it is required. So here I will share the remedy for the preceding issue.</p>
<p><strong>Procedure to solve this issue</strong></p>
<p><em>Step 1</em></p>
<p>Right-click on your solution and select Properties as shown in the following figure.</p>
<div id="attachment_10674" style="width: 529px" class="wp-caption alignnone"><a href="http://sibeeshpassion.com/wp-content/uploads/2015/01/solution-to-unable-to-launch-the-iis-express-web-server2.jpg"><img decoding="async" aria-describedby="caption-attachment-10674" src="http://sibeeshpassion.com/wp-content/uploads/2015/01/solution-to-unable-to-launch-the-iis-express-web-server2.jpg" alt="Unable to Launch the IIS Express Web Server" width="519" height="768" class="size-full wp-image-10674" srcset="/wp-content/uploads/2015/01/solution-to-unable-to-launch-the-iis-express-web-server2.jpg 241w, /wp-content/uploads/2015/01/solution-to-unable-to-launch-the-iis-express-web-server2-203x300.jpg 203w, /wp-content/uploads/2015/01/solution-to-unable-to-launch-the-iis-express-web-server2-400x592.jpg 400w, /wp-content/uploads/2015/01/solution-to-unable-to-launch-the-iis-express-web-server2-405x600.jpg 405w" sizes="(max-width: 519px) 100vw, 519px" /></a><p id="caption-attachment-10674" class="wp-caption-text">Unable to Launch the IIS Express Web Server</p></div>
<p><em>Step 2</em></p>
<p>Select “Web” from the left menu.</p>
<div id="attachment_10675" style="width: 634px" class="wp-caption alignnone"><a href="http://sibeeshpassion.com/wp-content/uploads/2015/01/solution-to-unable-to-launch-the-iis-express-web-server3.jpg"><img decoding="async" aria-describedby="caption-attachment-10675" src="http://sibeeshpassion.com/wp-content/uploads/2015/01/solution-to-unable-to-launch-the-iis-express-web-server3.jpg" alt="Unable to Launch the IIS Express Web Server" width="624" height="489" class="size-full wp-image-10675" srcset="/wp-content/uploads/2015/01/solution-to-unable-to-launch-the-iis-express-web-server3.jpg 456w, /wp-content/uploads/2015/01/solution-to-unable-to-launch-the-iis-express-web-server3-300x235.jpg 300w, /wp-content/uploads/2015/01/solution-to-unable-to-launch-the-iis-express-web-server3-400x313.jpg 400w" sizes="(max-width: 624px) 100vw, 624px" /></a><p id="caption-attachment-10675" class="wp-caption-text">Unable to Launch the IIS Express Web Server</p></div>
<p><em>Step 3</em></p>
<p>Under “Use local IIS server” change the port number from http://localhost:58030/ to another one.</p>
<div id="attachment_10676" style="width: 634px" class="wp-caption alignnone"><a href="http://sibeeshpassion.com/wp-content/uploads/2015/01/solution-to-unable-to-launch-the-iis-express-web-server4.jpg"><img decoding="async" aria-describedby="caption-attachment-10676" src="http://sibeeshpassion.com/wp-content/uploads/2015/01/solution-to-unable-to-launch-the-iis-express-web-server4.jpg" alt="Unable to Launch the IIS Express Web Server" width="624" height="481" class="size-full wp-image-10676" srcset="/wp-content/uploads/2015/01/solution-to-unable-to-launch-the-iis-express-web-server4.jpg 463w, /wp-content/uploads/2015/01/solution-to-unable-to-launch-the-iis-express-web-server4-300x231.jpg 300w, /wp-content/uploads/2015/01/solution-to-unable-to-launch-the-iis-express-web-server4-400x308.jpg 400w" sizes="(max-width: 624px) 100vw, 624px" /></a><p id="caption-attachment-10676" class="wp-caption-text">Unable to Launch the IIS Express Web Server</p></div>
<p><em>Step 4</em></p>
<p>Here I have changed http://localhost:58030/ to http://localhost:58031/ .</p>
<p>Bingo! We have done it.</p>
<div id="attachment_10677" style="width: 634px" class="wp-caption alignnone"><a href="http://sibeeshpassion.com/wp-content/uploads/2015/01/solution-to-unable-to-launch-the-iis-express-web-server5.jpg"><img decoding="async" aria-describedby="caption-attachment-10677" src="http://sibeeshpassion.com/wp-content/uploads/2015/01/solution-to-unable-to-launch-the-iis-express-web-server5.jpg" alt="Unable to Launch the IIS Express Web Server" width="624" height="366" class="size-full wp-image-10677" srcset="/wp-content/uploads/2015/01/solution-to-unable-to-launch-the-iis-express-web-server5.jpg 609w, /wp-content/uploads/2015/01/solution-to-unable-to-launch-the-iis-express-web-server5-300x176.jpg 300w, /wp-content/uploads/2015/01/solution-to-unable-to-launch-the-iis-express-web-server5-400x235.jpg 400w" sizes="(max-width: 624px) 100vw, 624px" /></a><p id="caption-attachment-10677" class="wp-caption-text">Unable to Launch the IIS Express Web Server</p></div>
<p><em>Step 5</em></p>
<p>Now please run again your application. The issue will be solved.</p>
<p><strong>Conclusion</strong></p>
<p>Did I miss anything that you may think which is needed? Have you ever faced this issue? Does this solution solve your issue?I hope you liked this article. Please share me your valuable suggestions and feedback.</p>
<p><strong>Your turn. What do you think?</strong></p>
<p>A blog isn’t a blog without comments, but do try to stay on topic. If you have a question unrelated to this post, you’re better off posting it on C# Corner, Code Project, Stack Overflow, Asp.Net Forum instead of commenting here. Tweet or email me a link to your question there and I’ll definitely try to help if I am able to.</p>
<p>Kindest Regards<br />
Sibeesh Venu</p>
]]></content:encoded>
					
					<wfw:commentRss>https://www.sibeeshpassion.com/solution-to-unable-to-launch-the-iis-express-web-server/feed/</wfw:commentRss>
			<slash:comments>14</slash:comments>
		
		
			</item>
	</channel>
</rss>
