Indication Of Duplication When Deployment !!

Indication Of Duplication When Deployment !!

Old forum URL: forums.lhotka.net/forums/t/11609.aspx


st3fanus posted on Monday, October 01, 2012

Hi all...

I have develop silverlight 5 app use CSLA 4.3.12

BUT

I have a confusion when I deployed on win server 2008 with IIS

I have a successfull deployment BUT, when I need to changed a liitle on my application.

And I Re DO again for deployment It's LOOK LIKE that the application is not changed ( AS IF the Old or first app is used on win server IIS )

I Have Tried my app on my laptop It's successfull changed. SO I guess that there is another copy app file when I deploy.

SO What I must Do ( Steps ) when I want to replace with new one ?? I mean : the folder I must copy to wwwroot ? => Currently I Copy from My Host Folder / Project Application into wwwroot, BUT IT'S LOOK LIKE there is no different with OLD App

Sorry for my bad explanation

 

Thanks a lot

stefanus

thaehn replied on Monday, October 01, 2012

Stefanus,

You need to change your homepage.aspx file and replace:

 <param name="source" value="ClientBin/xxxx.zap" (Where xxxx.zap is the zap name)

with:

<%
 string orgSourceValue = @"ClientBin/xxxx.xap";
 string param;
 if (System.Diagnostics.Debugger.IsAttached)
  param = "<param name=\"source\" value=\"" + orgSourceValue + "\" />";
 else
 {
  string xappath = HttpContext.Current.Server.MapPath(@"") + @"\" + orgSourceValue;
  DateTime xapCreationDate = System.IO.File.GetLastWriteTime(xappath);
  param = "<param name=\"source\" value=\"" + orgSourceValue + "?ignore=" + xapCreationDate.ToString() + "\" />";
 }
 Response.Write(param);
%>

This code will reload the xxxx.zap file when it changes.

Todd

Copyright (c) Marimer LLC