Web deployment project tries to compile files EXCLUDED from web application project

I am confused about the compiling process. I have a solution with 3 projects:

a. class library project

b. web application project

c. web deployment project

Things were fine with this until I added a new .aspx file to the web app (item b above). I decided it wasn't ready for inclusion yet so I marked it with "Exclude from project". Now these 3 files get a different icon and are in fact excluded from the web app project (i.e. after this Exclude, I can Build the web app project without any errors).  

BUT - if I try to run the app or I try to Build Solution or if I try to Build the web deployment project, the build fails with errors in the excludedfile.aspx.vb file. Well, I know there are errors there (that is why I excluded it). I tried a Notepad view of my .vbproj file for the web app project and I see no evidence of the excludedfile in the structure of the project file.

Is this some sort of a bug? Must I delete the file currently excluded from the project in order to get it to execute? Seems wrong... 


John
0
jjamjatra
1/25/2008 9:59:33 PM
asp.net.config-deploy 12495 articles. 0 followers. Follow

1 Replies
229 Views

Similar Articles

[PageSpeed] 49

I have the same problem. The Web Deployment project doesn't use the web app's .csproj (or .vbproj in your case): it just looks at the file system. 

I'm trying to change the deployment project to use the web app project file. If I have any luck I'll post back.

0
stuartcampbell
2/8/2008 4:41:19 PM
Reply:

Similar Artilces:

Web Deployment Project deploying files not included by Web Application Project
Recently my boss asked me to find a way to share a web site project between 2 separate projects which will only share a subset of the files in the folder.  I created 2 web applications projects in the folder and eliminated the web site project.  I discovered when I publish the web application projects, that it wasn't compiling the .as*x pages, so I looked into web deployment projects.  The problem I'm having with web deployment projects is that when I build them from the solution configuration, it copies all the files in the web project to the deployment folder and I c...

Error when Deploying and Signing Web Application project with Web Deployment project
I have a Web Application project that needs to be deployed and signed using Web Deployment projects. When I delete the global.ascx file I'm able to do the deployment and sign the output assembly. The error I'm getting without signing the assemblies is "An error occurred when merging assemblies: ILMerge.Merge: The target assembly 'HelloWorld' lists itself as an external reference.” .  Global.ascx or .asax? The usual cause of a signing error is when a reference is not signed.  Is the global.asax.cs or .vb marked as conte...

Web Deployment Project outputs too many files from Web Application Project
Hi everyone, I just downloaded and installed the final releases of the Web Deployment Project and Web Application Project. I created a simple Web Application Project, and then a Web Deployment Project for that web app. When I click Build on the Web Deployment Project context menu, the build succeeds, but in the target folder, I find more files than are necessary. Included are the vbproj, "My Project" folder, "obj" folder, and the files within those folders. This may be naive, but I was expecting the same results as right-clicking the Web App project and choosing Publish; just with the add...

Web Application Projects with Web Deployment Projects...
Hi there,  Does anyone have any experience in using the Web Deployment Project pieces to deploy Web Application style projects (rather than the web site projects model)? We have a rather larger eCommerce site that uses WAP model (it was originally a website model, but we ran into so many problems with compile times, temp .dll file lockups at compile etc that we moved it to WAP a long time ago). What's strange is that the project compiles fine normally when we're not using the Web Deployment Project and everything is fine. However, the second we hook the WDP stuff up, we'r...

Web Application Project and Web Deployment Project
I went to http://msdn2.microsoft.com/en-us/asp.net/aa336619.aspx and downloaded the web deployment project. Installed it and tried to create a deployment project for my web application project. However, I do not get the menu item. I've tried this with existing WAP's, new WAP's, but no luck. I have VS 2005 team developer, with SP1 and Team Explorer installed.I've tried the steps mentioned through out this post: http://forums.asp.net/thread/1502324.aspx but still have no luck in getting the menu item.Any help would be appreciatedWayne...

