Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsFree MagazinesWhite PapersSubmit Content
Discussion GroupsASP.NETWindows FormsLanguages.NET FrameworkVisual Studio.NET
Articles.NET FrameworkASP.NETToolsWindows Forms
.NET DirectoryOpen Source ProjectsUser GroupsWeb Resources
Related Topics
Visual Basic 6SQL ServerMS AccessOther DB ProductsMS Server ProductsMore Topics ...

.NET Forum / ASP.NET / General / March 2008

Tip: Looking for answers? Try searching our database.

.NET Framework 2.0 SP1 causes application to fail on references

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
wardy - 14 Mar 2008 14:31 GMT
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
Cowboy (Gregory A. Beamer) - 14 Mar 2008 17:03 GMT
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).

Signature

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!

*************************************************
> Hi all,
>
[quoted text clipped - 16 lines]
>
> Thanks
Cowboy (Gregory A. Beamer) - 14 Mar 2008 18:39 GMT
I have now blogged the issue I was having. It is different from yours, but
some of the symptoms are identical:
http://tinyurl.com/3chgcj

Signature

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!

*************************************************
> Hi all,
>
[quoted text clipped - 16 lines]
>
> Thanks
wardy - 14 Mar 2008 19:47 GMT
Hi Gregory,

Thanks for the information....to clarify all I was doing was
installing the SP1 patch for .NET 2.0 for an existing 2.0 install.  It
is interesting that the temporary files could be the issue - I never
thought to go down that path of debugging.  In the interim while
trying to figure out the "why", we did get around the problem by
simply commenting out the offending references in the web.config files
as the application does not use them directly so they are not
necessarily required (it references to the "stdole" object that is
causing the grief).

Strangely I had assumed that a server reboot would clear out the
temporary .NET files, but now that I think down that path they are
never cleared on my development machine when I reboot, so the server
reboot after the install would not have remedied this problem either.

I will try your suggestion of deleting the temporary .NET files on the
server and seeing if that fixes the issue and I'll let you know how I
make out with it.

Thanks
wardy - 14 Mar 2008 20:24 GMT
Well, I attempted the temporary .NET file deletion, and it hasn't had
any effect as I still get the same error.

I didn't quite understand your approach for "If that does not work,
put the site(s) in new
folder(s) -- copy not move -- and rebuild the site definitions in
IIS".  Are you saying to put the site in a new virtual directory?  Or
are you talking about moving the site files from one physical folder
to another?  And I'm not sure what you mean by rebuilding the site
definitions in IIS....is that something that I have to do?

P.S. While I was on the server, I noticed that the .NET 3.0 framework
has been installed, though it is on both servers so I don't think it's
the issue unless somehow it interacts strangely with the 2.0 SP1
release, because the server without the 2.0 SP1 release works fine
with the 3.0 on there...

Rate this thread:







Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.