Subscribe:

Labels

How To Host A Asp.Net Website In IIS 7

Many of you are using visual studio to develop webapplication in asp.net.To run your web application from visual studio is a one click process.You just click on the link and and your webpplication runs in the browser.But think about the situation when you want to run the website to the another computer which do not have visual studio.When you want to run your webapllication to another computer you need Internet Information Service(IIS) which is already installed in window OS.
  • First of all goto the control panel->Programs and Features->Turn windows feature on or off.
  • Check Internet Information Services and everything under FTP Server,Web Management Tools,IIS6 Management Compatibility,World Wide Web Services(everything under it also) and also check Internet Information Services Hostable Web Core.
  • Press Ok button.It will take some time to apply.
  • Now in your C(or the drive in which OS is installed) folder name inetpub is created.
  • Goto the visual studio.Open your webapllication and goto build menu->publish website.If you want to save solution file then click on save or otherwise click cancel.Now it will ask for target location for publishing site.I am giving C:\Users\Anup\Desktop\sitename where Sitename is the name you want to give name to the published folder.
  • Folder will be created in your desktop having sitename(Whatever you have given).Now copy that folder and goto C->inetpub->wwwroot and paste your copied folder there.
  • Open IIS manager by typing inetmgr into run prompt.Expand left side directory and you will find Sites directory.Right click on it and choose Add Website.
  • Give site name,I have given testsite.In the physical path give path of your published folder which is now located in wwwroot directory.Change your port number,I am changing it to 84.Because if you have installed software like wamp server it takes port 80 as default port.So your site will not run.
  • Your site will be added to the Sites directory.Now single click on Application Pools and select your sitename from list and right click on your sitename(Here I am clicking on testsite) ,select advanced setting->Process Model->Identity.
  • Smarttag will appear , click on it and select LocalSysytem from dropdown box instead ApplicationPollIdentity.Press Ok two times and come out from application pool.
  • Now right click on your site(mine is Sites->testsite) located in your Sites directory.Goto to Manage Web Site->Browse and you are done.

14 comments:

  1. That was a great message in my carrier, and It's wonderful commands like mind relaxes with understand words of knowledge by information's.

    python training in chennai | python training in bangalore

    python online training | python training in pune

    ReplyDelete
  2. Hello I am so delighted I found your blog, I really found you by mistake, while I was looking on Yahoo for something else, anyways I am here now and would just like to say thanks for a tremendous post. Please do keep up the great work.
    python online training
    python training in OMR
    python training course in chennai

    ReplyDelete
  3. The site was so nice, I found out about a lot of great things. I like the way you make your blog posts. Keep up the good work and may you gain success in the long run.

    angularjs Training

    in chennai

    angularjs Training in chennai

    angularjs-Training in tambaram

    angularjs-Training in sholinganallur

    angularjs-Training in velachery

    ReplyDelete

  4. Hmm, it seems like your site ate my first comment (it was extremely long) so I guess I’ll just sum it up what I had written and say, I’m thoroughly enjoying your blog. I as well as an aspiring blog writer, but I’m still new to the whole thing. Do you have any recommendations for newbie blog writers? I’d appreciate it.

    AWS Interview Questions And Answers

    AWS Training in Bangalore | Amazon Web Services Training in Bangalore

    AWS Training in Pune | Best Amazon Web Services Training in Pune

    Amazon Web Services Training in Pune | Best AWS Training in Pune

    AWS Online Training | Online AWS Certification Course - Gangboard

    ReplyDelete
  5. This is a terrific article, and that I would really like additional info if you have got any. I’m fascinated with this subject and your post has been one among the simplest I actually have read...

    Java Training in Chennai
    Python Training in Chennai
    IOT Training in Chennai
    Selenium Training in Chennai
    Data Science Training in Chennai
    FSD Training in Chennai
    MEAN Stack Training in Chennai

    ReplyDelete
  6. You got an extremely helpful website I actually have been here reading for regarding an hour. I’m an initiate and your success is incredibly a lot of a concept on behalf of me.
    devops online training

    aws online training

    data science with python online training

    data science online training

    rpa online training

    ReplyDelete
  7. The site was so nice, I found out about a lot of great things. I like the way you make your blog posts. Keep up the good work and may you gain success in the long run.

    Microsoft Azure online training
    Selenium online training
    Java online training
    Python online training
    uipath online training

    ReplyDelete
  8. Your info is really amazing with impressive content..Excellent blog with informative concept. Really I feel happy to see this useful blog, Thanks for sharing such a nice blog..
    If you are looking for any python Related information please visit our website python training institutes in Bangalore page!

    ReplyDelete
  9. http://techknowguide.blogspot.com/2012/01/how-to-host-aspnet-website-in-iis-7.html

    ReplyDelete