Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 113511
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 11, 20262026-05-11T02:42:50+00:00 2026-05-11T02:42:50+00:00

When I use Build->Publish Web Site in Visual Studio 2008, most of the time

  • 0

When I use Build->Publish Web Site in Visual Studio 2008, most of the time it compiles the site, and then simply asks me ‘All files in the target folder will be deleted. Continue?’ (or something to that effect). On occasion, however, when publishing a project in Visual Studio, I would get a dialog box that would give me the choice of replacing the folder’s contents completely, or simply replacing changed files with newer version.

I much prefer to publish without completely obliterating the folder, because the deployed application creates user files and cache files as it’s been used that I don’t want to take extra steps to preserve. However, I’m not sure why Visual Studio doesn’t always give me this option. Is this a setting somewhere I can change? Is it tied to the version of .NET I’m using?

Any insight is appreciated!

Edit – Followup on 2009-01-20

I still haven’t figured this out, but here’s some more information.

Here’s what the publish function looks like for one ASP.NET project on my Win XP desktop:

And here’s what it looks like for a different project on my Vista laptop:

Notice the radio buttons in the second screenshot that allow me to choose to either delete the contents of the folder prior to publishing, or merely to overwrite matching files. I’d like to have these options for every project.

Both computers are running Visual Studio 2008 Professional (version 9.0.30729.1 SP, according to Help->About). The exact same version. And I doubt the OS difference is causing this functionality change. It’s got to be a setting somewhere, right? Does anyone know?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. 2026-05-11T02:42:51+00:00Added an answer on May 11, 2026 at 2:42 am

    John is right, the only difference is one of your projects is a Web Site Project and the other is a Web Application project. You will not see the ‘convert to web application‘ option unless you are in a Web Application project. I know… it is very misleading. The reason behind this stems from the the way you convert to a web application project. If you plan on converting it(which can be a real pain in arse, depending on how it is set up) then you need to be aware of a few differences:

    In a Web Application project everything is pre-compiled all the codebehind pages will be compiled into a .dll —- In a Web Site Project nothing in the project is pre-compiled, the compiler will compile everything to ensure it is valid but none of the compiled pages are uploaded. When a user first attempts to access the site each page is compiled into its own dll. This means in a Web Site Project you are able to upload a single codebehind file.

    Namespaces – In a Web Application project namespaces are created by default in a Web Site Project they are not. So you may have to spend some time adding them if you plan on converting them.

    Project files – you will notice that A Website Project does not have a ‘cproj’ file a Web Application project does.

    I have converted a few of these project I find they go fairly smooth as long as there is not a lot of code in the ‘app_code’ folder. You can give it a try and see how easy it is, if it looks like it is going to be a pain, I would suggest FileZilla just FTP it and save yourself some headache.

    Good Luck

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Ask A Question

Stats

  • Questions 65k
  • Answers 65k
  • Best Answers 0
  • User 1
  • Popular
  • Answers
  • Editorial Team

    How to approach applying for a job at a company ...

    • 7 Answers
  • Editorial Team

    How to handle personal stress caused by utterly incompetent and ...

    • 5 Answers
  • Editorial Team

    What is a programmer’s life like?

    • 5 Answers
  • added an answer Step 1: Generating a self-signed certificate: I downloaded the Certificate.cs… May 11, 2026 at 11:21 am
  • added an answer On my current project we use a little generation tool… May 11, 2026 at 11:21 am
  • added an answer For this specific example I'd stick with literals. After all,… May 11, 2026 at 11:21 am

Related Questions

When I use Build->Publish Web Site in Visual Studio 2008, most of the time
Generally when I use ClickOnce when I build a VB.NET program but it has
When I use the default java locale on my linux machine it comes out
When I use CTRL + H I end up on the Java Search tab.
When I use the PrintOut method to print a Worksheet object to a printer,
When I use quick documentaion lookup (Ctrl+Q) on j2ee classes or annotations in IDEA
when i use setDefaultLookAndFeelDecorated(true) method in Java why is the Frame appear FullScreen when
When I use the task, the property is only set to TRUE if the
When I use traceroute, I often see abbreviations in the hostnames along the route,
When I use Emacs I want to be able to easily display and navigate

Trending Tags

analytics british company computer developers django employee employer english facebook french google interview javascript language life php programmer programs salary

Top Members

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.