Msdeploy Sync And Web.config?

Jul 4, 2010

I am using msdeploy to transfer my changes(via a nant script in Team City) that I make to a site and it is great!! I have just one question, I am using msdeploy with the sync feature to make my life easier.I currently exclude the web.config in my msdeploy because I do not know how to change the web.config on the fly. How do I change the web.config on the destination site if I do a sync?

View 1 Replies


Similar Messages:

WebMatrix :: Deploying To Msdeploy Does Not Support A Proxy Server?

Aug 18, 2010

I am trying to deploy through webmatrix but my system Proxy server configuration is not being used. I assume that webmatrix would detect the proxy server settings and use that for the msdeploy calls under the hood. Can anyone confirm this is a know issue?

View 1 Replies

How To Use VS2010 One-Click Publish (MsDeploy) To Deploy Remotely From The Command Line

May 10, 2010

On the remote web server I have installed the remote service http://x.x.x.x/MsDeployAgentService.If I use the Web Application Project's Publish command in VS2010 I can successfully publish to this remote web server and update a specific IIS website.

What I want to do now is execute this capability from the command line.I am guessing it is two steps. First build the web application project using the relevant build configuration:

msbuild "C:MyApplicationMyWebApplication.csproj"
/T:Package /P:Configuration=Release

Then issue the MsDeploy command to have it publish/sync with the remove IIS server:

msdeploy -verb:sync
-source:package="C:MyApplicationobjReleasePackageMyWebApplication.zip"
-dest:contentPath="My Production Website",
computerName=http://x.x.x.x/MsDeployAgentService,
username=adminuser,password=adminpassword

Unfortunately I get an the error: Error: (10/05/2010 3:52:02 PM) An error occurred when the request was processed on the remote computer.

Error: Source (sitemanifest) and destination (contentPath) are not compatible for the given operation. Error count: 1.

I have tried a number of different combinations for destination provider but no joy .Has anyone managed to replicate VS2010 Web Application Project "One Click" Publish from the command line?

View 2 Replies

MSDeploy And "site Under Maintenance" Page / Finding Alternatives

Jan 26, 2011

I am new to MSDeploy as well as IIS admin.

In order to show a "site under maintenance" page we are looking at two alternatives.

1) Have an app_Offline.htm page and sync it to the server when maintenance starts.

2) Create a separate folder with a totally different site (which can show a lot more dynamic information than what we can with the app_offline page). During maintenance, it is being that we change the virtual folder mapping of the site to point to this other folder while we work on updating the site.

Is there a way to change the virtual folder to point to another folder using MSDeploy? Is there any other way to do this via a script rather than having to go to each server and manually change the folder ?

View 1 Replies

How To MSDeploy A Built Website Package To A Virgin IIS Website

Sep 3, 2010

I am trying to automate our build/deployment process.

So far I am using:

a Visual Studio 2010 solution with a main Web Application project (and dependent projects)
MSBuild
MSDeploy
CruiseControl.Net

So after much wrangling and gnashing of teeth, I now have CCNet kicking off an MSBuild script to build, package and deploy the website. The MSBuild script is below:

[code]....

This all works fine as long as on the target machine there is already a website configured in IIS. This doesn't need to be an existing "real" site (it could just be a shell).

View 2 Replies

Tab Order Out Of Sync

Jun 1, 2010

I have set the Tab order of all the controls on the form but when I run the application.the tab order is out of sync.I have used a groupp panel in which the tab works ok but not working in syc out of that. what precautions should I take. Having the same problem in VB.net applicaiton form.

View 3 Replies

.net DropDownList In Sync?

Jun 14, 2010

I have three dropdowns for selecting a year inside a user control. On load I specify the selected value for one drop down. The other two drop downs are automatically getting assigned the same selected value. No matter which dropdown I assign a selected value to, they all three get the same selected value. I've tried recreating a new user control for the dropdowns but the same thing happens.

<%@ Control Language="C#" AutoEventWireup="true" CodeBehind="DropDownTest.ascx.cs" Inherits="WymanOrgManagement.DropDownTest" %>
<p>
<asp:DropDownList ID="ddlStartDateYear" runat="server"> [code]....

why the three dropdowns seem to be in sync?

View 2 Replies

The Un-checking Of The Checkbox Does Not Seem To Be In Sync With The 'hidden' Value?

Feb 24, 2010

