471,316 Members | 1,470 Online
Bytes | Software Development & Data Engineering Community
Post +

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 471,316 software developers and data experts.

Shadow Copy Assw

I am using the CompileAssemblyFromSource method of an ICodeCompiler instance
to dynamically compile an assembly used by a Web Application. The assembly
may be recompiled any number of times during a day as a user changes the
underlying code. Each time the assembly is compiled it's version is updated
e.g. from to and so on.

The assemby is compiled into a directory which has been setup to shadow copy
using the AppDomain.CurrentDomain.SetShadowCopyPath method.

Shadow copying is working fine when the assembly is first compiled (V If I recompile it once the version is incremented (V and
the new version is automatically shadow copied and used. If however I
recompile it a second time, the version is incremented (V but the
new assembly is not shadow copied and the web application continues to use V

If I look in the shadow copy directory (below
C:\WINDOWS\Microsoft.NET\Framework\v1.1.4322\Tempo rary ASP.NET Files) I can
see V and V but V has not been copied.

To force the latest version to shadow copy, I have to recycle the
Application Pool.

It appears that IIS limits the number of shadow copied versions of an
assembly to 2.

How can I force an assembly to shadow copy without recycling the application
pool. Alternatively can I increase the number of shadow copied versions IIS
will handle.

Thanks in advance for you help.
Nov 20 '05 #1
0 1580

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

2 posts views Thread by ICE Srl | last post: by
4 posts views Thread by Barry Kelly | last post: by
2 posts views Thread by Oenone | last post: by
reply views Thread by Patrick F | last post: by
1 post views Thread by Patrick F | last post: by
reply views Thread by =?Utf-8?B?QWxoYW1icmEgRWlkb3MgS2lxdWVuZXQ=?= | last post: by
reply views Thread by rosydwin | last post: by

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.