web-deployment-project

How do I automate repetitive tasks post-build?

I run an ASP.NET website solution with a few other projects in it. I've known that MSBuild projects are capable of this, but is it the best way? Are they easy to create? Is nAnt, CruiseControl.NET or any other solution better? When I build the site (using Web Deployment Projects), can I automate part of the build so that it does not cop...

Does the Microsoft Report Viewer Redistributable 2008 really require .NET Framework version 3.5?

I'm packaging up a .NET 2.0 based web app for deployment through a Windows Installer based package. Our app uses Report Viewer 2008 and I'm including the Microsoft Report Viewer Redistributable 2008 installer. When I check the download page for Report Viewer 2008, it lists .NET 3.5 as a requirement. Is having .Net 3.5 installed real...

Do I need to copy the .compiled files to the production server?

I'm using a deploy project to deploy my ASP.net web application. When I build the deploy project, all the .compiled files are re-created. Do I need to FTP them to the production web server? If I do a small change do I need to copy all the web site again? ...

Any recommendations for deployment from SVN, with version numbers written into my code automagically?

I've gotten comfy with SVN, and now I need a way to deploy my code to staging or live servers more easily. I'd also like some method for putting build info in the footer of this site to aid in testing. Site is PHP/MySQL. ...

ASP.Net application cannot Login to SQL Server Database when deployed to Web Server

I am having a problem with deploying a ASP.NET V2 web application to our deployment environment and am having trouble with the sql server setup . When I run the website I get a Login failed for user 'MOETP\MOERSVPWLG$'. error when it tries to connect to the database. This seems to be the network service user which is the behaviour I wa...

Diagnosing Bad OutputPaths: "The OutputPath property is not set for this project" (in the wonderful world of web deployment projects)

Starting with the error: Error 81 The OutputPath property is not set for this project. Please check to make sure that you have specified a valid Configuration/Platform combination. Configuration='Staging' Platform='AnyCPU' C:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\Microsoft.Common.targets 490 9 crm_deploy We have...

Access denied when creating a virtual directory via Web Deployment Project

I’m trying to use a (VS 2008) Web Deployment project in a TFS solution to deploy the web site to the (TFS 2008) build server to run web based unit tests. For some reason, that I can't yet figure out, it is failing to create the virtual directory: Using "CreateVirtualDirectory" task from assembly "C:\Program Files\MSBuild\Microsoft\WebD...

How do I compile an ASP.NET website into a single .DLL?

I have finally finished my web site. I published it and I was surprised at the results. Although the App_Code compiled into a single .dll, every pages code behind compiled into it's own .dll. How do i make it so that it is one .dll? Also, is it possible to compile everything (SubSonic,AJAX,etc) into that same single .dll? ...

Deployment Project dlls cause 'type x exists in both' errors

I have a WebApplication project, a business logic project, and a WebDeployment project for the web app. When I build solution, the deployment "Release" bin contains 1 dll for each of the projects - so I get one for MyWeb.dll, MyWebBusiness.dll, and MyWebDeploy.dll. When I try to run the site, it sees the same type in both MyWeb.dll...

Question about Copying vs Publishing website

I would appreciate opinions or suggestions. For several years, I have had an html and javascript website that was housed on a shared Apache server hosted by Wild West. Recently I decided to migrate it to .NET 3.5 and put it on a shared Windows IIS7 server also hosted by Wild West. I rewrote all of the pages using Visual Studio 2008,...

Web Deployment Project builds files that are no longer part of the project

This is the error I get: Error 101 Could not load type 'control'. /Test.vbproj/x.ascx 1 1 WebDeployProject This is a left over file that was part of the project last week, but one of the developers deleted it from the project. I have to manually delete the file in order to get the WDP to build. Is there a way to tell the WDP...

Visual Studio 2008 tries to convert a web deployment project every time I open the solution

I am using a web deployment project in Visual Studio 2008. Now, every time I open my ASP.NET web project solution which contains the web deployment, Visual Studio asks to convert the project (I guess from VS 2005 to 2008). I do the conversion and save, but if I close an re-open the solution, VS insists on trying to convert the project. ...

Is there a way to get rid of aspx placeholder files in a ASP.NET web deployment project?

I'm using a web deployment project in order to precompile my ASP.NET 3.5 web project. It creates a single extra DLL for the code in aspx and ascx files. And, for every aspx file there is a placeholder aspx file (empty) which needs to be copied to the server. I'd like to simplify the deployment process. Is there a way (configuring the II...

How to backup a Web.config before Installing with VS MSI Installer

I am using a regular Visual Studio Setup Project to deploy my ASP.NET application. I need to handle the case of an existing web.config existing in the target directory. When one is found, it needs to be renamed before the install takes place. If this does not happen, the new web.config will not overwrite the old. How can I get my custo...

ASP.NET Web Deployment Projects: getting rid of .compiled files

I'm using a Web Deployment Project in Visual Studio 2008 in order to prepare my ASP.NET application (ASP.NET web application, not ASP.NET web site) for being copied to several servers. I have to copy the files on local staging servers, on different servers via FTP and sometimes I have to fetch them from customers' servers. So, it would...

How to disable warnings in Visual Studio for a Visual Basic Web Deployment Project

Hello, For our VB.NET websites we use SVN for Source Control and CruiseControl.NET for continuous integration. To use the SVN build number in the compilation by CruiseControl.NET we need to use Web Deployment Projects. We then replace in the configuration file the Version field with this variable from SVN Labeller $(CCNetLabel) Th...

Web app deployment Best Practices : how to manage local & live files?

Hi, I am writing php web applications, and simply deploy them via FTP. To make it work, I often have some tweaking/debugging to do given that I have little control over the (free) web server hosting me, so what's working in my local environment might not work live. For example I keep a separate php file containing class_db_myapp.php wh...

Using VS 2008 Web Deployment Projects with ASP.NET MVC

Has anyone got a Web Deployment Project to work with ASP.NET MVC? When I open the "deployed" project, a lot of the files are missing that MVC requires and makes it tough to Publish to the server with all the missing files in the project. Or... Is there a better way than a Web Deployment Project to modify the Web.Config for MVC apps? I ...

How to force-create a folder that has no content in an ASP.NET Web deployment project

I have a problem in a project wherein my App_Resources folder has the following structure: App_Resources CTemp Images The problem is, while the Images folder has content files, CTemp does not. The result is that the folder is not created during installation, after which an error occurs because a lot of different parts of the applic...

Adding to built-in ExcludeFromBuild ItemGroup with Web Deployment project

I've added a Web Deployment Project to my solution to create a clean deployment of my web application. This works mostly as expected... i.e. builds the source & then copies the files to be deployed to a /Release folder (and excludes things like source files and my .svn folders, etc). But now I want to explicitly exclude some other files...