[Mono-list] Code behind and cached dll

Jeff Love dentrixjeff@hotmail.com
Tue, 17 Feb 2004 13:39:00 -0700


This is a multi-part message in MIME format.

------=_NextPart_000_0003_01C3F55B.66AC41E0
Content-Type: text/plain;
	charset="us-ascii"
Content-Transfer-Encoding: 7bit

I have started using the ASP.NET functionality today and love it. However I
am having a problem with code behind. The first time that I create a form
with the code-behind code everything works properly. If a make a change to
the code behind .cs file and rebuild the .dll my changes are not shown. It
appears as if it is caching the assembly that is generated. Here is some
more information that might be helpful:

 

1.	I am using Visual Studio.Net 2002 on my development machine and
Redhat 9 with mod_mono on my server.
2.	The problem occurs both when I compile the dll in Visual Studio.NET
and on the server.
3.	If I view the .dll assembly in a decompiler I can see that my
changed code does exist in the .dll in the bin folder.
4.	If I kill the mono processes and restart the xsp server then the
changes show. 

 

I can workaround this problem by killing all mono processes and then
restarting the server, but I shouldn't have to do that everytime I make a
change to a file. Any ideas on what I might be doing wrong? Thanks.

 

Jeff LOve


------=_NextPart_000_0003_01C3F55B.66AC41E0
Content-Type: text/html;
	charset="us-ascii"
Content-Transfer-Encoding: quoted-printable

<html xmlns:o=3D"urn:schemas-microsoft-com:office:office" =
xmlns:w=3D"urn:schemas-microsoft-com:office:word" =
xmlns=3D"http://www.w3.org/TR/REC-html40">

<head>
<META HTTP-EQUIV=3D"Content-Type" CONTENT=3D"text/html; =
charset=3Dus-ascii">


<meta name=3DGenerator content=3D"Microsoft Word 11 (filtered medium)">
<style>
<!--
 /* Style Definitions */
 p.MsoNormal, li.MsoNormal, div.MsoNormal
	{margin:0in;
	margin-bottom:.0001pt;
	font-size:12.0pt;
	font-family:"Times New Roman";}
a:link, span.MsoHyperlink
	{color:blue;
	text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
	{color:purple;
	text-decoration:underline;}
span.EmailStyle17
	{mso-style-type:personal-compose;
	font-family:Arial;
	color:windowtext;}
@page Section1
	{size:8.5in 11.0in;
	margin:1.0in 1.25in 1.0in 1.25in;}
div.Section1
	{page:Section1;}
 /* List Definitions */
 @list l0
	{mso-list-id:1689791893;
	mso-list-type:hybrid;
	mso-list-template-ids:1061612048 67698703 67698713 67698715 67698703 =
67698713 67698715 67698703 67698713 67698715;}
@list l0:level1
	{mso-level-tab-stop:.5in;
	mso-level-number-position:left;
	text-indent:-.25in;}
ol
	{margin-bottom:0in;}
ul
	{margin-bottom:0in;}
-->
</style>

</head>

<body lang=3DEN-US link=3Dblue vlink=3Dpurple>

<div class=3DSection1>

<p class=3DMsoNormal><font size=3D2 face=3DArial><span =
style=3D'font-size:10.0pt;
font-family:Arial'>I have started using the ASP.NET functionality today =
and
love it. However I am having a problem with code behind. The first time =
that I
create a form with the code-behind code everything works properly. If a =
make a
change to the code behind .cs file and rebuild the .dll my changes are =
not
shown. It appears as if it is caching the assembly that is generated. =
Here is
some more information that might be =
helpful:<o:p></o:p></span></font></p>

<p class=3DMsoNormal><font size=3D2 face=3DArial><span =
style=3D'font-size:10.0pt;
font-family:Arial'><o:p>&nbsp;</o:p></span></font></p>

<ol style=3D'margin-top:0in' start=3D1 type=3D1>
 <li class=3DMsoNormal style=3D'mso-list:l0 level1 lfo1'><font size=3D2 =
face=3DArial><span
     style=3D'font-size:10.0pt;font-family:Arial'>I am using Visual =
Studio.Net
     2002 on my development machine and Redhat 9 with mod_mono on my =
server.<o:p></o:p></span></font></li>
 <li class=3DMsoNormal style=3D'mso-list:l0 level1 lfo1'><font size=3D2 =
face=3DArial><span
     style=3D'font-size:10.0pt;font-family:Arial'>The problem occurs =
both when I
     compile the dll in Visual Studio.NET and on the =
server.<o:p></o:p></span></font></li>
 <li class=3DMsoNormal style=3D'mso-list:l0 level1 lfo1'><font size=3D2 =
face=3DArial><span
     style=3D'font-size:10.0pt;font-family:Arial'>If I view the .dll =
assembly in
     a decompiler I can see that my changed code does exist in the .dll =
in the
     bin folder.<o:p></o:p></span></font></li>
 <li class=3DMsoNormal style=3D'mso-list:l0 level1 lfo1'><font size=3D2 =
face=3DArial><span
     style=3D'font-size:10.0pt;font-family:Arial'>If I kill the mono =
processes
     and restart the xsp server then the changes show. =
<o:p></o:p></span></font></li>
</ol>

<p class=3DMsoNormal><font size=3D2 face=3DArial><span =
style=3D'font-size:10.0pt;
font-family:Arial'><o:p>&nbsp;</o:p></span></font></p>

<p class=3DMsoNormal><font size=3D2 face=3DArial><span =
style=3D'font-size:10.0pt;
font-family:Arial'>I can workaround this problem by killing all mono =
processes
and then restarting the server, but I shouldn&#8217;t have to do that =
everytime
I make a change to a file. Any ideas on what I might be doing wrong? =
Thanks.<o:p></o:p></span></font></p>

<p class=3DMsoNormal><font size=3D2 face=3DArial><span =
style=3D'font-size:10.0pt;
font-family:Arial'><o:p>&nbsp;</o:p></span></font></p>

<p class=3DMsoNormal><font size=3D2 face=3DArial><span =
style=3D'font-size:10.0pt;
font-family:Arial'>Jeff LOve<o:p></o:p></span></font></p>

</div>

</body>

</html>

------=_NextPart_000_0003_01C3F55B.66AC41E0--