Questions tagged [one-click-web-publishing]
44 questions
104
votes
10 answers
allowDefinition='MachineToApplication' error when publishing from VS2010 (but only after a previous build)
I can run my Asp.Net MVC 2 application without an issue on my local computer. Just Run / Debug.
But if I have already built it, I can't publish it! I have to clean the solution and publish it again. I know this is not system critical, but it's…

Dan
- 12,808
- 7
- 45
- 54
25
votes
2 answers
Make Debug/Release Build Configuration with 1 Click Publish dependent on the selected Publish Profile
This is almost a duplicate of Link build configuration to a publish profile, but that question was not answered...
I have 2 1 Click Publish configurations for my Web Application:
Test Server
Production Server
If I select Build => Configuration…

David Murdoch
- 87,823
- 39
- 148
- 191
13
votes
4 answers
Folder not uploading with VS Publish / Web Deploy
I am using the Publish / Web Deploy option within VS 2010 to publish my ASP.NET MVC3 website.
However it does not by default publish my "files" folder that I have highlighted below.
Any ideas how I can get this file included during…

Paul Brown
- 4,926
- 9
- 32
- 44
12
votes
1 answer
Can I retain folder permissions during one-click web publishing?
Disclaimer: I know that I can retain folder permissions if i check the "Leave extra files on destination" checkbox but I don't want to do that.
That said, is there any way to have one-click web publishing in Visual Studio 2010 retain the permissions…

Lobstrosity
- 3,928
- 29
- 23
12
votes
4 answers
How can I rename Publish Profile in Visual Studio 2017?
In Visual Studio 2017 when you create a custom Publish Profile, you don't have an option to set name of the profile and it creates profiles with default names like CustomProfile and CustomProfile1 and show them in Publish toolbar like this:
In…

Reza Aghaei
- 120,393
- 18
- 203
- 398
12
votes
2 answers
How do I prevent Visual Studio 2015 from launching a browser after publishing an asp.net application?
I am working on a site with a publishing profile that pushes the site to a remote host. After publishing I get a new browser window that navigates to the newly published site. This is ok in most circumstances but I am in a situation where I can't…

Necromancer
- 390
- 5
- 15
12
votes
3 answers
One-click publish in vs 2012: how to remove _ConnectionStringsToInsert?
I usually put my connection string to a separate file, adding something like this in web.config:
I've just installed VS 2012 and it automatically picked up my existing publish…

Shaddix
- 5,901
- 8
- 45
- 86
9
votes
2 answers
Visual Studio 2012 Web Deploy publish preview shows all files as changed
The Preview pane of the Web Publishing dialog in Visual Studio 2012 works quite nicely when you're the only developer working on the codebase (see example below):
However, it seems to fall down when multiple developers use it. It appears to use…

Evan Haas
- 2,524
- 2
- 22
- 34
7
votes
4 answers
ASP.NET Web Application (MVC) Deployment Automation and Subversion
We are trying to automate the build process to our staging servers but have run into a snag, albeit fairly minor. We are using the Publish functionality built into VS2010, committing to Subversion, and then a 3rd party app (Beanstalk) automatically…

Keith
- 5,311
- 3
- 34
- 50
7
votes
1 answer
Why does my signed, click-once application say it has an unknown publisher
I want to create an application that is easy to install. The installation process is quite complex (lots of permissions, firewall rules, services, etc.). So I decided to write the setup program in C# (.net 4), and then make the setup program itself…

Nikki Locke
- 2,759
- 6
- 29
- 53
6
votes
1 answer
Can I stop Visual Studio 2012+ from ever publishing packages.config and EF diagram files?
When I publish an ASP.NET Web Application in Visual Studio 2012/2013/2015, Visual Studio will also publish the packages.config (from NuGet) and any *.edmx.diagram files (from Entity Framework), by default.
I know that I can go into the project and…

James Skemp
- 8,018
- 9
- 64
- 107
6
votes
1 answer
Web Deploy: How to keep files on a specific destination folder
Scenario
Visual Studio 2012 web publishing: web Deploy method.
"Remove additional files at destination" option selected.
MVC3 website with a "upload" folder
Question
How to keep the existing files on destination for the upload folder without…

fcaldera
- 584
- 1
- 6
- 18
5
votes
2 answers
How to backup existing database and website as part of a MSDeploy package?
I am researching one-click deployment with Visual Studio 2010, the current deployment process involves zipping up the contents of the IIS folder and taking a backup of the current database before completing the remaining manual deployment steps.…

Richard Slater
- 6,313
- 4
- 53
- 81
5
votes
0 answers
How can I specify the application pool when deploying my web service project on IIS
I'm trying to deploy my web service on IIS.
However, VS 2012 gives me an error because the Default Web Site uses the application pool that uses .NET Framework 2.0. However, mine needs .NET Framework 4.0 or later.
So when I manually add another web…

user2462742
- 63
- 3
5
votes
0 answers
WebDeploy and SetACL - too slow in case of lots of files/folders
We have an ASP.Net MVC3 site which we're publishing on IIS using web deploy.
Under the site root we have a "Data" folder which we're using to store uploaded files and the result of their processing.
So, there are lots of files/folders under "Site…

Shaddix
- 5,901
- 8
- 45
- 86