Is there any way of configuring VS2005's Publish Web Site feature to ignore
certain files? During day to day testing of our web-site, log files are
created that I don't want to deploy to the production server. However,
Publish Web Site copies these over and they have to be manually removed
before deployment. This rules out using FTP to publish because it would
overwrite the auto-generated log files on the live server.
Ideally, I'd to specify a list of file-masks that Publish Web-Site will not
copy to the PrecompiledWeb folder
Ben 6 1591
Hi,
manually excluding from project is probably one way to prevent that.
But you can have great control over the deployment process if you start to
use Web Deployment Projects. You can control with it what files, what file
types, folders etc are excluded from the deployment process plus do a lot
more other stuff, not available with default publishing in VS2005. http://msdn.microsoft.com/asp.net/re...p/default.aspx
--
Teemu Keiski
ASP.NET MVP, AspInsider
Finland, EU http://blogs.aspadvice.com/joteke
"Ben Fidge" <be*******@nospambtopenworld.com> wrote in message
news:eb**************@TK2MSFTNGP09.phx.gbl... Is there any way of configuring VS2005's Publish Web Site feature to ignore certain files? During day to day testing of our web-site, log files are created that I don't want to deploy to the production server. However, Publish Web Site copies these over and they have to be manually removed before deployment. This rules out using FTP to publish because it would overwrite the auto-generated log files on the live server.
Ideally, I'd to specify a list of file-masks that Publish Web-Site will not copy to the PrecompiledWeb folder
Ben
Funnily enough, I was just setting this up when I read your response. Can I
ask some questions as documentation seems quite thin at the moment.
1..How do I specify to remove *.resx, *.log etc from the output folder
2..I'm having trouble replacing section of my web.config file. <appSettings>
go over fine, but I'm getting errors with non-standard config sections. We
use payment processing agent called PROTX and their API adds a section
called <protx.com> to the web.config file. In the WDP property pages dialog,
I've set "protx.com=.\configs\liveprotx.config" and get the following error
"error WDP00002: missing section protx.com". The case is correct and
everything spelt correctly, and the path to the file is ok as
"appSettings=.\configs\appsettings.config" works fine. Is this because it's
a custom section?
Ben
"Teemu Keiski" <jo****@aspalliance.com> wrote in message
news:%2****************@TK2MSFTNGP11.phx.gbl... Hi,
manually excluding from project is probably one way to prevent that.
But you can have great control over the deployment process if you start to use Web Deployment Projects. You can control with it what files, what file types, folders etc are excluded from the deployment process plus do a lot more other stuff, not available with default publishing in VS2005.
http://msdn.microsoft.com/asp.net/re...p/default.aspx
-- Teemu Keiski ASP.NET MVP, AspInsider Finland, EU http://blogs.aspadvice.com/joteke
"Ben Fidge" <be*******@nospambtopenworld.com> wrote in message news:eb**************@TK2MSFTNGP09.phx.gbl... Is there any way of configuring VS2005's Publish Web Site feature to ignore certain files? During day to day testing of our web-site, log files are created that I don't want to deploy to the production server. However, Publish Web Site copies these over and they have to be manually removed before deployment. This rules out using FTP to publish because it would overwrite the auto-generated log files on the live server.
Ideally, I'd to specify a list of file-masks that Publish Web-Site will not copy to the PrecompiledWeb folder
Ben
1. Add this to the project file:
<ItemGroup>
<ExcludeFromBuild Include="$(SourceWebPhysicalPath)\**\*.log" />
</ItemGroup>
That would for example remove all *.log files from the WDP output.
2. About custom section, how have you the settings related to it, such as
enforcing matching section replacements setting? (Have you checked
instructions in http://download.microsoft.com/downlo...ects_final.doc )
--
Teemu Keiski
ASP.NET MVP, AspInsider
Finland, EU http://blogs.aspadvice.com/joteke
"Ben Fidge" <be*******@nospambtopenworld.com> wrote in message
news:OQ***************@TK2MSFTNGP10.phx.gbl... Funnily enough, I was just setting this up when I read your response. Can I ask some questions as documentation seems quite thin at the moment.
1..How do I specify to remove *.resx, *.log etc from the output folder 2..I'm having trouble replacing section of my web.config file. <appSettings> go over fine, but I'm getting errors with non-standard config sections. We use payment processing agent called PROTX and their API adds a section called <protx.com> to the web.config file. In the WDP property pages dialog, I've set "protx.com=.\configs\liveprotx.config" and get the following error "error WDP00002: missing section protx.com". The case is correct and everything spelt correctly, and the path to the file is ok as "appSettings=.\configs\appsettings.config" works fine. Is this because it's a custom section?
Ben "Teemu Keiski" <jo****@aspalliance.com> wrote in message news:%2****************@TK2MSFTNGP11.phx.gbl... Hi,
manually excluding from project is probably one way to prevent that.
But you can have great control over the deployment process if you start to use Web Deployment Projects. You can control with it what files, what file types, folders etc are excluded from the deployment process plus do a lot more other stuff, not available with default publishing in VS2005.
http://msdn.microsoft.com/asp.net/re...p/default.aspx
-- Teemu Keiski ASP.NET MVP, AspInsider Finland, EU http://blogs.aspadvice.com/joteke
"Ben Fidge" <be*******@nospambtopenworld.com> wrote in message news:eb**************@TK2MSFTNGP09.phx.gbl... Is there any way of configuring VS2005's Publish Web Site feature to ignore certain files? During day to day testing of our web-site, log files are created that I don't want to deploy to the production server. However, Publish Web Site copies these over and they have to be manually removed before deployment. This rules out using FTP to publish because it would overwrite the auto-generated log files on the live server.
Ideally, I'd to specify a list of file-masks that Publish Web-Site will not copy to the PrecompiledWeb folder
Ben
Hi Teemu,
Enforce mathcing section replacements is switched off. There doesn't appear
to be information in the document concerning replacing custom sections.
Ben
"Teemu Keiski" <jo****@aspalliance.com> wrote in message
news:em**************@TK2MSFTNGP11.phx.gbl... 1. Add this to the project file:
<ItemGroup> <ExcludeFromBuild Include="$(SourceWebPhysicalPath)\**\*.log" />
</ItemGroup>
That would for example remove all *.log files from the WDP output.
2. About custom section, how have you the settings related to it, such as enforcing matching section replacements setting? (Have you checked instructions in http://download.microsoft.com/downlo...ects_final.doc )
-- Teemu Keiski ASP.NET MVP, AspInsider Finland, EU http://blogs.aspadvice.com/joteke
"Ben Fidge" <be*******@nospambtopenworld.com> wrote in message news:OQ***************@TK2MSFTNGP10.phx.gbl... Funnily enough, I was just setting this up when I read your response. Can I ask some questions as documentation seems quite thin at the moment.
1..How do I specify to remove *.resx, *.log etc from the output folder 2..I'm having trouble replacing section of my web.config file. <appSettings> go over fine, but I'm getting errors with non-standard config sections. We use payment processing agent called PROTX and their API adds a section called <protx.com> to the web.config file. In the WDP property pages dialog, I've set "protx.com=.\configs\liveprotx.config" and get the following error "error WDP00002: missing section protx.com". The case is correct and everything spelt correctly, and the path to the file is ok as "appSettings=.\configs\appsettings.config" works fine. Is this because it's a custom section?
Ben "Teemu Keiski" <jo****@aspalliance.com> wrote in message news:%2****************@TK2MSFTNGP11.phx.gbl... Hi,
manually excluding from project is probably one way to prevent that.
But you can have great control over the deployment process if you start to use Web Deployment Projects. You can control with it what files, what file types, folders etc are excluded from the deployment process plus do a lot more other stuff, not available with default publishing in VS2005.
http://msdn.microsoft.com/asp.net/re...p/default.aspx
-- Teemu Keiski ASP.NET MVP, AspInsider Finland, EU http://blogs.aspadvice.com/joteke
"Ben Fidge" <be*******@nospambtopenworld.com> wrote in message news:eb**************@TK2MSFTNGP09.phx.gbl... Is there any way of configuring VS2005's Publish Web Site feature to ignore certain files? During day to day testing of our web-site, log files are created that I don't want to deploy to the production server. However, Publish Web Site copies these over and they have to be manually removed before deployment. This rules out using FTP to publish because it would overwrite the auto-generated log files on the live server.
Ideally, I'd to specify a list of file-masks that Publish Web-Site will not copy to the PrecompiledWeb folder
Ben
Interesting,
I haven't tried that part of WDP well enough so I cannot answer your
question. However, I ran a search on ASP.NEt Forums and found a few related
posts. http://forums.asp.net/1173181/ShowPost.aspx
You could ask this on VS2005 forum http://forums.asp.net/138/ShowForum.aspx
--
Teemu Keiski
ASP.NET MVP, AspInsider
Finland, EU http://blogs.aspadvice.com/joteke
"Ben Fidge" <be*******@nospambtopenworld.com> wrote in message
news:eV**************@TK2MSFTNGP11.phx.gbl... Hi Teemu,
Enforce mathcing section replacements is switched off. There doesn't appear to be information in the document concerning replacing custom sections.
Ben
"Teemu Keiski" <jo****@aspalliance.com> wrote in message news:em**************@TK2MSFTNGP11.phx.gbl... 1. Add this to the project file:
<ItemGroup> <ExcludeFromBuild Include="$(SourceWebPhysicalPath)\**\*.log" />
</ItemGroup>
That would for example remove all *.log files from the WDP output.
2. About custom section, how have you the settings related to it, such as enforcing matching section replacements setting? (Have you checked instructions in http://download.microsoft.com/downlo...ects_final.doc )
-- Teemu Keiski ASP.NET MVP, AspInsider Finland, EU http://blogs.aspadvice.com/joteke
"Ben Fidge" <be*******@nospambtopenworld.com> wrote in message news:OQ***************@TK2MSFTNGP10.phx.gbl... Funnily enough, I was just setting this up when I read your response. Can I ask some questions as documentation seems quite thin at the moment.
1..How do I specify to remove *.resx, *.log etc from the output folder 2..I'm having trouble replacing section of my web.config file. <appSettings> go over fine, but I'm getting errors with non-standard config sections. We use payment processing agent called PROTX and their API adds a section called <protx.com> to the web.config file. In the WDP property pages dialog, I've set "protx.com=.\configs\liveprotx.config" and get the following error "error WDP00002: missing section protx.com". The case is correct and everything spelt correctly, and the path to the file is ok as "appSettings=.\configs\appsettings.config" works fine. Is this because it's a custom section?
Ben "Teemu Keiski" <jo****@aspalliance.com> wrote in message news:%2****************@TK2MSFTNGP11.phx.gbl... Hi,
manually excluding from project is probably one way to prevent that.
But you can have great control over the deployment process if you start to use Web Deployment Projects. You can control with it what files, what file types, folders etc are excluded from the deployment process plus do a lot more other stuff, not available with default publishing in VS2005.
http://msdn.microsoft.com/asp.net/re...p/default.aspx
-- Teemu Keiski ASP.NET MVP, AspInsider Finland, EU http://blogs.aspadvice.com/joteke
"Ben Fidge" <be*******@nospambtopenworld.com> wrote in message news:eb**************@TK2MSFTNGP09.phx.gbl... > Is there any way of configuring VS2005's Publish Web Site feature to > ignore certain files? During day to day testing of our web-site, log > files are created that I don't want to deploy to the production > server. However, Publish Web Site copies these over and they have to > be manually removed before deployment. This rules out using FTP to > publish because it would overwrite the auto-generated log files on the > live server. > > Ideally, I'd to specify a list of file-masks that Publish Web-Site > will not copy to the PrecompiledWeb folder > > Ben > >
Thanks for your help. As Soon as I find out i'll post a message on this
forum.
Ben
"Teemu Keiski" <jo****@aspalliance.com> wrote in message
news:eN**************@TK2MSFTNGP09.phx.gbl... Interesting,
I haven't tried that part of WDP well enough so I cannot answer your question. However, I ran a search on ASP.NEt Forums and found a few related posts. http://forums.asp.net/1173181/ShowPost.aspx
You could ask this on VS2005 forum http://forums.asp.net/138/ShowForum.aspx
-- Teemu Keiski ASP.NET MVP, AspInsider Finland, EU http://blogs.aspadvice.com/joteke
"Ben Fidge" <be*******@nospambtopenworld.com> wrote in message news:eV**************@TK2MSFTNGP11.phx.gbl... Hi Teemu,
Enforce mathcing section replacements is switched off. There doesn't appear to be information in the document concerning replacing custom sections.
Ben
"Teemu Keiski" <jo****@aspalliance.com> wrote in message news:em**************@TK2MSFTNGP11.phx.gbl... 1. Add this to the project file:
<ItemGroup> <ExcludeFromBuild Include="$(SourceWebPhysicalPath)\**\*.log" />
</ItemGroup>
That would for example remove all *.log files from the WDP output.
2. About custom section, how have you the settings related to it, such as enforcing matching section replacements setting? (Have you checked instructions in http://download.microsoft.com/downlo...ects_final.doc )
-- Teemu Keiski ASP.NET MVP, AspInsider Finland, EU http://blogs.aspadvice.com/joteke
"Ben Fidge" <be*******@nospambtopenworld.com> wrote in message news:OQ***************@TK2MSFTNGP10.phx.gbl... Funnily enough, I was just setting this up when I read your response. Can I ask some questions as documentation seems quite thin at the moment.
1..How do I specify to remove *.resx, *.log etc from the output folder 2..I'm having trouble replacing section of my web.config file. <appSettings> go over fine, but I'm getting errors with non-standard config sections. We use payment processing agent called PROTX and their API adds a section called <protx.com> to the web.config file. In the WDP property pages dialog, I've set "protx.com=.\configs\liveprotx.config" and get the following error "error WDP00002: missing section protx.com". The case is correct and everything spelt correctly, and the path to the file is ok as "appSettings=.\configs\appsettings.config" works fine. Is this because it's a custom section?
Ben "Teemu Keiski" <jo****@aspalliance.com> wrote in message news:%2****************@TK2MSFTNGP11.phx.gbl... > Hi, > > manually excluding from project is probably one way to prevent that. > > But you can have great control over the deployment process if you > start to use Web Deployment Projects. You can control with it what > files, what file types, folders etc are excluded from the deployment > process plus do a lot more other stuff, not available with default > publishing in VS2005. > > http://msdn.microsoft.com/asp.net/re...p/default.aspx > > -- > Teemu Keiski > ASP.NET MVP, AspInsider > Finland, EU > http://blogs.aspadvice.com/joteke > > > "Ben Fidge" <be*******@nospambtopenworld.com> wrote in message > news:eb**************@TK2MSFTNGP09.phx.gbl... >> Is there any way of configuring VS2005's Publish Web Site feature to >> ignore certain files? During day to day testing of our web-site, log >> files are created that I don't want to deploy to the production >> server. However, Publish Web Site copies these over and they have to >> be manually removed before deployment. This rules out using FTP to >> publish because it would overwrite the auto-generated log files on >> the live server. >> >> Ideally, I'd to specify a list of file-masks that Publish Web-Site >> will not copy to the PrecompiledWeb folder >> >> Ben >> >> > >
This thread has been closed and replies have been disabled. Please start a new discussion. Similar topics
by: philip |
last post by:
I tried to publish on my address 'philippewarein.com' a minimal site.
There is only one page, with some words : "This is my first site"
This is the HTML code of this page, code created by Visual...
|
by: Rahul |
last post by:
I have some resx files inside my Global Resources folder for the web
and some other Resx files for the DataAccess layer project .For web
project I am using Resx files for the Form control's...
|
by: AAJ |
last post by:
Hi all
I have a few questions about file locations with VS2005, localhost WidowsXP
and remotehost Server2003, and I wonder if anyone can help me get started
1)
If I build a web site on my...
|
by: Rush |
last post by:
I'm new to web development in Visual Studio 2005, and I'm creating a web site
using ASP.NET, and right now its a very simple page with only labels on it.
I have a third party that hosts the site,...
|
by: robert |
last post by:
I am struggling with what I thought would be a very basic concept. I
have a web application which I have migrated to .NET 2.0. Now I
understand that there is no such thing as excluding files from...
|
by: JAdrianB |
last post by:
I've used Publish Web Site before on other projects (C#) with no problems.
New project, converted from earlier version of ASP.Net to 2.0 (VB.Net). When
I do a Build --Publish Web Site to a local...
|
by: mike |
last post by:
I help manage a large web site, one that has over
600 html pages... It's a reference site for ham radio
folks and as an example, one page indexes over
1.8 gb of on-line PDF documents.
The site...
|
by: Max2006 |
last post by:
Hi,
After I right-click on my web application project file and choose
"Publish ." and do the publishing, the result publishable files does not
include the *.ashx files. Is it by design? How...
|
by: =?Utf-8?B?UmljaGFyZA==?= |
last post by:
I have a solution with multiple web apps. Some of the web apps have folders
containing .pdf files, etc. When I publish any of these web apps, the .pdf
files do not get copied; I have to remember to...
|
by: CloudSolutions |
last post by:
Introduction:
For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
|
by: Faith0G |
last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
|
by: isladogs |
last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM).
In this session, we are pleased to welcome former...
|
by: ryjfgjl |
last post by:
In our work, we often need to import Excel data into databases (such as MySQL, SQL Server, Oracle) for data analysis and processing. Usually, we use database tools like Navicat or the Excel import...
|
by: Charles Arthur |
last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
|
by: aa123db |
last post by:
Variable and constants
Use var or let for variables and const fror constants.
Var foo ='bar';
Let foo ='bar';const baz ='bar';
Functions
function $name$ ($parameters$) {
}
...
|
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...
|
by: BarryA |
last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
|
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...
| |