Web Deployment Project with Web Application Project
I currently have a working Solution that contains 3 VB class library projects and one Web Application Project and it is working fine. I would like to use the web.config replacement functionality from the Web Deployment Projects. I add a Web Deployment project and keep the defaults, and the build is broken. Whenever I try to build, I get the following error: error ASPPARSE: Could not load type 'MyWebApp.Page1'. Done building project "MyWebApp.vbproj_deploy.wdproj" -- FAILED. I have searched on this and found some information, but it doesn't seem to help. I&#...

Web Deployment Project and Web Application Project
 Hi! Maybe I have missed something, but shouldn't there be possible to do a web deployment project of a web application project? I have followed this guide http://msdn2.microsoft.com/en-us/library/aa479568.aspx, but  I can't get it to work without building the web application project first. With TFSBuild it fails even if I build the web application first. The error looks like this: C:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\aspnet_compiler.exe -v /WebDepWeb.csproj -p <MySourceFolder>\WebDepWeb -f <MySourceFolder>\WebDepBuild\Binaries\Release\_PublishedWebsi...

Web Deployment Project failing for Web Application Project
I have a solution containing 40+ projects including a Web Application Project and Web Deployment Project.  When I compile the solution excluding the WDP, it is successful.  When compiling including the WDP, it fails.  The failures are odd because they include compile time errors with the user controls code-behind complaining ala: Error 19 'Picis.Web.Applications.UserPreferences.UserPreference' does not contain a definition for 'GetCategoryName' c:\PWA\Development\Sources\PicisWeb\Picis.Web\Apps\UserProfile\UserPreferences\Engine\UserProfileEngine.ascx.cs 4...

Web Project Conditional Compilation for Web Deployment Project
I need to compile a couple different configurations Release/Debug/etc. based on custom compilation constatns. My web pages code is based on the custom compilation constants. I wanted to modify web.config before compilation automatically, because the conditional Compilation Constants settings are moved to the web.config in VS 2005. The only way I found is to modify web.config before the build and modify back after the build is done. I created a custom class derived from Microsoft.Build.Utilities.Task. This class overrides the Execute() method. In this method I modify the specifed web.con...

Difference Between Web Application Projects and Web Deployment Projects
....what's the difference? Web App Projects sounds like everythng I want, but what does it do that Web Deployment doesn't? First of all, here are two highly recommended blog posts that you may want to read about Web Application Projects and Web Deployment Projects.  http://weblogs.asp.net/scottgu/archive/2005/12/07/432630.aspx http://weblogs.asp.net/scottgu/archive/2005/11/06/429723.aspx In a nutshell, a web deployment project is associated with a web site project and is a step that you may want to take before your deploy your application.  You can do post processing on ...

Web Application Projects & Web Deployment Projects
What is the difference between both? I can't find the answer! thanks Hi, A Web Application Project (WAP) is simply another project model aprt from the default Website Model in VS 2005. WAP is similar to VS 2003 web project model. http://webproject.scottgu.com Whereas a Web Deployment Project(WDP) is used to deploy a web project and provides flexiblity while deployment. See this link for details: http://weblogs.asp.net/scottgu/archive/2005/11/06/429723.aspx Hope this helps, VivekSocial Networking Platform in ASP.NET || Join now: CodeASP.NET Community Please mark the most helpful repl...

web deployment project won't compile when doing a web.config file section replacement on a custom section
The custom section in my web.config file looks like: <configSections>    ....    <section name="management" type="Integration.CustomConfiguration.ManagementSection, Integration.CustomConfiguration" />    ....</configSections> .......<management>    ....</management> The web project builds fine, however, when I attempt to build using a deployment project (so that I can do web.config file section replacements) I get the following error:Error    34    An error o...

