Click here to Skip to main content
15,887,485 members
Articles / Web Development / ASP.NET
Tip/Trick

SP Beginners Part 1 – Create a Web Application on Farm and Getting It Functioning in Visual Studio

Rate me:
Please Sign up or sign in to vote.
4.50/5 (2 votes)
15 May 2015CPOL1 min read 8.7K   4  
Steps to create a web application on your farm.

Introduction

This tip lists the steps to create a web application on your farm.

Using the Code

  1. Go to central administration and select ‘Application Management’.
  2. From the Ribbon, select ‘New’.
  3. From the opening window, give ‘Host Header’ any name. I have given ‘ta.myfirstsite.com’.

    Image 1

  4. Scroll down to the very bottom and click OK. Do not change anything else other than the Host header. It will take some time and then another small window pops up, Click OK and then you will see the newly created SharePoint site on the screen as shown below:

    Image 2

  5. If you try to copy paste the URL and try to see the site, it will not work. This is because still you have not created a siteCollection for the new Site.
  6. For that, go back to Browser and in Central administration, click Application management and then under Site Collection, click Create site collection.

    Image 3

  7. From the opening window, firstly get the newly created site to ‘web application dropdown’, then locate ‘Define Managed Paths’ under Web Site Address and click it.

    Image 4

  8. Give a SiteCollection Name and click OK. I have given ‘mySiteCollection’.

    Image 5

  9. Then come back to ‘create new sitecollection’ and make the following changes as shown in the below image.

    Image 6

  10. Scroll to the bottom and find “Primary Site Collection Administrator” and enter the UserName. Finally, click OK.
  11. If all went right, you will get a similar screen:  

    Image 7

  12. If you click this link, it will still not load your site. So you just need to locate your “etc” folder and edit the “hosts” and modify it.

    Locating your’ etc’ folder

    C:\Windows\System32\Drivers\etc

    Open the ‘hosts’ in Notepad and add the following line (<localhost ip address> <site name>) as shown in the image.

    Image 8

License

This article, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)


Written By
Software Developer
Sri Lanka Sri Lanka
Hi
I am a professional developer with a working experience in .NET (VB and C#, WinForms, MVC, Entity Framework, SharePoint), JavaScript, SAP development and SQL Server.

Comments and Discussions

 
-- There are no messages in this forum --