![Page 1: Web Apps and Internet Information Serviceshome.hit.no/~hansha/documents/software/software_development/topics...Web Apps and Internet Information Services (IIS) ... Client-Server Example](https://reader031.vdocuments.us/reader031/viewer/2022030413/5a9f2a727f8b9a0d158c7c2a/html5/thumbnails/1.jpg)
WebAppsandInternetInformationServices(IIS)
Hans-PetterHalvorsen,M.Sc.
WebServerDeployment
![Page 2: Web Apps and Internet Information Serviceshome.hit.no/~hansha/documents/software/software_development/topics...Web Apps and Internet Information Services (IIS) ... Client-Server Example](https://reader031.vdocuments.us/reader031/viewer/2022030413/5a9f2a727f8b9a0d158c7c2a/html5/thumbnails/2.jpg)
Contents• IntroductiontoWebApps– HTMLExample
• IntroductiontoASP.NET– ASP.NETExample
• IntroductiontoWebServers• InternetInformationServices(IIS)– DeployaHTMLWebSitetoIIS– DeployanASP.NETWebApptoIIS
![Page 3: Web Apps and Internet Information Serviceshome.hit.no/~hansha/documents/software/software_development/topics...Web Apps and Internet Information Services (IIS) ... Client-Server Example](https://reader031.vdocuments.us/reader031/viewer/2022030413/5a9f2a727f8b9a0d158c7c2a/html5/thumbnails/3.jpg)
WebPlatforms
PCswithWebBrowsers
ClientsServers
TheCloud/Internet/Local
Network
WebServers
DatabaseServers
HTML
HTML
![Page 4: Web Apps and Internet Information Serviceshome.hit.no/~hansha/documents/software/software_development/topics...Web Apps and Internet Information Services (IIS) ... Client-Server Example](https://reader031.vdocuments.us/reader031/viewer/2022030413/5a9f2a727f8b9a0d158c7c2a/html5/thumbnails/4.jpg)
WebApps
Hans-PetterHalvorsen,M.Sc.
![Page 5: Web Apps and Internet Information Serviceshome.hit.no/~hansha/documents/software/software_development/topics...Web Apps and Internet Information Services (IIS) ... Client-Server Example](https://reader031.vdocuments.us/reader031/viewer/2022030413/5a9f2a727f8b9a0d158c7c2a/html5/thumbnails/5.jpg)
WebBrowsers
MicrosoftEdge
InternetExplorer
Chrome
Opera
Firefox
Safari
![Page 6: Web Apps and Internet Information Serviceshome.hit.no/~hansha/documents/software/software_development/topics...Web Apps and Internet Information Services (IIS) ... Client-Server Example](https://reader031.vdocuments.us/reader031/viewer/2022030413/5a9f2a727f8b9a0d158c7c2a/html5/thumbnails/6.jpg)
HTML• HyperTextMarkupLanguage(HTML)• TheVisualAppearanceofaWebSite• “WebBrowserLanguage”:AllWebBrowserunderstandHTML
• HTML5isthelatest• MaintainedbyW3C
- WorldWideWebConsortium
<!DOCTYPE html><html><body>
<h1>My First Heading</h1>
<p>My first paragraph.</p>
</body></html>
![Page 7: Web Apps and Internet Information Serviceshome.hit.no/~hansha/documents/software/software_development/topics...Web Apps and Internet Information Services (IIS) ... Client-Server Example](https://reader031.vdocuments.us/reader031/viewer/2022030413/5a9f2a727f8b9a0d158c7c2a/html5/thumbnails/7.jpg)
WYSIWYGHTMLEditors• AdobeDreamweaver(MonthlyPayment)• Kompozer (Free)• Bluegriffon (Free)• Sparkle($80),etc...OtherHTMLEditors(notWYSIWYG)• VisualStudio(ASP.NET)• CoffeeCup ($69,FreeTrial)• Coda($99)• ...
WYSIWYG– WhatYouSeeIsWhatYouGetYoudontneedtoknowHTMLsyntax- ItsjustlikeusingMSWord.
Onlypossible tochangetheHTMLsourcecodeandthenselect“Preview”inordertoseehowitlookslikeinaWebBrowser.YouneedtoknowHTMLsyntax
![Page 8: Web Apps and Internet Information Serviceshome.hit.no/~hansha/documents/software/software_development/topics...Web Apps and Internet Information Services (IIS) ... Client-Server Example](https://reader031.vdocuments.us/reader031/viewer/2022030413/5a9f2a727f8b9a0d158c7c2a/html5/thumbnails/8.jpg)
HTML
JavaScriptCSS
WebProgramming
UseHTML todefinethecontentofwebpages
UseCSS tospecifythelayoutofwebpages
TheWebProgrammingTriangle
UseJavaScript toprogramthebehaviorofwebpages
![Page 9: Web Apps and Internet Information Serviceshome.hit.no/~hansha/documents/software/software_development/topics...Web Apps and Internet Information Services (IIS) ... Client-Server Example](https://reader031.vdocuments.us/reader031/viewer/2022030413/5a9f2a727f8b9a0d158c7c2a/html5/thumbnails/9.jpg)
CSS
JavaScriptWeb
Server
![Page 10: Web Apps and Internet Information Serviceshome.hit.no/~hansha/documents/software/software_development/topics...Web Apps and Internet Information Services (IIS) ... Client-Server Example](https://reader031.vdocuments.us/reader031/viewer/2022030413/5a9f2a727f8b9a0d158c7c2a/html5/thumbnails/10.jpg)
WebArchitecture
WebServer
WebBrowserHTML JavaScriptCl
ient
CSS
Server-side
InternetExplorer Chrome Firefox Opera Safari
MicrosoftEdge
![Page 11: Web Apps and Internet Information Serviceshome.hit.no/~hansha/documents/software/software_development/topics...Web Apps and Internet Information Services (IIS) ... Client-Server Example](https://reader031.vdocuments.us/reader031/viewer/2022030413/5a9f2a727f8b9a0d158c7c2a/html5/thumbnails/11.jpg)
Client-ServerExample
Database
Client
WebServer
Request
Response
WebBrowser
InternetInformationServices(IIS),Apache,etc.
![Page 12: Web Apps and Internet Information Serviceshome.hit.no/~hansha/documents/software/software_development/topics...Web Apps and Internet Information Services (IIS) ... Client-Server Example](https://reader031.vdocuments.us/reader031/viewer/2022030413/5a9f2a727f8b9a0d158c7c2a/html5/thumbnails/12.jpg)
<!DOCTYPE html><html><body>
<h1>My First Heading</h1>
<p>My first paragraph.</p>
</body></html>
WebPlatform
Client-side
Server-side
WebBrowser
WebServer
WebPage(HTML)
HTML,CSS,JavaScript
ASP.NET,PHP,...InternetInformationServices(IIS),Apache,etc.
ThecoderunsontheserveranditsconvertedtoHTMLbeforesending totheclient(Web
Browser)
TheWebBrowsercreatesthevisualwebpageyouseeinthebrowserbasedontheHTMLcode
![Page 13: Web Apps and Internet Information Serviceshome.hit.no/~hansha/documents/software/software_development/topics...Web Apps and Internet Information Services (IIS) ... Client-Server Example](https://reader031.vdocuments.us/reader031/viewer/2022030413/5a9f2a727f8b9a0d158c7c2a/html5/thumbnails/13.jpg)
Example
Hans-PetterHalvorsen,M.Sc.
HTMLWebPage
![Page 14: Web Apps and Internet Information Serviceshome.hit.no/~hansha/documents/software/software_development/topics...Web Apps and Internet Information Services (IIS) ... Client-Server Example](https://reader031.vdocuments.us/reader031/viewer/2022030413/5a9f2a727f8b9a0d158c7c2a/html5/thumbnails/14.jpg)
SimpleHTMLPageExample
14
<!DOCTYPE html><html><body>
<h1>My First Heading</h1>
<p>My first paragraph.</p>
</body></html>
HTMLCode
WebBrowser:
![Page 15: Web Apps and Internet Information Serviceshome.hit.no/~hansha/documents/software/software_development/topics...Web Apps and Internet Information Services (IIS) ... Client-Server Example](https://reader031.vdocuments.us/reader031/viewer/2022030413/5a9f2a727f8b9a0d158c7c2a/html5/thumbnails/15.jpg)
InthisExamplewewillcreateasimpleHTMLpageusingNotepadonly
Saveas.htmfileandopenfromFileExplorer
![Page 16: Web Apps and Internet Information Serviceshome.hit.no/~hansha/documents/software/software_development/topics...Web Apps and Internet Information Services (IIS) ... Client-Server Example](https://reader031.vdocuments.us/reader031/viewer/2022030413/5a9f2a727f8b9a0d158c7c2a/html5/thumbnails/16.jpg)
InthisExamplewewillcreateasimpleHTMLpageusingNotepadonly
![Page 17: Web Apps and Internet Information Serviceshome.hit.no/~hansha/documents/software/software_development/topics...Web Apps and Internet Information Services (IIS) ... Client-Server Example](https://reader031.vdocuments.us/reader031/viewer/2022030413/5a9f2a727f8b9a0d158c7c2a/html5/thumbnails/17.jpg)
ASP.NETWebApps
Hans-PetterHalvorsen,M.Sc.
![Page 18: Web Apps and Internet Information Serviceshome.hit.no/~hansha/documents/software/software_development/topics...Web Apps and Internet Information Services (IIS) ... Client-Server Example](https://reader031.vdocuments.us/reader031/viewer/2022030413/5a9f2a727f8b9a0d158c7c2a/html5/thumbnails/18.jpg)
WebServer
ASP.NETC#/VB.NET
.NETFramework
WebBrowser
HTML JavaScriptServer-side
Client
ASP.NET
CSS
Theserver-sideASP.NETpagesareconvertedontheservertoHTMLpagesbeforeitissenttotheclient
ASP.NETisusedtocreatedynamicwebpages
![Page 19: Web Apps and Internet Information Serviceshome.hit.no/~hansha/documents/software/software_development/topics...Web Apps and Internet Information Services (IIS) ... Client-Server Example](https://reader031.vdocuments.us/reader031/viewer/2022030413/5a9f2a727f8b9a0d158c7c2a/html5/thumbnails/19.jpg)
WebSites
ASP.NETC#/VB.NET
.NETFramework
ASP.NETWebPages
ASP.NETWebForms
ASP.NETMVC
ASP.NET– DifferentwaysofcreatingWebSiteswithASP.NET
http://www.asp.net
Youcanuse(atleast)3differentapproacheswhencreatingWebSiteswithASP.NET
![Page 20: Web Apps and Internet Information Serviceshome.hit.no/~hansha/documents/software/software_development/topics...Web Apps and Internet Information Services (IIS) ... Client-Server Example](https://reader031.vdocuments.us/reader031/viewer/2022030413/5a9f2a727f8b9a0d158c7c2a/html5/thumbnails/20.jpg)
ASP.NETWebPages
ASP.NETWebForms
ASP.NETMVC
• SimilartothedesktopdevelopmentmodelusedinWPF• GUI(*.aspx files)andCode(*.aspx.cs)separatedindiff.Files• ForthosewhoarefamiliarwithWinForms,.NET,WPF,etc.
• MVC– Model- View– Controller• Anewdevelopmentmodelwhereyousplityourdevelopment
into3parts/components:ModelsforData,ViewsforDisplayandControllersforInput.For“Advanced”Developers
• SingePageModel(Theserver-sidecodeismixedinbetweentheHTML)
• UsestheRazorsyntax(.cshtmlfiles)• SimiliarasClassicASPandPHP• AtoolcalledMicrosoftWebMatrixisoptimizedforthis
developmentmodel,butyoucanalsouseVisualStudioifyouwantto.
![Page 21: Web Apps and Internet Information Serviceshome.hit.no/~hansha/documents/software/software_development/topics...Web Apps and Internet Information Services (IIS) ... Client-Server Example](https://reader031.vdocuments.us/reader031/viewer/2022030413/5a9f2a727f8b9a0d158c7c2a/html5/thumbnails/21.jpg)
ASP.NETWebFormsCreateaNewProjectinVisualStudio
![Page 22: Web Apps and Internet Information Serviceshome.hit.no/~hansha/documents/software/software_development/topics...Web Apps and Internet Information Services (IIS) ... Client-Server Example](https://reader031.vdocuments.us/reader031/viewer/2022030413/5a9f2a727f8b9a0d158c7c2a/html5/thumbnails/22.jpg)
Example
Hans-PetterHalvorsen,M.Sc.
ASP.NETWebFormApp
![Page 23: Web Apps and Internet Information Serviceshome.hit.no/~hansha/documents/software/software_development/topics...Web Apps and Internet Information Services (IIS) ... Client-Server Example](https://reader031.vdocuments.us/reader031/viewer/2022030413/5a9f2a727f8b9a0d158c7c2a/html5/thumbnails/23.jpg)
ASP.NETWebFormExampleWhenyouarefinished,yourWebAppshouldlooksomethinglikethis:
WhenyouenteryourNameintheTextBox andclicktheOKButton,theprogramshouldrespondwithagreetings.
![Page 24: Web Apps and Internet Information Serviceshome.hit.no/~hansha/documents/software/software_development/topics...Web Apps and Internet Information Services (IIS) ... Client-Server Example](https://reader031.vdocuments.us/reader031/viewer/2022030413/5a9f2a727f8b9a0d158c7c2a/html5/thumbnails/24.jpg)
Title(ordinaryHTMLtext,orLabel)
TextBox ButtonLabel
Label
![Page 25: Web Apps and Internet Information Serviceshome.hit.no/~hansha/documents/software/software_development/topics...Web Apps and Internet Information Services (IIS) ... Client-Server Example](https://reader031.vdocuments.us/reader031/viewer/2022030413/5a9f2a727f8b9a0d158c7c2a/html5/thumbnails/25.jpg)
LetscreatethisExamplewithVisualStudio
![Page 26: Web Apps and Internet Information Serviceshome.hit.no/~hansha/documents/software/software_development/topics...Web Apps and Internet Information Services (IIS) ... Client-Server Example](https://reader031.vdocuments.us/reader031/viewer/2022030413/5a9f2a727f8b9a0d158c7c2a/html5/thumbnails/26.jpg)
WebServer
Hans-PetterHalvorsen,M.Sc.
![Page 27: Web Apps and Internet Information Serviceshome.hit.no/~hansha/documents/software/software_development/topics...Web Apps and Internet Information Services (IIS) ... Client-Server Example](https://reader031.vdocuments.us/reader031/viewer/2022030413/5a9f2a727f8b9a0d158c7c2a/html5/thumbnails/27.jpg)
WebServerPlatforms
Thetermwebservercanrefertoeitherthehardware(thecomputer)orthesoftware(thecomputerapplication)thathelps todeliverwebcontentthatcanbeaccessedthroughtheInternet.Themostcommonuseofwebserversistohostwebsites, butthereareotherusessuch asgaming,datastorageorrunningenterpriseapplications.
InternetInformationServices
ASP.NETCross-platform:UNIX,Linux,OSX,Windows, ...
(pronounced "enginex")- Hasbecomeverypopularlately
PHP
![Page 28: Web Apps and Internet Information Serviceshome.hit.no/~hansha/documents/software/software_development/topics...Web Apps and Internet Information Services (IIS) ... Client-Server Example](https://reader031.vdocuments.us/reader031/viewer/2022030413/5a9f2a727f8b9a0d158c7c2a/html5/thumbnails/28.jpg)
WebServerPopularity
http://news.netcraft.com/archives/2015/09/16/september-2015-web-server-survey.html
![Page 29: Web Apps and Internet Information Serviceshome.hit.no/~hansha/documents/software/software_development/topics...Web Apps and Internet Information Services (IIS) ... Client-Server Example](https://reader031.vdocuments.us/reader031/viewer/2022030413/5a9f2a727f8b9a0d158c7c2a/html5/thumbnails/29.jpg)
InternetInformationServices(IIS)
Hans-PetterHalvorsen,M.Sc.
![Page 30: Web Apps and Internet Information Serviceshome.hit.no/~hansha/documents/software/software_development/topics...Web Apps and Internet Information Services (IIS) ... Client-Server Example](https://reader031.vdocuments.us/reader031/viewer/2022030413/5a9f2a727f8b9a0d158c7c2a/html5/thumbnails/30.jpg)
InternetInformationServices(IIS)
• WebServerfromMicrosoft• IntegratedwithWindows
https://en.wikipedia.org/wiki/Internet_Information_Services
![Page 31: Web Apps and Internet Information Serviceshome.hit.no/~hansha/documents/software/software_development/topics...Web Apps and Internet Information Services (IIS) ... Client-Server Example](https://reader031.vdocuments.us/reader031/viewer/2022030413/5a9f2a727f8b9a0d158c7c2a/html5/thumbnails/31.jpg)
InternetInformationServices(IIS)• IIS– InternetInformationServices• WebServerthathosttheWebPages/WebSite• MakesuretohavetheIISRoleinstalledwithASP.NETsub
components
DefaultIISDirectory:C:\inetpub\wwwroot
![Page 32: Web Apps and Internet Information Serviceshome.hit.no/~hansha/documents/software/software_development/topics...Web Apps and Internet Information Services (IIS) ... Client-Server Example](https://reader031.vdocuments.us/reader031/viewer/2022030413/5a9f2a727f8b9a0d158c7c2a/html5/thumbnails/32.jpg)
Installation/Configuration
YouneedtoturnIISon
Searchfor«Windows Features»oropentheControlPanel
![Page 33: Web Apps and Internet Information Serviceshome.hit.no/~hansha/documents/software/software_development/topics...Web Apps and Internet Information Services (IIS) ... Client-Server Example](https://reader031.vdocuments.us/reader031/viewer/2022030413/5a9f2a727f8b9a0d158c7c2a/html5/thumbnails/33.jpg)
InternetInformationServices(IIS)Manager
![Page 34: Web Apps and Internet Information Serviceshome.hit.no/~hansha/documents/software/software_development/topics...Web Apps and Internet Information Services (IIS) ... Client-Server Example](https://reader031.vdocuments.us/reader031/viewer/2022030413/5a9f2a727f8b9a0d158c7c2a/html5/thumbnails/34.jpg)
Deploy/PublishWebServicetoIISCopyWebServiceFiles(Project)todefaultIISDirectory:C:\inetpub\wwwroot
![Page 35: Web Apps and Internet Information Serviceshome.hit.no/~hansha/documents/software/software_development/topics...Web Apps and Internet Information Services (IIS) ... Client-Server Example](https://reader031.vdocuments.us/reader031/viewer/2022030413/5a9f2a727f8b9a0d158c7c2a/html5/thumbnails/35.jpg)
Example
Hans-PetterHalvorsen,M.Sc.
DeployHTMLWebSitetoIIS
![Page 36: Web Apps and Internet Information Serviceshome.hit.no/~hansha/documents/software/software_development/topics...Web Apps and Internet Information Services (IIS) ... Client-Server Example](https://reader031.vdocuments.us/reader031/viewer/2022030413/5a9f2a727f8b9a0d158c7c2a/html5/thumbnails/36.jpg)
![Page 37: Web Apps and Internet Information Serviceshome.hit.no/~hansha/documents/software/software_development/topics...Web Apps and Internet Information Services (IIS) ... Client-Server Example](https://reader031.vdocuments.us/reader031/viewer/2022030413/5a9f2a727f8b9a0d158c7c2a/html5/thumbnails/37.jpg)
IISDeployment<!DOCTYPE html><html><body>
<h1>My First Heading</h1>
<p>My first paragraph.</p>
</body></html>
![Page 38: Web Apps and Internet Information Serviceshome.hit.no/~hansha/documents/software/software_development/topics...Web Apps and Internet Information Services (IIS) ... Client-Server Example](https://reader031.vdocuments.us/reader031/viewer/2022030413/5a9f2a727f8b9a0d158c7c2a/html5/thumbnails/38.jpg)
IISDeployment
TestyourWebPageinyourWebbrowser
“localhost”isyourpersonalcomputer, youcamalsouse
yourIPaddress.
![Page 39: Web Apps and Internet Information Serviceshome.hit.no/~hansha/documents/software/software_development/topics...Web Apps and Internet Information Services (IIS) ... Client-Server Example](https://reader031.vdocuments.us/reader031/viewer/2022030413/5a9f2a727f8b9a0d158c7c2a/html5/thumbnails/39.jpg)
WebServer
YourDevelopmentPC PCwithWebBrowser
Clients
WebPageDevelopment
ToolE.g.VisualStudio
![Page 40: Web Apps and Internet Information Serviceshome.hit.no/~hansha/documents/software/software_development/topics...Web Apps and Internet Information Services (IIS) ... Client-Server Example](https://reader031.vdocuments.us/reader031/viewer/2022030413/5a9f2a727f8b9a0d158c7c2a/html5/thumbnails/40.jpg)
SimpleHTMLPageExample
40
<!DOCTYPE html><html><body>
<h1>My First Heading</h1>
<p>My first paragraph.</p>
</body></html>
HTMLCode
WebBrowser:
![Page 41: Web Apps and Internet Information Serviceshome.hit.no/~hansha/documents/software/software_development/topics...Web Apps and Internet Information Services (IIS) ... Client-Server Example](https://reader031.vdocuments.us/reader031/viewer/2022030413/5a9f2a727f8b9a0d158c7c2a/html5/thumbnails/41.jpg)
![Page 42: Web Apps and Internet Information Serviceshome.hit.no/~hansha/documents/software/software_development/topics...Web Apps and Internet Information Services (IIS) ... Client-Server Example](https://reader031.vdocuments.us/reader031/viewer/2022030413/5a9f2a727f8b9a0d158c7c2a/html5/thumbnails/42.jpg)
Example
Hans-PetterHalvorsen,M.Sc.
DeployASP.NETWebApptoIIS
![Page 43: Web Apps and Internet Information Serviceshome.hit.no/~hansha/documents/software/software_development/topics...Web Apps and Internet Information Services (IIS) ... Client-Server Example](https://reader031.vdocuments.us/reader031/viewer/2022030413/5a9f2a727f8b9a0d158c7c2a/html5/thumbnails/43.jpg)
CreateWebAppinVisualStudio
![Page 44: Web Apps and Internet Information Serviceshome.hit.no/~hansha/documents/software/software_development/topics...Web Apps and Internet Information Services (IIS) ... Client-Server Example](https://reader031.vdocuments.us/reader031/viewer/2022030413/5a9f2a727f8b9a0d158c7c2a/html5/thumbnails/44.jpg)
CreateWebAppinVisualStudio
![Page 45: Web Apps and Internet Information Serviceshome.hit.no/~hansha/documents/software/software_development/topics...Web Apps and Internet Information Services (IIS) ... Client-Server Example](https://reader031.vdocuments.us/reader031/viewer/2022030413/5a9f2a727f8b9a0d158c7c2a/html5/thumbnails/45.jpg)
CreateandTestWebAppinVisualStudio
![Page 46: Web Apps and Internet Information Serviceshome.hit.no/~hansha/documents/software/software_development/topics...Web Apps and Internet Information Services (IIS) ... Client-Server Example](https://reader031.vdocuments.us/reader031/viewer/2022030413/5a9f2a727f8b9a0d158c7c2a/html5/thumbnails/46.jpg)
InternetInformationServices(IIS)Manager
1
2
3
RenameyourWebForm orAddNewDefaultDocument
CopyyourVisualStudioProject
AddyourApplication inIISManager
ThenTestyourWebApp4
![Page 47: Web Apps and Internet Information Serviceshome.hit.no/~hansha/documents/software/software_development/topics...Web Apps and Internet Information Services (IIS) ... Client-Server Example](https://reader031.vdocuments.us/reader031/viewer/2022030413/5a9f2a727f8b9a0d158c7c2a/html5/thumbnails/47.jpg)
TestIt
NotWorking?• Installcorrect.NETFrameworkintheVirtual
Machine• MakesuretheIISUserhasaccess(“owner”or
“read/write”)totheSQLServerDatabase
![Page 48: Web Apps and Internet Information Serviceshome.hit.no/~hansha/documents/software/software_development/topics...Web Apps and Internet Information Services (IIS) ... Client-Server Example](https://reader031.vdocuments.us/reader031/viewer/2022030413/5a9f2a727f8b9a0d158c7c2a/html5/thumbnails/48.jpg)
![Page 49: Web Apps and Internet Information Serviceshome.hit.no/~hansha/documents/software/software_development/topics...Web Apps and Internet Information Services (IIS) ... Client-Server Example](https://reader031.vdocuments.us/reader031/viewer/2022030413/5a9f2a727f8b9a0d158c7c2a/html5/thumbnails/49.jpg)
Example
Hans-PetterHalvorsen,M.Sc.
DeployASP.NETWebAppswithVisualStudio
![Page 50: Web Apps and Internet Information Serviceshome.hit.no/~hansha/documents/software/software_development/topics...Web Apps and Internet Information Services (IIS) ... Client-Server Example](https://reader031.vdocuments.us/reader031/viewer/2022030413/5a9f2a727f8b9a0d158c7c2a/html5/thumbnails/50.jpg)
Deployment/PublishAlternatives:- Createa“InstallationPackage”thatyouortheCustomerneedtoinstallontheserver(WebDeployPackage)
- Deploydirectlytotheserverusing“WebDeploy”(Youneedtohaveonlineaccesstotheserver)
- Deploydirectlytotheserverusing“FTP”(Youneedtohaveonlineaccesstotheserver)
- FileSystem
50
![Page 51: Web Apps and Internet Information Serviceshome.hit.no/~hansha/documents/software/software_development/topics...Web Apps and Internet Information Services (IIS) ... Client-Server Example](https://reader031.vdocuments.us/reader031/viewer/2022030413/5a9f2a727f8b9a0d158c7c2a/html5/thumbnails/51.jpg)
DeploymentAlternative#1
Hans-PetterHalvorsen,M.Sc.
FileSystemDeployment
![Page 52: Web Apps and Internet Information Serviceshome.hit.no/~hansha/documents/software/software_development/topics...Web Apps and Internet Information Services (IIS) ... Client-Server Example](https://reader031.vdocuments.us/reader031/viewer/2022030413/5a9f2a727f8b9a0d158c7c2a/html5/thumbnails/52.jpg)
FileSystemDeploymentRight-clickon theASP.NETProjectintheSolutionExplorerinVisualStudioandselect“Publish...”
Copy«MyWebApp»TotheIISFolder(inetpub/wwwroot)
![Page 53: Web Apps and Internet Information Serviceshome.hit.no/~hansha/documents/software/software_development/topics...Web Apps and Internet Information Services (IIS) ... Client-Server Example](https://reader031.vdocuments.us/reader031/viewer/2022030413/5a9f2a727f8b9a0d158c7c2a/html5/thumbnails/53.jpg)
InternetInformationServices(IIS)Manager
1
2
3
RenameyourWebFormorAddNewDefaultDocument
CopyyourVisualStudioProject
Then Testyour WebApp
AddyourApplication inIISManager
4
![Page 54: Web Apps and Internet Information Serviceshome.hit.no/~hansha/documents/software/software_development/topics...Web Apps and Internet Information Services (IIS) ... Client-Server Example](https://reader031.vdocuments.us/reader031/viewer/2022030413/5a9f2a727f8b9a0d158c7c2a/html5/thumbnails/54.jpg)
TestIt!
![Page 55: Web Apps and Internet Information Serviceshome.hit.no/~hansha/documents/software/software_development/topics...Web Apps and Internet Information Services (IIS) ... Client-Server Example](https://reader031.vdocuments.us/reader031/viewer/2022030413/5a9f2a727f8b9a0d158c7c2a/html5/thumbnails/55.jpg)
![Page 56: Web Apps and Internet Information Serviceshome.hit.no/~hansha/documents/software/software_development/topics...Web Apps and Internet Information Services (IIS) ... Client-Server Example](https://reader031.vdocuments.us/reader031/viewer/2022030413/5a9f2a727f8b9a0d158c7c2a/html5/thumbnails/56.jpg)
DeploymentAlternative#2
Hans-PetterHalvorsen,M.Sc.
WebPackageDeployment
![Page 57: Web Apps and Internet Information Serviceshome.hit.no/~hansha/documents/software/software_development/topics...Web Apps and Internet Information Services (IIS) ... Client-Server Example](https://reader031.vdocuments.us/reader031/viewer/2022030413/5a9f2a727f8b9a0d158c7c2a/html5/thumbnails/57.jpg)
WebPackageDeployment
Right-clickon theASP.NETProjectintheSolution ExplorerinVisualStudioandselect“Publish...”
![Page 58: Web Apps and Internet Information Serviceshome.hit.no/~hansha/documents/software/software_development/topics...Web Apps and Internet Information Services (IIS) ... Client-Server Example](https://reader031.vdocuments.us/reader031/viewer/2022030413/5a9f2a727f8b9a0d158c7c2a/html5/thumbnails/58.jpg)
Ifyoumissthe“Deploy”option,makesuretoinstallthe“WebDeploy”features.YoumaydownloadandinstallitfromWebPI(WebPlatformInstaller)(Googleitanddownloadit)
![Page 59: Web Apps and Internet Information Serviceshome.hit.no/~hansha/documents/software/software_development/topics...Web Apps and Internet Information Services (IIS) ... Client-Server Example](https://reader031.vdocuments.us/reader031/viewer/2022030413/5a9f2a727f8b9a0d158c7c2a/html5/thumbnails/59.jpg)
CreateWebPackageWizard
![Page 60: Web Apps and Internet Information Serviceshome.hit.no/~hansha/documents/software/software_development/topics...Web Apps and Internet Information Services (IIS) ... Client-Server Example](https://reader031.vdocuments.us/reader031/viewer/2022030413/5a9f2a727f8b9a0d158c7c2a/html5/thumbnails/60.jpg)
CreateWebPackageWizardIfyourWebAppusesaDatabaseconnectioninWeb.config, youmaysetuptheConnectionStringontheServerhere.
YoumayfillintheConnectionString totheDatabase
![Page 61: Web Apps and Internet Information Serviceshome.hit.no/~hansha/documents/software/software_development/topics...Web Apps and Internet Information Services (IIS) ... Client-Server Example](https://reader031.vdocuments.us/reader031/viewer/2022030413/5a9f2a727f8b9a0d158c7c2a/html5/thumbnails/61.jpg)
PreparationYoumayneed toinstallthe“WebDeploy”softwareontheServerDownloadWebPI(WebPlatformInstaller)andthenselecttoInstall“WebDeployforHostingServers”
![Page 62: Web Apps and Internet Information Serviceshome.hit.no/~hansha/documents/software/software_development/topics...Web Apps and Internet Information Services (IIS) ... Client-Server Example](https://reader031.vdocuments.us/reader031/viewer/2022030413/5a9f2a727f8b9a0d158c7c2a/html5/thumbnails/62.jpg)
ImportPackageinIIS
![Page 63: Web Apps and Internet Information Serviceshome.hit.no/~hansha/documents/software/software_development/topics...Web Apps and Internet Information Services (IIS) ... Client-Server Example](https://reader031.vdocuments.us/reader031/viewer/2022030413/5a9f2a727f8b9a0d158c7c2a/html5/thumbnails/63.jpg)
ImportPackageinIISMakesureyouhavecopied theInstallationPackagetotheServer
![Page 64: Web Apps and Internet Information Serviceshome.hit.no/~hansha/documents/software/software_development/topics...Web Apps and Internet Information Services (IIS) ... Client-Server Example](https://reader031.vdocuments.us/reader031/viewer/2022030413/5a9f2a727f8b9a0d158c7c2a/html5/thumbnails/64.jpg)
WebPackageDeployment
![Page 65: Web Apps and Internet Information Serviceshome.hit.no/~hansha/documents/software/software_development/topics...Web Apps and Internet Information Services (IIS) ... Client-Server Example](https://reader031.vdocuments.us/reader031/viewer/2022030413/5a9f2a727f8b9a0d158c7c2a/html5/thumbnails/65.jpg)
TestIt
![Page 66: Web Apps and Internet Information Serviceshome.hit.no/~hansha/documents/software/software_development/topics...Web Apps and Internet Information Services (IIS) ... Client-Server Example](https://reader031.vdocuments.us/reader031/viewer/2022030413/5a9f2a727f8b9a0d158c7c2a/html5/thumbnails/66.jpg)
![Page 67: Web Apps and Internet Information Serviceshome.hit.no/~hansha/documents/software/software_development/topics...Web Apps and Internet Information Services (IIS) ... Client-Server Example](https://reader031.vdocuments.us/reader031/viewer/2022030413/5a9f2a727f8b9a0d158c7c2a/html5/thumbnails/67.jpg)
Hans-PetterHalvorsen,M.Sc.
UniversityCollegeofSoutheastNorwaywww.usn.no
E-mail:[email protected]:http://home.hit.no/~hansha/