How to resolve the file not found error

vmandem
vmandem used Ask the Experts™
on
My Sharepoint was working fine until this morning. I installed .NET Framework 3.0 but got an error and uninstalled the .NET Framework 3.0. I rebooted the server then when I try to go to Central Administration I get the below error.
Could not load file or assembly 'System.Runtime.Serialization, Version=3.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089' or one of its dependencies. The system cannot find the file specified.

ALSO I CANNOT GO TO ANY DOCUMENT LIBRARY OR ANY LIST FROM THE SHAREPOINT. PLEASE HELP AS SOON AS POSSIBLE
Comment
Watch Question

Do more with

Expert Office
EXPERT OFFICE® is a registered trademark of EXPERTS EXCHANGE®

Commented:
I've seen this before, and without knowing the full setup of what you have installed as far as .NET apps on the server goes, *be careful*... and read this first...
http://geekswithblogs.net/paulmehner/archive/2005/08/03/48970.aspx

But I think you probably just need to reinstall or re-register the .net 2.0 framework in iis... If you have more than sharepoint on here, then it may mess up those mappings in the virtual directory, but I remember this worked for me when I installed .net 3.0 before .net 2.0... (I highly recommend you make a backup of sysstate or take a vm snapshot before trying this)

command below will uninstall it...
C:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\aspnet_regiis.exe -u


then just install it again...
C:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\aspnet_regiis.exe -i

The full list of parameters for "aspnet_regiis.exe" is here...
http://msdn.microsoft.com/en-us/library/k6h9cz8h%28VS.80%29.aspx



Commented:
Re-register the .NET framework 2 .0 as mentioned above aspnet_regiis.exe -i

That will help you fix the issue.

Commented:
Are you guys sure of that? As .net Framework 3.0 uses Asp.net 2.0 in it's web applications. What I'm seeing is that one of your base classes (Serialization) is pointing to version 3.0 of that dll. Check the web.config of the administration website.

Author

Commented:
I did uninstall and re-install .net framework 2.0 but that did not resolve the issue. I now get page not displayed for sharepoint site and central admin site.
Commented:
Did you use the aspnet_regiis commands?  or did you use add/remove programs?  
Is this a production machine?  Is this windows xp?  or windows 2003?
Did you make a backup?  

If you don't have a backup, try this:
1. stop IIS in services.msc
2. uninstall .NET 2.0 from add/remove programs
3. restart computer
4. install .NET 2.0
5. restart computer
6. run windows updates for .net 2.0 SP2

Do more with

Expert Office
Submit tech questions to Ask the Experts™ at any time to receive solutions, advice, and new ideas from leading industry professionals.

Start 7-Day Free Trial