Last post Mar 01, 2018 09:41 PM by KathyW
Mar 01, 2018 02:36 AM|ChaChaMan_Ca|LINK
I created a web application project WAP but I now realize I should have created it as a web site project WSP.
The reason is that I develop on the same server I deploy to, so therefor I find it easier to deploy and maintain or add future enhancements to the code if there is only one version of the project. I believe this would be the case with a WSP, correct me if
I am wrong.
Any guidance and insight would be appreciated.
Thank you all !
Mar 01, 2018 06:47 AM|Eric Du|LINK
According to your description, about how to convert the WAP to WSP, please check the following tutorial:
Converting a Web Site Project to a Web Application Project:
Converting Visual Studio Website to Web Application Project:
Mar 01, 2018 01:23 PM|ChaChaMan_Ca|LINK
What I am asking is the opposite !....
Mar 01, 2018 01:39 PM|PatriceSc|LINK
I believe you don't have this option as Web Application Projects are now favored over Web Sites. You could do by hand but does it worth. That is you would always do changes directly on the production site ?
Instead you could have your master project at any location you want using
https://github.com/, https://www.visualstudio.com/team-services/ or some other similar services and then you'll deploy your update once ready. You'll just have an additional step but more flexibility.
Mar 01, 2018 02:28 PM|ChaChaMan_Ca|LINK
Mar 01, 2018 02:36 PM|Mikesdotnetting|LINK
The reason is that I develop on the same server I deploy to, so therefor I find it easier to deploy and maintain or add future enhancements to the code if there is only one version of the project. I believe this would be the case with a WSP, correct me if I
Mar 01, 2018 02:51 PM|PatriceSc|LINK
The problem is that you'll find only some vague guidance such as
https://forums.asp.net/t/1374036.aspx?Convert+from+Web+Application+to+Website and on the long run this model is perhaps not that flexible.
If you have VS on the server (???) you could have your project in a folder, use IISExpress to make it work and then publish it once ready ?
For now I don't feel the difference between WAP and WSP is that huge that it's worth the work to move to this less popular model and maybe later have to go back to WAP.
Mar 01, 2018 09:41 PM|KathyW|LINK
"I believe you don't have this option as Web Application Projects are now favored over Web Sites."
There is no automatic option, but it shouldn't be too hard to do by hand. The link provided by PatriceSc covers it. (Mind you, directly editing a site on the server is fraught with potential hazards, like introducing bugs to the live site without testing
If you want to do the conversion, test it on a copy other than the live site.