« Previous Next »

Thread: .dll 's that are cached by IIS from the GAC

Last post 09-02-2008 11:12 AM by Zhao Ji Ma - MSFT. 1 replies.

Average Rating Rate It (5)

RSS

Page 1 of 1 (2 items)

Sort Posts:

  • 08-29-2008, 1:31 PM

    .dll 's that are cached by IIS from the GAC

    Hello,

    I have already posed this question elsewhere and AnilR does not seem to be able to answer my question.  I was hoping you could.

    My question is a rarely discussed topic.  It involves dll's in the GAC that the IIS caches.  The problem is this:  with IIS 5.1, I can turn off the caching of the .dll that only returns a hard coded string by executing this line from the command prompt: "cscript.exe adsutil.vbs set w3svc/1/root/myWebApp/cacheisapi 0" (without quotes).  If I do this, and reset the IIS 5.1, I have the ability to replace the same .dll with the same name, version and build.  The only difference would be that the .dll would return different hard coded string.  By this I mean that the calling web application would then retrieve a different string after calling the funtion within the .dll

    If I go and rebuild the .dll to returna different hard coded string and then replace it again in the GAC and then call the same web app, (without reseting IIS), the web app will get the new string too.  But this only works if "cacheisapi" in above command is turned off.  If I don't turn the "cacheisapi" off, then the IIS 5.1 caches the .dll.  This prevents calling web application from retrieving the correct string, even though the .dll has been modified and readded to the GAC.  This is because the IIS is referring to the IIS cache.

    The question is, how to replicate the same line:  "cscript.exe adsutil.vbs set w3svc/1/root/myWebApp/cacheisapi 0" (without quotes), for IIS 7.  This line does not seem to have an effect on the IIS 7?

    Please help.

    Thanks, theadmirableone

  • 09-02-2008, 11:12 AM In reply to

    Re: .dll 's that are cached by IIS from the GAC

    Zhao Ji Ma
    Sincerely,
    Microsoft Online Community Support

    “Please remember to click “Mark as Answer” on the post that helps you, and to click “Unmark as Answer” if a marked post does not actually answer your question. This can be beneficial to other community members reading the thread. ”
Page 1 of 1 (2 items)
Microsoft Communities