Basic points to remember when publishing
Publishing
==========
Right click project
Click Publish
now do the following steps
publish method - web deploy
service url = localhost
site/application = Default Web Site
click publish and thats all
Note: To do this you should be administrator, you can open VS as Run as Administrator by right clicking VS
Configuring IIS
===============
Click Windowkey+R to open run
type inetmgr to open iis
now left side connections open upto domain->Sites->Default Web Site
now you can see your project
if project icon showing as folder then "convert to application" by right click
right click your project Manage application->browse (or simply right side actions browse)
now your URL will open in browser
now you type your page name ex:- http://localhost:XXXX/applicationname/default.aspx
if you found any error then check in web config & application pool
Application pool settings
=========================
click your project in Default Web Site
Click Basic settings at right side actions
Check application pool is your .net framework same or click select & choose your framwork (ex:-.net framework v4.0.30319)
Web Config Settings
===================
you can check in two ways
before publish check web config and publish
or right click your project in Default web site and click Explore
now you can edit your web config (if not editable uncheck the readonly field from properties)
I will update the sample images as well soon. If you want to add points more you can comment me..
Balajiprasad
No comments:
Post a Comment