When I used the html Helper Checkbox, it produces 2 form elements. I understand why this is, and I have no problem with it except:The un-checking of the checkbox does not seem to be in sync with the 'hidden' value.What I mean is that when I have a bunch of checkboxes being generated in a loop:

<%=Html.CheckBox("model.MarketCategories[" & i & "].Value", category.Value)%>

and the user deselects and checkbox and the category.Value is FALSE, the code being generated is:

<input checked="checked" id="model_MarketCategories_0__Value" name="model.MarketCategories[0].Value" type="checkbox" value="true" />
<input name="model.MarketCategories[0].Value" type="hidden" value="false" />

This is wrong since the Value is False the checkbox should NOT be checked.

View 3 Replies

Sync Production Sub Folders With A Git Repository?

Feb 3, 2011

I'm using asp.net and WebDeploy to publish the latest bits of my website. The production site has a couple folders that I would like to keep in sync, though.

Since it's an asp.net site, I would rather not have my entire repository on the server when I can get by with just the views and dll. Additionally, I would rather not add the extra clutter of additional class projects & files to my production server file system.

How do I keep the folders in production in sync with the master branch in git? An automated solution would be optimal.

View 1 Replies

Databases :: Sync Oracle And SQL Server 2008?

Jun 24, 2010

Does anyone know of a way that I could sync a few contact info views from an OracleDB to SQL Server without spending thousands on syncing software?

View 1 Replies

Web Forms :: Gridview Getting Out Of Sync With Source Data?

Feb 27, 2011

The Patient Scheduling system I have built extracts current inpatient data from an enterprise health system and merges it with data from a seperate database, based on a common key. This is then displayed in a gridview control for browse/update.

At any one point in time, the client list in my system should reflect the current inpatients in the enterprise system.

The problem is that if the user has not refreshed the client list in some time, there may have been a discharge in the enterprise system and the two get out of synch. When the user selects a client from the list to update, the details of an entirely different client (usually the one below), is presented in edit mode. e.g. if the user selects the 4th client in the list, the details for the 5th client are made available for update.

View 2 Replies

Make A TextBox Sync With SelectedValue Of A DropDownList?

Feb 5, 2010

I have a FormView with the following ItemTemplate. What do I have to do to make the Textbox reflect the correct TypeName for the selected campaign?

<asp:Label ID="campaignNameLabel" runat="server" AssociatedControlID="campaignList">Campaign Name: </asp:Label>
<asp:DropDownList ID="campaignList" runat="server" Width="200px" AutoPostBack="True" DataSourceID="campaignsSqlDataSource" DataValueField="CampaignID" DataTextField="Name" SelectedValue='<%# Bind("CampaignID") %>'>
</asp:DropDownList>
<asp:Label ID="campaignTypeLabel" runat="server">Campaign Type: </asp:Label>
<asp:TextBox ID="campaignTypeText" runat="server" Width="150px" Text='<%# Eval("TypeName") %>'></asp:TextBox>

ADDENDUM: I'm trying to do this with zero code. I can make it work if I use a separate data source for the drop-down and the detail fields in the ItemTemplate (i.e. the FormView's main data source), but I can't sync the FormView's data source with the drop-down's selection, because a ControlParameter on the FormView data source can't see control values in the ItemTemplate.

View 1 Replies

Ajax.BeginForm Switches From Async To Sync?

Dec 9, 2010

I'm running into an issue with an async call to the server that only works one time, then it appears to become a synchronous call. Let me try to explain.

It's an MVC 2.0 site, using ASP.NET and Ajax. I'm using the Ajax.BeginForm helper, like so:

