web-deployment-project

ASP.NET corrupt assembly “Could not load file or assembly App_Web_*”

和自甴很熟 提交于 2019-12-18 12:57:13
问题 I've read through many of the other questions posted on the same issue, but I still do not understand the cause and how to prevent it from happening. In my case, this happens on the production server. I get the same error that has been described in other questions, and I resolve it by re-copying the assemblies into the bin directory. They are not even recompiled files, they are the same ones that were in there before - copied in again, and then it starts working without problems. The weird

Visual Studio 2010 Web deployment task failed

丶灬走出姿态 提交于 2019-12-17 08:34:24
问题 I am trying to use VS2010's 1-Click Publish feature to deploy a test site from my laptop to my server. I have the firewall turned off on both machines and the MS Deployment Service is up and running on both my laptop and the server. However, when I try and publish from VS2010 on my laptop I get the following error: Error 1 Web deployment task failed.(Remote agent (URL https://192.168.1.181/:8172/msdeploy.axd?site=LocationsTest) could not be contacted. Make sure the remote agent service is

Git: application configuration and different environments

拜拜、爱过 提交于 2019-12-12 08:25:44
问题 We use git for most of the web applications we build in our shop, and though the applications themselves use a variety of technologies (PHP, Rails, etc), we generally have a staging and production server for each site. Typically, these servers have different sets of database credentials as well as different environment-based configuration settings (e.g. caching). Our workflow generally involves maintaining two git branches per project: master, which reflects the production server, and staging

Using VS 2008 Web Deployment Projects with ASP.NET MVC

限于喜欢 提交于 2019-12-12 08:11:29
问题 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 have differences (SMTP and connection strings) that need to be updated before uploading and Web Deployment Projects seem to be the right method. Thanks as

How do I exclude the contents of a directory but not the directory itself in MSBuild

风流意气都作罢 提交于 2019-12-12 05:58:00
问题 I'm using a Web Deployment Project 2008 to build my web application. I'd like to exclude the contents of several folders from the build but keep the blank directory itself. However, if I do this <ExcludeFromBuild Include="$(SourceWebPhysicalPath)\ImageCache\**\*.*" /> it will exclude the ImageCache directory itself. So how do I keep the directory? Thanks in advance? 回答1: I'm afraid you must do this in two lines : <ExcludeFromBuild Include="$(SourceWebPhysicalPath)\ImageCache\**\*.*" />

Spring Web App with Maven dependency - class not found during deploy

冷暖自知 提交于 2019-12-12 03:08:29
问题 I'm having project named car-rental which contains business logic (built with maven). I use this project as dependency in other project named car-rental. It's declared as : <dependency> <groupId>com.car.rental</groupId> <artifactId>car-rental-model</artifactId> <version>1.0</version> </dependency> During compilation in IDE Eclipse car-rental see all classes from dependency. But after deploy to Java EE container (for example GlassFish) classes aren't seen. Deployed project in server doesn't

Error while printing crystal report, with that exception message “No printers are installed”

断了今生、忘了曾经 提交于 2019-12-11 14:52:59
问题 I got an exception with message "No printers are installed." while printing a report for depolyed release of our website. I use _rptDocument.PrintToPrinter(1, false, 0, 0); to print a report. I got that exception, even I've more than one printer installed on my machine. Also, I don't get that exception while development, everything while development is going fine. I used "Publish Web Site" and "Web Project Deployment" options to publish/deploy website, but I got the same result. Any

Visual Studio Web Setup Project - deploy outside of web root (wwwroot)

早过忘川 提交于 2019-12-11 06:24:22
问题 I am working with Visual Studio setup projects to install web application. I am looking for a way to change the default physical file installation path. The end result I would like is a Virtual Directory called "MySite" that points to a local path on the server like "C:\Apps\MySite" Is there a built-in option to customize this? 回答1: No, it will install at the physical file installation path of the Web Site where it is installed plus the name of the virtual directory. 回答2: edit the project

Package Publish Web - include IIS settings from IIS manager breaks deployment package build

喜欢而已 提交于 2019-12-11 02:09:41
问题 Im trying to build a deployment package out of VS2010 against a web project and want to include all IIS settings as configured in IIS Manager. However when i enable this i get the following error message Object of type 'manifest' and path 'K:\Sandbox\Web.Crm.Framework\obj\Debug\Package\Web.Crm.Framework.SourceManifest.xml' cannot be created. One or more entries in the manifest 'sitemanifest' are not valid. Application '/ISV/Web.Crm.Framework/' does not exist in site 'Default Web Site'. C:

VS 2008 Web Deployment - prevent folder from being deleted

自作多情 提交于 2019-12-10 18:17:35
问题 I have an ASP.NET MVC 2 project that is built and then deployed using a web deployment project (Visual Studio 2008). The site has an uploads folder in the root of the site where user generated images are saved to. Whenever the build is run (using team city) the uploads folder is deleted meaning any previously uploaded images are deleted for good. Is there anyway in the deployment project that i can tell it not to delete this folder? Or will i have to copy it out prebuild and copy it back in