I'm running the newest version of the Visual Studio 2017 preview.
Microsoft Visual Studio Professional 2017 Preview (2)
Version 15.3.1 Preview 1.0
VisualStudio.15.Preview/15.3.1-pre.1.0+26730.8
Microsoft .NET Framework
Version 4.7.02053
Installed Version: Professional
Web Essentials 2017 1.5.31
The easiest way to set up Visual Studio for the ultimate web development experience. Requires Visual Studio 2017 Update 3 or newer
I've followed a very simple, basic tutorial to create a website and get to the point where it says to publish the website you've created. The web page displays in the browser perfectly from the debugger. I have two basic problems,
though.
1. I cant change from Debug configuration to Release. The dropdown in the Configuration only shows "Debug." There is no other choice. How do I fix that?
2. "Publish Website" isn't an option in the Build menu. Publish Web App is, but that's not the same. How do I fix that?
My goal is to publish this website on this server. It won't be public. I can work with my hosting company on that. But first, I have to resolve these two problems. I hope someone here can give me some guidance.
Thanks! I'm working on a Windows 2012 R2 server with the current version of IIS. What is Web Deploy? Is there a specific version for Visual Studio 2017? Do you happen to have a link?
That may help, but it doesn't help with why I can't change the configuration from Debug to Release. Any suggestions in that regard?
MSDN Community Support
Please remember to click "Mark as Answer" the responses that resolved your issue.
If you have any compliments or complaints to MSDN Support, feel free to contact MSDNFSF@microsoft.com.
Member
3 Points
47 Posts
Cannot publish website from Visual Studio. Cannot change from debug mode to release mode.
Aug 24, 2017 04:26 PM|klgrube|LINK
Hi!
I'm running the newest version of the Visual Studio 2017 preview.
Microsoft Visual Studio Professional 2017 Preview (2)
Version 15.3.1 Preview 1.0
VisualStudio.15.Preview/15.3.1-pre.1.0+26730.8
Microsoft .NET Framework
Version 4.7.02053
Installed Version: Professional
Web Essentials 2017 1.5.31
The easiest way to set up Visual Studio for the ultimate web development experience. Requires Visual Studio 2017 Update 3 or newer
I've followed a very simple, basic tutorial to create a website and get to the point where it says to publish the website you've created. The web page displays in the browser perfectly from the debugger. I have two basic problems, though.
1. I cant change from Debug configuration to Release. The dropdown in the Configuration only shows "Debug." There is no other choice. How do I fix that?
2. "Publish Website" isn't an option in the Build menu. Publish Web App is, but that's not the same. How do I fix that?
My goal is to publish this website on this server. It won't be public. I can work with my hosting company on that. But first, I have to resolve these two problems. I hope someone here can give me some guidance.
Thanks!
Contributor
2619 Points
2753 Posts
Re: Cannot publish website from Visual Studio. Cannot change from debug mode to release mode.
Aug 24, 2017 07:03 PM|wavemaster|LINK
You need a local server with some version of Windows Server, IIS, WebDeploy and more.
Then with WebDeploy you would create a publish profile, which VS2017 would need to it knows where to publish to.
Or set up a free account with Azure then everything becomes much simpler.
Member
3 Points
47 Posts
Re: Cannot publish website from Visual Studio. Cannot change from debug mode to release mode.
Aug 24, 2017 11:49 PM|klgrube|LINK
Thanks! I'm working on a Windows 2012 R2 server with the current version of IIS. What is Web Deploy? Is there a specific version for Visual Studio 2017? Do you happen to have a link?
That may help, but it doesn't help with why I can't change the configuration from Debug to Release. Any suggestions in that regard?
Thanks again!
Contributor
2619 Points
2753 Posts
Re: Cannot publish website from Visual Studio. Cannot change from debug mode to release mode.
Aug 25, 2017 12:37 AM|wavemaster|LINK
Web Deploy is for IIS: https://www.iis.net/downloads/microsoft/web-deploy
The best way to get Web Deploy is to use Web Platform Installer.
Web Deploy creates a publish profile of your site, which VS will need to publish.
The only way I know of to publish is right click on Solution Explorer then select Publish
Here is how it works: https://msdn.microsoft.com/en-us/library/dd465337(v=vs.110).aspx
Contributor
2990 Points
1210 Posts
Re: Cannot publish website from Visual Studio. Cannot change from debug mode to release mode.
Aug 25, 2017 06:26 AM|Deepak Panchal|LINK
Hi klgrube,
you can also try to refer link below.
ASP.NET Web Deployment using Visual Studio: Deploying to Test
Regards
Deepak
Please remember to click "Mark as Answer" the responses that resolved your issue.
If you have any compliments or complaints to MSDN Support, feel free to contact MSDNFSF@microsoft.com.