<% using (Ajax.BeginForm("Start", null,
new { virtualMachineId = xyz },
new AjaxOptions { UpdateTargetId = "VirtualMachineForm", OnBegin="OnStartingVm" }
)){

[Code]....

Within the updateStartingStatus function, the first part runs every second, every time. However, within the Ajax call, the success result works every second on the first time only. Then on the second time I click on the start button all of the requests queue up. After the starting has completed, about 20 seconds later, I get a bunch of alert windows back to back. So, I can tell that updateStartingStatus runs every second every time, but the ajax call appears to switch to become a sync call after the first time.

I have to fully close it and open it again. The same occurs in IE and Chrome.

One more thing to note is that the updated div (VirtualMachineForm) contains most of the page, including the button being pressed. So it basically replaces the page from under itself. Not sure if that would cause any issues.

Additionally, if I debug in Visual Studio 2010, the call isn't made to the controller action when the issue occurs. So, it appears to be something client-side. I've ruled out any issues server-side.

View 2 Replies

HttpHandlers / Modules :: Sending Second HttpWebRequest In Sync With First Request

Dec 6, 2010

Using a Windows application I am sending a web request to a web page and getting the response back using the following code

HttpWebRequest oRequest1 = (HttpWebRequest)WebRequest.Create(url);
oRequest1.ContentType = "text/xml";
using (Stream stream = oRequest1.GetRequestStream())
{
stream.Write(fileBytes1, 0, fileBytes2.Length); //fileBytes1 - contains the data of first request
}
HttpWebResponse Response1 = (HttpWebResponse)oRequest1.GetResponse();
->The above code works fine
But I need to enhance the code to accomodate following additional scenario
->Send another request to the same web app and
->get the response back

The first request sent contains the credentials to access the web application the second request sent doesn't have credentials, it must use the credentials of first request. I am using the same (following) code for the second request too. I get an error saying that it's looking for credentials

HttpWebRequest oRequest2 = (HttpWebRequest)WebRequest.Create(url);
oRequest2.ContentType = "text/xml";
using (Stream stream = oRequest2.GetRequestStream())
{
stream.Write(fileBytes2, 0, fileBytes2.Length);
}
HttpWebResponse Response2 = (HttpWebResponse)oRequest2.GetResponse();

So how do I accomplish this? Should I be sending the second request using same session or same connection?

View 2 Replies

SQL Server :: Sync Framework 2.1 The Modified Data Cannot Synchronized?

Oct 17, 2010

In the server database table delete and add new data can be downloaded to the client but the table has a field on a data modification cannot be synchronized to the client

View 1 Replies

Web Forms :: Sync Dropdownlist With Gridview - Custom Backcolor For Certain Column?

May 10, 2010

how to synch dropdownlist with gridview? I have dropdownlist on top of gridview. how can I synch with the grid, When user select category the gridview change automatically. how to custom backcolor for certain column? In the same gridview there is column I want to check if value is greater than zero backcolor for the cell will be red.

View 6 Replies

Ajax - Cannot Catch An Error On As Sync Postback (page With Updatepanel)

Feb 5, 2010

I use an updatepanel and I register a handler for endRequest to catch errors: Sys.WebForms.PageRequestManager.getInstance().add_endRequest(EndRequestHandler); On the server an exception is thrown to test the client side. The problem is that in IE and FireFox EndRequestHandler is never called! It works as expected in Opera and Safari. On a simple page with few controls it works as expected in all browsers. What I found out with Firebug is that the response is Content-length: 67, but there is no response (empty tab for response)! The expected response is 53|error|500|Object reference not set to an instance of an object.|

I have not debugged the ajax library precisely but what I have seen is that some code runs to prepare for pageLoading event (maybe because it cannot detect the error?), but there is no information for updatepanels from the response and an error occurs trying to use an object for updatepanels which is null. The error is caught by a try-finally block.

View 2 Replies

C# - Control When A Remote ICal (.ics) File Has Been Updated And The Calendar Should Sync

Mar 24, 2011

I've created a page which dynamically creates an .ics file based on data from our database, that customers can download to add the events to Outlook and iCalendar. This file is sent through the Response, so I don't actually store the file on the server. Since I can provide a webcal:// address to this file, it can also be synced whenever someone changes the settings for an event in our system.

Example .ics: [URL]

However, since our customers sync with a dynamically generated file, this forces our server to generate the file every time their calendar application wants to sync. And since this will cause a couple of hundred thousand requests every hour, the server will take quite a bit of punishment.

So my actual question is: How does Outlook and other calendar applications know when an ics-file has been updated and needs to fetch the updated file? I need to manage this to only generate a new file when there has been an actual update, and not on every single request. The main problem is that we do not wish to store the actual files on the server.

View 2 Replies

C# - Sync Database To Uploaded File Using Windows Service Or Website Code?

Sep 10, 2010

I have a website that occasionally needs to have a handful of the tables in its database updated. The updates come from another system that exports to comma delimited text files. I can then either FTP the text files to the web server, send them in through an admin upload page, or manually log in to Remote Desktop to download the text files. I have all my C# code written to parse the files, check the database contents, and decide what to do.

Should I code the sync logic to be part of a file upload page, protected in the admin section of the site or should I create a Windows Service that constantly looks for files to process in a particular directory that I can drop files in through FTP?

I have used Windows Services in the past and they have worked great, but if I ever have to make a change to the code it can take longer than it would if I just had to modify an ASPX.

Are their security benefits one way or another?

Performance benefits?

ASPX page wins the "ease of maintenance" category.

View 1 Replies

Web Forms :: Sync Data Between Web And Local Version Of Application - Profile Provider Crashed

Jun 26, 2010

I had to restructure my database so I could synch the data between the Web and local version of my application, which I had carelessly let run amok. I finally get all the records and schema into one database but now that I've done that, my Profile system isn't working anymore. I noticed that the relationships between aspnet_Users and _Membership (and my "profile additional items table") don't exist anymore. I ran the aspnet_regsql.exe utility and registered the DB, and I'm surprised that the registration didn't re-establish the foreign key relationships, etc.

Anyway, if someone can give me pointers on how to restore these relationships or direct me to a source that explains it (i.e., what the foreign keys should be named, if there are any other aspnet_ tables that need to be linked together), I'm pretty sure this would take care of my problem. And I just noticed that nothing is in the aspnet_Profile table. Should I start all over with a new database or is this one salvageable?

View 14 Replies

Web Forms :: Trying To Get Footer-links To Sync On Top Level Sites To Subsites In Master Page?

Mar 4, 2011

I want to be able to sync the footer-links on top level sites and subsites. Currently I have 7 links on top level site and 3 on a subsite and 2 on another sub site. How can I set up the code in my master page so the subsites will show the same footer-links as on the top level site. I know the code has Sharepoint controls in it but it is C#code in a master page. So the concept is still in .NET.Here is the code that I have so far, I am unsure about what should go in this line specifically in the code

[Code]....

Here is the rest of the code

[Code]....

[Code]....

View 25 Replies

Architecture :: Get The Form Data And Store The Data Locally And Sync To Database Later

Feb 17, 2011

I need to create a asp .net web application which should have several forms to get the survey data, When the user is out of the wifi or don't have internet access to connect to the server even though the user should have access to the forms or any other tools to input data and store them locally and sync to the database later. What are the options available to do this kind of tasks in asp.net / C# / Sql Server

View 2 Replies

AJAX :: Sync Postback To Form With A Different URL / PORT When Form Contains ScriptManager / UpdatePanel?

Apr 14, 2010

I have a page with a ScriptManager / UpdatePanel. I currently need to PostBack to a https page from an http page (different ports). I also need the same session data. Currently, I copy my form to a new form, and when I postback to my new Target on a new Port, I get a crash in xmlHttp..something. I will have to post more details later.

I'm currently wondering if this is possible. And does anyone know of such a fix. I even tried to Turn off Partial Rendering and I still get crashes. I can't do this until I pull out the scriptManager / UpdatePanel.

View 4 Replies

Visual Studio :: Sync Pages With The Live Site From Somewhere In Visual Web Developer?

Oct 22, 2010

More familar with DreamWeaver. Can i sync pages with the live site from somewhere in Visual Web Developer? Or do I need to use a separate FTP tool.

View 3 Replies

Architecture :: Distributed Caching / Keeping Cache In Sync Between Multiple Webservers Or Even Better Farm Cache Management To Another Server?

Feb 26, 2010

I've got a web application that runs of a state server. It looks like soon it may need to distributed and there will be two web servers behind a load balancer.

This works great for session state but my next challenge is Cache

My application leverages heavily of cache. I understand ASP.Net 4.0 will be offering more here but nothing much has been said about the how too.

There are two challenges that I face

1). Each webserver will have its own copy of cache whereas it would be more efficient to put this to a third server the same as session state is put to state server.

2). The real challenge is keeping cache in sync if a simple dataset derived from the database is changed my code dumps that cache item and reloads the cache. That's all well on one webserver but webserver number two wont know to drop that particular cache item and reload it. This could cause some unexpected problems in the application.

For scenario number 2 I could attempt to do some smart coding so server number two knows to dump the cache and reload it.

My guess is someone else has already been here before and there's probably a better implementation approach rather than writing extra code.

Does anyone know how I could achieve the goal of keeping Cache in sync between multiple webservers or even better farm Cache management to another server?

View 2 Replies







Copyrights 2005-15 www.BigResource.com, All rights reserved