473,395 Members | 1,343 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,395 software developers and data experts.

Overwriting the App_Data directory on publish

mc
I've developed a website with which users can update XML files in it's App_Data directory. Currently
when I want to update the live site I have to take a copy of the app_Data directory on the server
and reinstate it after publishing the new content. does anyone have any suggestions for the most
effective way to automate this?

TIA
MC
Sep 20 '07 #1
6 3678
Cant you just exclude it from the project.

"mc" <mc@community.nospamwrote in message
news:46********@mail.hmgcc.gov.uk...
I've developed a website with which users can update XML files in it's
App_Data directory. Currently when I want to update the live site I have
to take a copy of the app_Data directory on the server and reinstate it
after publishing the new content. does anyone have any suggestions for the
most effective way to automate this?

TIA
MC

Sep 20 '07 #2
mc
Just Me wrote:
Cant you just exclude it from the project.

"mc" <mc@community.nospamwrote in message
news:46********@mail.hmgcc.gov.uk...
>>I've developed a website with which users can update XML files in it's
App_Data directory. Currently when I want to update the live site I have
to take a copy of the app_Data directory on the server and reinstate it
after publishing the new content. does anyone have any suggestions for the
most effective way to automate this?

TIA
MC


Thanks for the sugestion However, You can't exclude a directory, so you would need to exclude each
file in the App_Data directory.

I would need to do this before each publish as I still need access to these files whilst debugging
locally.

Next Idea! :-)

Regards

MC
Sep 20 '07 #3
"mc" <mc@community.nospamwrote in message
news:46******@mail.hmgcc.gov.uk...
You can't exclude a directory
Right-click the App_Data folder in Project Explorer and select Exclude from
Project - does that not work for you...?

FWIW, I never use the Publish feature of VS.NET 2005
Instead, I use Web Deployment Projects
(http://www.google.co.uk/search?hl=en...+Project&meta=)
and FTP...
--
Mark Rae
ASP.NET MVP
http://www.markrae.net

Sep 20 '07 #4
;-)

"Mark Rae [MVP]" <ma**@markNOSPAMrae.netwrote in message
news:%2********************@TK2MSFTNGP04.phx.gbl.. .
"mc" <mc@community.nospamwrote in message
news:46******@mail.hmgcc.gov.uk...
>You can't exclude a directory

Right-click the App_Data folder in Project Explorer and select Exclude
from Project - does that not work for you...?

FWIW, I never use the Publish feature of VS.NET 2005
Instead, I use Web Deployment Projects
(http://www.google.co.uk/search?hl=en...+Project&meta=)
and FTP...
--
Mark Rae
ASP.NET MVP
http://www.markrae.net

Sep 20 '07 #5
mc
I'm using "Visual Studio 2005 Team Edition for Software Developers" and when I right click on a
Directory in "Solution Explorer" (which I assume is the same as Project Explorer?) I don't get the
option to "Exclude from Project". I Do have an "Exclude from project" option for the files just not
directories.

Publish was just nice and easy as I've no knead for FTP as I write files directly to a network
share on the web server.

I will now have a look at Web Deployment Projects!

Just Me wrote:
;-)

"Mark Rae [MVP]" <ma**@markNOSPAMrae.netwrote in message
news:%2********************@TK2MSFTNGP04.phx.gbl.. .
>>"mc" <mc@community.nospamwrote in message
news:46******@mail.hmgcc.gov.uk...

>>>You can't exclude a directory

Right-click the App_Data folder in Project Explorer and select Exclude
from Project - does that not work for you...?

FWIW, I never use the Publish feature of VS.NET 2005
Instead, I use Web Deployment Projects
(http://www.google.co.uk/search?hl=en...+Project&meta=)
and FTP...
--
Mark Rae
ASP.NET MVP
http://www.markrae.net


Sep 20 '07 #6
mc
Looks like the "Remove the App_Data folder from output location" Checkbox does exactly what I need!

Thanks for the tip!

Incidentally since I installed the Web Deployment Projects msi I get an error when I start VS,
"Package Load Failure" for "Microsoft.Workflow.VSDesigner.DesignerPackage ". However, as I'm not
using that at the moment I shall ignore this!

Regards

MC

mc wrote:
I'm using "Visual Studio 2005 Team Edition for Software Developers" and
when I right click on a Directory in "Solution Explorer" (which I assume
is the same as Project Explorer?) I don't get the option to "Exclude
from Project". I Do have an "Exclude from project" option for the files
just not directories.

Publish was just nice and easy as I've no knead for FTP as I write
files directly to a network share on the web server.

I will now have a look at Web Deployment Projects!

Just Me wrote:
>;-)

"Mark Rae [MVP]" <ma**@markNOSPAMrae.netwrote in message
news:%2********************@TK2MSFTNGP04.phx.gbl. ..
>>"mc" <mc@community.nospamwrote in message
news:46******@mail.hmgcc.gov.uk...
You can't exclude a directory
Right-click the App_Data folder in Project Explorer and select
Exclude from Project - does that not work for you...?

FWIW, I never use the Publish feature of VS.NET 2005
Instead, I use Web Deployment Projects
(http://www.google.co.uk/search?hl=en...+Project&meta=)
and FTP...
--
Mark Rae
ASP.NET MVP
http://www.markrae.net

Sep 20 '07 #7

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

1
by: mike | last post by:
when website publish on web server the files of app_data such as database file *.mdf is it safe? is it common
2
by: Victor Paraschiv | last post by:
In a webservice I need to store the credentials in a xml file.Of course the password string is hashed. The XML is stored in App_Data. Now I need to open this file for read/write. I've tryed a lot...
5
by: CharlesA | last post by:
hi folks I'm working on reverse engineering TheBeerHouse by Marco Bellinaso which appears to have 100% unanimous approval on Amazon. I got the book and downloaded the code and I opened the...
4
by: dev648237923 | last post by:
I develop my application on my dev server and then I deploy it to a customer's production server. I store the db connection string in web.config (is this best practice?). When I deploy I have to...
2
by: itfetish | last post by:
I've just upgraded our WIndows 2003 (with SBS server) web server to .Net framework 2.0 (it had 1.1 before) As I have been working on a web parts page on my laptop, hosting it there, working...
3
by: =?Utf-8?B?RGF2ZQ==?= | last post by:
Is it always necessary to upload to the host, the App_Data folder if my db does not reside in that folder? -- L. A. Jones
1
by: =?Utf-8?B?U3VzaGlTZWFu?= | last post by:
I have problems with sharing files from this directory. It is system directory so I can't make dirrect links on files inside. For example /App_Data/my.mp3 www.example.com/App_Data/my.mp3 -...
3
by: Ilyas | last post by:
Hi I f I place an .mdf file inside the App_data to deploy a web app - can I deply my site so that the database at runtime is picked up in the App_data directory? Would my server need to have...
6
by: Mr. X. | last post by:
I have visual studio 2008. My site has a plesk on it. I want to deploy my project, and save it on the host machine. Looking for solution for folowings, please : 1st solution =======...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.