Cowboy
Fri Mar 14 11:03:59 CDT 2008
First, let's make sure I cover two different scenarios:
1. Added .NET 3.x to server
In this case, you may have one of the rare instances where 2.0 assemblies
will not run properly on 3.5. If this is the case, you may have to recompile
the site for 3.5.
Aiming at 2.0 might also be a solution, but since 3.5 is set on top of 2.0,
I am not sure, and have not tested. It makes sense, but I hate to give false
hope when I am a bit clueless on the topic at hand.
2. Just update to SP
Most likely JITTed files are hosed. If so, follow these steps:
Stop IIS and empty out the directory
{WIN_DIR}\Microsoft.NET\Framework\v2.0.50727\Temporary ASP.NET Files
where {WIN_DIR} is normally C:\Windows
You cannot empty this while the web server is running, as the running
site(s) lock the files. Once done, the dependencies should be rejitted and
you should be fine. If that does not work, put the site(s) in new
folder(s) -- copy not move -- and rebuild the site definitions in IIS.
NOTE:
This, to me, is a bug in the way Temporary ASP.NET files are used, but I am
not sure it can be designed around. It is present any time you alter files
that you have dependencies to. I have not, personally, seen it when applying
a .NET Service pack, but it does happen if someone restructures files (read
my next blog entry -- some time today).
--
Gregory A. Beamer
MVP, MCP: +I, SE, SD, DBA
Subscribe to my blog
http://gregorybeamer.spaces.live.com/lists/feed.rss
*************************************************
| Think outside the box!
|
*************************************************
"wardy" <wardy1975@gmail.com> wrote in message
news:98900d7b-9ce2-4177-a531-284e2e8ee610@e25g2000prg.googlegroups.com...
> Hi all,
>
> I have a web application deployed in a Production environment, where
> it has happily been running for the past 2 years on the .NET 2.0
> framework. However, the operations team recently installed the .NET
> 2.0 Framework SP 1 on the server, and immediately certain sections of
> the web site began failing with the errors "Could not load file or
> assembly 'blah' or one of its dependencies. The system cannot find
> the file specified".
>
> I am wondering if others have experienced this issue and/or know why
> the installation of the patch has started causing my application to
> have problems. When we uninstalled the patch the site began working
> as normal again - is my web.config file misconfigured with references
> I don't need and may not exist on the server (I didn't add these
> particular references, the framework did when I compiled), and the
> patch now causes the framework to behave differently in validating
> references??
>
> Thanks