Last post May 29, 2018 07:01 PM by Sam Hobbs
May 20, 2018 10:20 PM|Sam Hobbs|LINK
I want to create an ASP.NET Web Application using VS 2017 except I want to use the local IIS, not iisexpress. Since things have been changed any existing articles for previous version of VS do not help.
This is something that has got to have been asked before so I tried to search for answers. I tried a few things in MSDN and Google and here. When I search here using something like:
visual studio 2017 create local iis asp.net web application -deploy
I get no results. If I broaden the request I get nothing relevant to what I am looking for.
Am I searching correctly? If so then I should create a new question, I assume in the ASP.NET Web Pages forum.
Update: I went ahead and created a web app using the defaults without specifying a location then I updated the web site's properties and changed it from iisexpress to Local IIS and it worked. I did something like that a few years ago and
it did not work but now it does and I don't know if it was Visual Studio got the modification or it was me stumbling around.
May 29, 2018 06:23 PM|bbcompent1|LINK
Sam, if you made a discovery, you should post that in Tips & Tricks so you can get credit for your finding. That could be useful information to another developer trying to figure that out.
May 29, 2018 07:01 PM|Sam Hobbs|LINK
The problem is that it did not work. I am sorry but I don't remember what happened.
One problem is the confusion between web apps and web sites. I have read the difference but I quickly forget and get confused. So I can't remember whether something I have done in the past was for a web app or a web site. In the past I had problems changing
a web from iisexpress to local IIS so I learned to be sure to create the VS project for whichever I wanted to use. Now that option does not exist but I am not sure whether that was for a web site or web app.
I think one problem I am having is that the Microsoft tutorial I am using is old (Getting Started with
ASP.NET 4.5 Web Forms and Visual Studio 2013); it was written for VS 2013 Express and has not been updated for VS 2017. I have given up on that tutorial, it is impossible to know what to do instead of the outdated
Oh, now I remember something. If I create a web app that uses iisexpress then the IIS application or virtual directory is not created and I think the problem I had is that when I tried to switch to my local IIS I was unable to create the
application or virtual directory myself using inetmgr. I might have been doing that right but if so then the outdated tutorial caused a problem and I don't know enough to know which direction to go to attempt to diagnose it.
Am I correct that there is not another relevant question (about creating or re-configuring an ASP.Net web app to use a local IIS) with an answer in these forums?