IIS- Still learning!
Dec17

IIS- Still learning!

Welcome to CodeSpread! Whenever we receive some error which is related to IIS, we just jump on internet as we lack the basic concepts of IIS and i can definitely say that we almost ignore IIS and focus ourselves on development and coding. Then Why not learn IIS today? I would share my knowledge and request all of you to share your bit or you can send your articles/abstracts to admin@codepsread.com also. What is IIS? IIS- Wikipedia says “Internet Information Services (IIS) – formerly called Internet Information Server – is an app server application and set of feature extension modules created by Microsoft for use with Microsoft Windows.” Just check out the terms, application, set of feature extension modules, this means it is a program or component running on a windows platform which provides us all the features or additional features required to host our website. In real world, a regular machine running a windows server operating system is equivalent to a ‘server’ and if IIS is installed on this server and sites are hosted on IIS, then this server will be equivalent to web server. Simple enough! It is a Microsoft product so it is tightly coupled to Windows platform and second it was targeted to compete in Internet server market with already existing giants like Apache, so it has captured all the existing features and provided additional features also. What is the role of IIS? Role is played by a character in a story, IIS is our character here, and the story is Application Life Cycle. In this story, there are many characters and IIS is the first and major character which plays host to any request coming to it and sends it to the processing pipelines. Figure shows communication of client and server over HTTP , server receives requests on Port 80 and if the protocol is HTTPS, port will be 443. Although, I have skipped the DNS part but we will cover it sometime in future. How IIS looks like? Go to Windows->Run->type inetmgr [Before that check whether IIS is installed or enabled on your system, Refer this article] IIS Panel has three groups: ASP.Net, IIS and Management. Out of these 3, two are visible in above image. ASP.NET Includes tasks related to managing tasks related to ASP.NET like connection strings,SMTP email etc. IIS Includes tasks related to managing sites and applications  like Modules, Handlers etc. Management Includes tasks related to configuring administrative roles, delegation, and remote administration. How it works? Once the request is received by IIS, it follows the below process. IIS runs a process, inetinfo.exe, which processes the request as per its...

Read More
IIS Pre-Article
Dec16

IIS Pre-Article

I thought of sharing few articles on IIS so when I started my mission, I realized that there should be some basic tasks related to IIS which needs to be done by the user before diving deep into IIS, So here is the first pre-article. Check whether IIS is installed or not? Go to Start->Run type inetmgr and press OK Check, if this screen appears.   Second way to check. Go to Control Panel > Programs and Features > and look for IIS in the list of installed components. Third way to check. Go to Run->Services.msc and enter check for the IIS ADMIN service in this services window.   If any of these options doesn’t show the desired screen , Either IIS is not enabled or installed or corrupted. How can IIS be turned ON? Control Panel > Programs and Features > Turn Windows Features On or Off > Check IIS box.   Installation of IIS: IIS is tightly coupled to operating system on which it is going to run for ex: 5.0 Built-in component of Windows 2000. Windows 2000 5.1 Built-in component of Windows XP Professional. Windows XP Professional 6.0 Built-in component of Windows Server 2003. WIndows Server 2003 7.0 Built-in component of Windows Vista and Windows Server 2008. Windows Vista and WIndows Server 2008 7.5 Built-in component of Windows Server 2008 R2/ Windows7 [Not basic edition] refer: http://support.microsoft.com/kb/224609 So, our headache is over, there is no need to install IIS as it comes with IIS pre-installed, we just have to turn it ON. Thanks Guys! Wait for the IIS...

Read More

How to create a MVC 2 Project in VS2010?

How to create a MVC 2 Project in VS2010? 1. Open VS2010. 2. Select File -> New Project. 3. Select Visual C# -> Web -> ASP.NET MVC 2 Empty Web Application. Name it as MyMvcApplication. Click ‘OK’. 4. To Add a controller, right click Controllers. Select Add -> Controller 5. Name the controller as ‘HomeController’. Click ‘Add’. 6. The controller page will look like shown below. 7. To Add the Index, right click on anywhere on the Index() method. Click ‘Add View’. 8. The below screen will be shown. Unselect ‘Select master page’ and click on ‘Add’. 9. The Index view will be added and will be shown as below. 10. Type the text “Hello! This is My MVC Application.” within the tags. 11. Press ‘F5’ to run the application. The browser will open as in screen...

Read More

Windiff saved my effort. How it is useful?

While working with TFS [Team foundation server],we get used of the compare feature to compare the ‘local version’, ‘server version’,’workspace version’. We had some similar situation when we received two versions of file and we were not sure which is the updated one and what all changes have been introduced. As these files were not part of TFS so as a regular developer, we tried to avoid any manual check and started Google to download a tool which can do our job. We were successful in doing the same and our work was over. But i find a post in Microsoft support forum which indicated that windows sdk comes with such a utility. Lets see our program files. Its called WINDIFF. How to use WinDiff? We opened it and we found out that many options are available. Though we were required to compare only files, i was happy seeing other options as well. We selected ‘Compare files’ option, one dialog box opened and we selected our first file, without wasting time, again dialog box opened and it took us few seconds to realize that we have to select one more file for comparison. we got surprised by the feature of two dialog box back to back. For demo purpose, i selected same file twice and voila! i started liking this utility. Look at the ‘identical’ message. This time,i selected different files and look at the response. As i stated earlier, there is much more that this tool can offer, i have written only one of the features, please experiment with this tool and get acquainted with it. It is certainly one of the most useful tool around. WinDiff is Cool! Technorati Sign:...

Read More

How to create database with SQL express bundled with Visual Studio?

Yes, Visual studio comes bundled with a copy of SQL express edition which gets installed during visual studio installation. These steps are required to create database with SQL express bundled with Visual Studio. So guys, I request you all to please perform these steps while reading this article. View Server Explorer Add a Server Server Details Create Database Database details Choose Add Connection Add Connection Connection Properties Click on at least one image to start the slideshow Refer Slide 1,To view the SQL express,Click on ‘View’ -> ‘Server Explorer’. Refer Slide 2, Right Click on ‘Servers’ and select ‘Add a Server’. Refer Slide 3, Write Server Name in the Dialog, In this case, you have to write your machine name. Refer Slide 4,To create a database,Right Click on Data Connections and select “Create SQL server database”. Refer Slide 5, In the dialog box, select  server name from the list, select the authentication you want to use and provide a new database name. Refer Slide 6, To create a connection,Right Click on Data Connections and select “Add Connection”. Refer Slide 7,In “Choose Data Source” dialog box, select “Microsoft SQL Server”, data provider will get filled simultaneously.Click continue. Refer Slide 8, Fill Connection properties in the dialog box, select server name from the list. Once server is selected, “Connect to database” section gets activated,  select database and click “Test Connection”. Comments...

Read More