Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsFree MagazinesWhite PapersSubmit Content
Discussion GroupsASP.NETWindows FormsLanguages.NET FrameworkVisual Studio.NET
Articles.NET FrameworkASP.NETToolsWindows Forms
.NET DirectoryOpen Source ProjectsUser GroupsWeb Resources
Related Topics
Visual Basic 6SQL ServerMS AccessOther DB ProductsMS Server ProductsMore Topics ...

.NET Forum / ASP.NET / General / September 2007

Tip: Looking for answers? Try searching our database.

Overwriting the App_Data directory on publish

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
mc - 20 Sep 2007 11:00 GMT
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
Just Me - 20 Sep 2007 11:49 GMT
Cant you just exclude it from the project.

> 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
[quoted text clipped - 5 lines]
>
> MC
mc - 20 Sep 2007 12:33 GMT
> Cant you just exclude it from the project.
>
[quoted text clipped - 7 lines]
>>
>>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
Mark Rae [MVP] - 20 Sep 2007 12:58 GMT
> 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&rlz=1T4GGIH_en-GBGB220GB220&q=Web+Deploymen
t+Project&meta
=)
and FTP...

Signature

Mark Rae
ASP.NET MVP
http://www.markrae.net

Just Me - 20 Sep 2007 13:05 GMT
;-)

>> You can't exclude a directory
>
[quoted text clipped - 5 lines]
> (http://www.google.co.uk/search?hl=en&rlz=1T4GGIH_en-GBGB220GB220&q=Web+Deploymen
t+Project&meta
=)
> and FTP...
mc - 20 Sep 2007 13:22 GMT
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!

> ;-)
>
[quoted text clipped - 7 lines]
>>(http://www.google.co.uk/search?hl=en&rlz=1T4GGIH_en-GBGB220GB220&q=Web+Deploymen
t+Project&meta
=)
>>and FTP...
mc - 20 Sep 2007 14:00 GMT
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

> 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
[quoted text clipped - 18 lines]
>>> (http://www.google.co.uk/search?hl=en&rlz=1T4GGIH_en-GBGB220GB220&q=Web+Deploymen
t+Project&meta
=)
>>> and FTP...

Rate this thread:







Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.