Fog Creek Software
Discussion Board




Welcome! and rules

Joel on Software

Reloading .NET Assembly in Internet Explorer

I have an HTML page in which a .NET assembly is embeded with an object tag, like this:

<OBJECT id="myObject" name="myObject"
classid="http://localhost/myObject.DLL#myNamespace.myObject" width="1" height="1" VIEWASTEXT></OBJECT>

I want to be able to retrieve the latest version of the assembly when I refresh the page. Currently, I update the assembly version with each build, and if I restart IE completely, the new assembly appears in the download cache, as it should. I want the same thing to happen on a page refresh, without restarting IE altogether.

Possible?

Michael

Michael
Wednesday, March 30, 2005

For ActiveX controls, the trick was to set version information in the CODEBASE value.  (http://msdn.microsoft.com/workshop/author/dhtml/reference/properties/codebase.asp  )  I don't know whether anything similar is supported in .NET.

John Rusk
Friday, April 01, 2005

*  Recent Topics

*  Fog Creek Home