C# - How To Prepare An App For Xcopy Deployment?
Feb 3, 2011
I have an asp.net application that I currently deploy to 4 different environments on the client's servers. At the moment we deploy by copying over individual assemblies and content files but the whole process is time consuming and error prone. Basically I'd like a method of preparing the application for deployment that will give me a folder containing the application (no source code etc). No IIS changes are required. It would be good if I could specify different webconfigs for different environments.
I've looked at msbuild, msdeploy, etc and I'm not even sure which is the right tool for the job. I'm tempted to go with a batch file that copies only certain file extensions but I'm sure there must be a better way of doing this.
View 1 Replies
Similar Messages:
Oct 20, 2010
You know what would be really nice is a non installer distro for MVC. Currently I run the installer locally and copy the bits from program files into our project lib folder and point the project assembly references there. I don't mind running an installer to get the VS templates but its a pain to sift through the bits and figure out which ones I need for the site to compile (Esp with MVC3 as there are a number of assemblies). Simply having a zip or better yet a nupack package would be a lot simpler.
Storing the assemblies in our lib folder ensures that everyone is using the same bits and eliminates the need of running an installer on all our servers when there is a new version.
View 7 Replies
Apr 27, 2010
I have the domain name and space and also prepared my website on visual studio. now i want to know how to make it ready, so that i can copy it the hosting server. means what is the prerequisite for hosting? and then how to publish it?
View 1 Replies
Mar 27, 2011
Can I create an incremental deployment package using either Visual Studio 2010 Web Deployment Projects or Web Deploy (Web Deployment Tool) .
I need to automatically select changed files from a source and destination or a change set on TFS and build a deployment package only with the changed files.
View 9 Replies
Oct 4, 2010
I ve completed a web application and now i want to prepare functionality and technical documentation for the same. But i ve never done such documentations. Can someone provide how to prepare such documentations.
View 2 Replies
Aug 26, 2010
How to prepare the ASP.NET MVC Controllers to use Session and at the same time be testable, so in essence not use Session but rather use some Session abstraction? I am using Ninject so your examples could be based on that.
The problem is that the Session object is not available at all times in the controllers (like in ctor's) but I need to store something to the Session at application start (the global.asax.cs also does not have access to the Session).
View 4 Replies
Aug 23, 2010
I have a select query which is executing well. Now, I want to add one more field to that query. That field is not in the current query table, It is in the another table.
How do I join those two tables and get that field value in the existing select query.?
View 5 Replies
Apr 12, 2010
I have following in many controls:
<asp:ControlParameter Name="SvcCluster_Id" ControlID="frmConfigEdit$ddlCluster" PropertyName="SelectedValue" />
Everything was good before I bumped into the problem when declarative binding (SelectedValue='<# Bind("SvcCluster_Id") >') produced the error, because value has not been found in the list. So i moved binding to the code:
protected void frmConfigEdit_DataBound(Object sender, System.EventArgs e)
{
if (frmConfigEdit.CurrentMode == FormViewMode.Edit)
{
var svcCluster_id = DataBinder.Eval(frmConfigEdit.DataItem, "SvcCluster_id");
var ddlCluster = (DropDownList)frmConfigEdit.FindControl("ddlCluster");
if (svcCluster_id != null && ddlCluster.Items.FindByValue(svcCluster_id.ToString()) != null)
{
ddlCluster.SelectedValue = svcCluster_id.ToString();
}
}
}
But now seems like this happens later than ObjectDataSource tries to access frmConfigEdit$ddlCluster...
How to manage this?
I wouldn't like to move everything to the code (I mean creating Control parameters, etc)
p.s. Oops, actually it works ok for DataBound event! Sorry.
View 2 Replies
Mar 26, 2010
i need step by step procedure to prepare crystal report through Data set
View 5 Replies
Jun 21, 2010
I am working on a web application which has around 40 pages. We have separate business and DB layer. But there are still few simple business logic in code behind (CS) page of each aspx file. So when there is any change in that code behind, it lead to complete re-deployment of whole project. Is there any option where I could re-deploy only the corresponding code behind and aspx page alone?
Note : We copy the web contents to the virtual directory for each deployment
View 1 Replies
Mar 21, 2011
how to deploy website and its referenced web services from Dev environment to production environment by using some easy method.
Our deploy structure is basically like Desktop->Dev Server->Production Server.
Now, I create a web service (just named MailingServices for example), I deploy it Dev Server, the URL link should like: http://192.168.3.17:90/MailingServices.asmx and then I deploy it to production server where link is probably like http://202.70.115.114:90/MailingServices.asmx Now I create one asp.net website to consume this mailing services.
I create this website in my desktop computer, and add a reference to MailingServices Dev link which is http://192.168.3.17:90/MailingServices.asmx, and then I check in the website to its dev environment, this stage is fine: Website Dev reference Web Services Dev.
But If deploy this website into its production server, how can I change the url link of that web services from its dev link to live link?
I currently know that when the website is deployed to production server, you can over-write the link in web.config file of website, but asp.net generates some other XML files when it add a web service reference, well I can over-write these xml files too.
Edited
Development Environment:
Server: windows 2008
Web: ASP.NET 3.5/4.0, IIS6.0+
Source Control: VSS 2005, we do not have Automation Build & Continuous Integration
View 1 Replies
Jan 20, 2011
I started learning web services. I learnt about web services, UDDI, WSDL, SOAP etc. and architecture of web services. Visual Studio is running the service in local system successfully.Then I deployed the entire folder of that web service in IIS wwwroot, and tested. Its running successfully.But when I remove the other file from the wwwrootwebService1 folder (I left only service1.asmx and bin folder) then also service is running.
Here I see that only two file are used in ruuning the webservice one is .asmx and another one is webService.dll in bin folder.I'm not able to understand where is SOAP, WSDL, namespace or other things, that are required to run web service.
View 4 Replies
Jan 29, 2010
What are the steps for deploying the .Net Web Application on Linux & apache web server developed using .NET Framework using Visual Studio 2005?
View 1 Replies
Dec 29, 2010
I have an ASP.Net website that I built in a computer science class. I built it in Visual Studio and the solution is on my local drive. How would I deploy this to a real website?
View 3 Replies
Jan 7, 2011
I am using WIX 3.6 for VS2010 to create our MSI's for our web application setups. This is all working fine and all in terms of deployment and uninstall.
I recently allowed the user to specify the virtual directory and application pool names to support side by side installs. This is all fine as I have created my own setup bootstrapper.
The issue is with uninstallation.
If the user does not specify the names and leaves the default values, it will install successfully.
The minute the user updates the names from the defaults, the install process will not remove the app-pool and virtual directory. This is what I have found consistently with my testing.
View 2 Replies
Feb 24, 2010
I have looked through this site and just can't seem to find the answer I am looking for.
We have a multi server setup for our web sites, typically (DEV/QA/PRODUCTION). Our sites are .net which require some sort of build before being deployed. We are using SVN for source control and are looking for a tool/website/something that will allow our project managers to push button deploy changes to the different environments. It seems there is no silver bullet for this, am I correct in this assumption?
I like the functionality of Springloops but can't find any information regarding its use with .net. Sparing details, it would be nice to see a diagram of sorts on the whole end to end process. What I mean by that is, if multiple different tools are the only answer (no silver bullet), then a diagram that shows where the tools sit in relation to the whole process.
View 3 Replies
May 19, 2010
I have a website in C#/ASP.NET that is currently in development. When we are in production, I would like to do releases frequently over the course of the day, as we fix bugs and add features (like this: [URL]. If you upload a new version of the site or even change a single file, it kicks out the users that are currently logged in and makes them start over any forms and such. Is there a secret to being able to do deployments without interfering with users for .NET sites?
View 5 Replies
Feb 5, 2010
I am working on VS 2008 and 3.5 framework. I had three windows services. I placed all three in a single solution, created installer individually for each of them. Then created a setup project. When I build it says build failed . But I checked on the errorlist, (i enabled the diagnostics in options menu), but there was no error at all. I went ahead and installed. There were no issues, But there was no service showed up in the services.msc.
I installed each service individually , using installutil command, it showed up. But my requirement is to bundle these services and deploy to the client. The client should install it.
View 3 Replies
Sep 26, 2010
I am currently trying to setup our complete development process (from dev to production).
We will be using Microsoft Team Foundation Server and I was wondering if there was way to put what version of programs you want in a build.
Let's say we are 20 programmers working on the same project and we only want to deploy changes done by one or two programmers. Is there a way to do that?
I was thinking about using continuous integration to our dev / QA server and than deploy what is ready and fully tested to our production servers.
View 6 Replies
Feb 15, 2011
I have trouble to deploy a mvc site to IIS 6.0. If I deploy it in "simple" http, there is no problems, i can browse my pages, everything's fine...But my site need "https" : so I enable SSL and security certificates, then the site crashes : it display an error 503 : Service temporary unavalaible...Server is a Virtual Machine, if i try to access to IIS in WM (typing "https://localhost/ in a browser), it displays "Connexction was aborted" : Not the same error, but not very different neither...I'm not very familiar with IIS configuration, is there something I missed in config ? Why site is working in http and not in https ?
View 2 Replies
Jun 4, 2010
We are working on an asp.net project. There are 5 developers in the team. The team size might increase in future. Deployment of the project, often creates some problems for us. We are using svn (very much like vss) to update and commit our codes to a common location.Apart from all these, the changes made by one developer sometimes affects the changes made by another. We usually move only the aspx files and dlls to the server. This causes lots of issues to the testing team as the testers need to check the entire application whenever a dll is updated on the server. We are now looking for a deployment method, that includes both pre-compilation as well a means that enables us to do patch releases (like making a change to the aspx.cs alone without having to update the entire dll) If it is not possible, what is the best deployment method that would suit our requirements?
View 2 Replies
Jan 14, 2011
While developing my web application I was testing using the cassini web server and everything works great! So my program is complete and I am trying to publish it out to a client IIS server on a Windows 2008 R2 server. I have created an app.pool for this application and set it to run with a domain admin users (I am not using the "Administrator" account) since the file processing will be writing the file to a NAS device via a UNC path. When I start the debugging on the server and look at task manager it shows that the "w3wp.exe" is running using the domain admin account, but when I run my code it does not give me a run time error I just get the following warning in the event log.
View 11 Replies
Mar 25, 2010
multiple websites in a webfarm. I need to deploy multi lingual sites under iis likewww.xxx.com will point to a folder where I want to keep all the files and bin folder but the folders below like /en, /fr, /es etc will be having the web.config inherited from the root folder. My problem is1. How to share the bin in the root folder with other websites beneath it. like I havewww.xxx.com pointing to xxx directory and I have /en pointing to xxx/en. Rather than me copying the bin folder to every website? I cannot place in gac as this is multi server env. is there a way i can set all the servers gac to get dlls from one directory?
View 1 Replies
Aug 26, 2010
I have an application that is developed with Web forms. I added some new functionlities using MVC by folloiwng the post ttp://www.hanselman.com/blog/PlugInHybridsASPNETWebFormsAndASPMVCAndASPNETDynamicDataSideBySide.aspx . The application works fine in Visual Studio 2008 builtin server but after deployment on IIS 7 with integrated mode, i am facing issues with MVC part of the application. Webform part works fine. Like www.example.com/content/default.aspx (webform) works fine but www.example.com/Home/Index (MVC) doesnt work and saysHTTP Error 404.0 - Not FoundThe resource you are looking for has been removed, had its name changed, or is temporarily unavailable.
View 2 Replies
Jan 4, 2011
I am trying to deploy a asp.net mvc site. My hosting service provider provides me dsn database connection for my sql server 2008 database. I changed my web.config to use dsn connection using this modification in web.config.
<appSettings>
<add key="myDSN" value="evdsn"/>
</appSettings>
In my site I have used asp.net membership provider. I have all the tables of membership provider in my own database. when I deploy the site I get the following error:
My web.config file is as follows
<?xml version="1.0" encoding="UTF-8"?>
<!--
Note: As an alternative to hand editing this file you can use the web admin tool to configure settings for your application. Use the Website->Asp.Net Configuration option in Visual Studio. A full list of settings and comments can be found in machine.config.comments usually located in
WindowsMicrosoft.NetFrameworkv2.xConfig
-->
<configuration> [code]....
View 3 Replies