Web Deployment Project & Web Application Project
Hi.It seems as if you don't have a "traditional" web project (i.e. not a Web Application Project) in your solution, the "Add Web Deployment Project..." option is  not available for a Web Application Project. However, once you add a "non-Web-Application-Project-web-project", the option appears.Thought I'd share if anyone else runs into the same issue. (Or maybe it's just my environment) Daniel Brüntesonhttp://www.numlock.se Hi Daniel, Do you have the lastest version of Web Application Projects?  I have the February release installed (http://msdn.microsoft.com/asp.net/reference/i...

How to use web deployment projects with multiple web application projects.
I followed the guide on this page http://support.microsoft.com/kb/307467 "How To Create an ASP.NET Application from Multiple Projects for Team Development" and I now have my main app at the root of the application and I have all of the sub applications as sub directories of the root application.  It all works great when I do a normal debug build or a normal publish.  The problem is that I have nested sitemaps, nested master pages, and of course, nested web.config files.  Basically the root app has a master page, sitemap, and web.config file and each child app ...

Web Deployment Project / Setup Project and editable web.config
I'm working on an installer for a website. The Installer will prompt the user for the web settings such as as various AppSettings. How would you recommend implementing this? Below I describe my initial thoughts but they seem over complicated !!!! My first idea is to created the Web Deployment Project and create a web.config section overwrite file, and then using it in the usual manner to overwrite the web.config appSettings section at installation time.Property Pages->Deployment section to "appsettings=appsettings.config"Then to make this appsettings.config file editable by a Custom ...

What's the different of Web Application Projects and Web Deployment Projects ?
What's the different of Web Application Projects and Web Deployment Projects ?I have read some articles about WAP and WDP, but i feel confuse between WAP / WDP and  aspnet_compiler.exe under .NET Framework folder .because all of them is use for deploy the web application and compile the resource (eg. *.VB, *.aspx ,*.ASCX etc...) to a single or mutli assambly Library, so i wonder what the different between them. i can using aspnet_compiler.exe to compile a library simply , so why i need WAP / WDP?My Blog : http://mingalive.mysinablog.comMy Web : http://www.aspvista.net ...

Problem when deploying Web Application project over VS2005 Web Site project
Hi,  we ran into this issue yesterday evening when we were trying to deploy new code on production box. It was running previous version of our app that was VS 2005 Web Site project, but the new version was migrated into Web App project. New build was tested on sandbox and even on the same production machine (but under different, non public web site configured there) and was working fine. However, when we deployed on production web site, we got this error:Compiler Error Message: CS0246: The type or namespace name 'ProfileCommon' could not be found (are you missing a using directi...

Confused by Resource Management with Web Deployment Project for Web Application Project
Web Deployment compiled my whole website into a single assembly: Web_Deploy.dll, it includes Global.asax, GlobalResources, pages ... etc. But in my C# Code, I want to use the Resource, so I say: lblTitle.Name = Resources.Portal.PageTitleOf course, I created a GlobalResource file: Portal.resx with an entry as PageTitle. When I look at the source code generated by VS.NET for resource file, it has one line like this:global::System.Resources.ResourceManager temp = new global::System.Resources.ResourceManager("Resources.Category", global::System.Reflection.Assembly.Load("App_GlobalResou...

Will Web Deployment Projects and/or Web Application Projects be localized to Spanish ?
I'm getting reports that there's difficulties installing the English language version of WDP over the spanish language version of VS 2005.1. Will WDP and/or WAP be localized to spanish ?2. Can WDP in english be installed over a spanish language VS 2005 ?Thanks!Juan T. Llibreasp.net faqforos de asp.net, en español...

Web Application Project & Web Deployment Project, but not aspnet_merge.exe?
I have a solution that is made up of 1 Web Application Project, and several different Class Library projects.  When I build the solution, I build the class libraries first and the Web App Project builds last.  Everything works perfectly.I have specific namespaces set up such as:MyCompany.MyProject (Class Library)MyCompany.MyProject.Common (Class Library)MyCompany.MyProject.Persistance (Class Library)MyComapny.MyProject.Web (Web Application Project, that references the other projects)I have been deploying to a staging area via the Publish Web feature of VS 2005 (which then publ...

Web Deployment of a Web Application:why the vbproj file is in the Web Deployment folder
Hello, I'm an old ASP and new ASP 1.1 developer.Now I have to work with ASP 2.0 and I'm testing the new features but there are things that are not clear.. I created a web application (converted from an ASP.NET 2.0 web site) and I was trying to build the web application project.These are the Property Pages Settings:Configuration:ReleaseCompilation: Allow this precompiled site to be updatable .. checkedOutput Assemblies: Merge all outputs to a single assembly  is checked                    ...

Web Deployment Projects
I've been using the new beta of the Web Deployment Projects. Cool stuff. One problem I have with it is this. I have specified some Web.config file section replacements. It is working just great, except that in the web.config file replacement files, some have comments in them that are not copied into the final web.config file. I wish that they were. For example, here is a snippet from connectionStrings.config file that will be inserted into Web.config...<connectionStrings>  <!--If using Oracle, please use below uncomment below section         <ad...

Web deployment projects and web.config file section replacement
Hi,I am trying to get to grips with the Web Deloyment projects and it keeps on failing to compile - falling over when it comes to the web.config file section replacement.Has anyone got this bit working?  I keep on getting the error:Error    1    web.config(1): error WDP00002: missing section appSetting.I'm wondering if it has anything to do with the format of the appSetting file I am using.I have added 'appSetting=/config/staging/appsettings.config;' to the deployment project and then have the appsettings.config file formatted like this:<?xml version="1....

Problems deploying Dynamic Data web application using "Web Deployment" project
Hi,  When I attempt to deploy a dynamic data web application using a "web deployment" project, only about half of the folders inside the "DynamicData" folder get copied properly. Here are the steps to reproduce. Prerequisites: Visual Studio 2008 .NET 3.5 SP1 Web Deployment projects add-on installed (I forget the exact name of this tool) In VS2008, go to File, New Project, Dynamic Data Web Application Right click on WebApplication1 and select "Add Web Deployment Project..." Accept the defaults and click OK. Right clik the web dep...

Web resources about - Web deployment project tries to compile files EXCLUDED from web application project - asp.net.config-deploy

Application - Wikipedia, the free encyclopedia
Text is available under the Creative Commons Attribution-ShareAlike License ;additional terms may apply. By using this site, you agree to the ...

Patent application shows how Apple Watch could measure ambient sound to adjust volume of iPhone alerts ...
iPhones could in future automatically sound louder or quieter notification alerts depending on the level of background noise. A patent application ...

Stugan Games Accelerator Opens Applications for 2016
Games accelerator Stugan has opened its application process for its 2016 summer program. The program will accept 20 aspiring game developers, ...

eHosting DataFort to provide next generation data centre services with its Cisco Application-Centric ...
Al-Bawaba eHosting DataFort to provide next generation data centre services with its Cisco Application-Centric Infrastructure ... Al-Bawaba ...

Remote application server streamlines Windows desktop delivery
... that they need is therefore a challenging task. Cross platform solutions specialist Parallels is launching a new version of its Remote Application ...

Tech City UK received just 37 applications for a visa route that allows 200
Tech City UK, a taxpayer-funded government organisation, has received just 37 applications since April 2015 for a dedicated technology visa that ...

MBA: Mortgage Applications Increased in Latest Weekly Survey, Purchase Applications up 25% YoY
From the MBA: Rates Drop, Refi Applications Surge in Latest MBA Weekly Surve Mortgage applications increased 9.3 percent from one week earlier, ...

Mortgage applications drop 2.6%
Mortgage rates fell last week, but so did record amounts of snow across much of the East Coast. Here's the connection.

Bjarke Ingels impressed by graduate's video job application
BIG founder Bjarke Ingels says he is "honestly impressed" by young job applicant Étienne Duval, whose covering letter is an animated rap that ...

Taiwan market: Foxconn leads patent applications in 2015
Hon Hai Precision Industry (Foxconn) topped local companies in the number of patent applications in 2015, with 659, according to data released ...

Resources last updated: 2/18/2016 8:37:47 AM