Geeks With Blogs
Developers Friendly IIS
Windows Authentication in Asp.Net Web Application
When we are building any intranet web application, it is always better go with windows authentication in order to authenticate user against AD(Active Directory). With windows authentication enabled its very easy to authenticate and authorize user. To enable Windows Authentication in Asp.Net web application below changes need to be done: Set authentication mode to “Windows” and impersonate to “True” in web.config file under <system.web> node Or the same can be done in IIS. For that, select web ......

Posted On Tuesday, September 23, 2014 12:57 AM

Starting and stopping Application Pool using Powershell
Hi,Providing sample powershell script to start and stop Application Pool of an application hosted in IIS.* Save the below script in a file called as IISCmds.ps1#Start To Start Application Pool Function fnStartApplicationPool([str... { import-module WebAdministration if((Get-WebAppPoolState $appPoolName).Value -ne 'Started') { Start-WebAppPool -Name $appPoolName } } #End To Start Application Pool#Start To Stop Application Pool Function fnStopApplicationPool([stri... { import-module ......

Posted On Thursday, January 16, 2014 4:29 AM

Creating website in remote server using PowerShell from .NET application
Hi,Through this post i am trying to demonstrate how to access remote server and create web applications on any given server using PowerShell script from .NET application. Which involves passing values as parameters and executing ps1 script and accessing result set returned from ps1 script.The same can be achieved using .Net class "ServerManager" class, however which requires lot of settings that need to be done and we might get into lot of permission issues.Below is the sample code to call ps1 script ......

Posted On Friday, January 3, 2014 1:53 AM

Hosting WCF Service on IIS8
With this article, i am trying to elaborate the problems i faced while hosting WCF service on a Windows Server and on an IIS8. Hope this helps any one. Step1: Once I setup an application in IIS and try to browse, i got below error. This Error shows up as dependency dll was not available on server machine. Problem 1: Could not load file or assembly 'Microsoft.Web.Infrastructure, Version=1.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad36... or one of its dependencies. The system cannot find the ......

Posted On Sunday, December 8, 2013 12:35 PM

Copyright © Manjunath K | Powered by: GeeksWithBlogs.net