.net – Installation of .Net 3.5 creates problem in ASP.Net 2.0 site

.net-2.0.net-3.5visual-studio-2005

I am working on ASP.Net 2.0 website and I have a strange problem.
First let me give you details about my environment.
I am using

Win XP SP2
Microsoft Visual Studio 2005 Version 8.0.50727.762 (SP.050727-7600)
Microsoft .Net Framework 2.0.50727 SP2
Backend is MySQL  (uses CoreLab.MySql.dll)

Now couple of days back I had to start working on building a website using CMS Application (Sitefinity 3.6). This requires installation of .Net Framework 3.5 SP1.

After this installation my Asp.Net 2.0 website started to behave strangely. Whenever app tries to do some data operation (e.g log in page tries to verify user in database) I get this error:

Method not found: 'Int32 System.Data.Common.DbDataAdapter.Fill(System.Data.DataSet, System.String, System.Data.IDataReader, Int32, Int32)'.

Please let me know if anyone has ever face this problem. And is there any way to fix this problem because now I need to start working on new set of functionalities for ASP.Net 2.0 website.

Thanks,
Gaurav

Best Answer

Installing .net 3.5 SP1 also installs .net 2.0 SP2. There are some stuff in 2.0 that can get broken by that, including some stuff related to ngen images, assembly loading, JIT optimization, and other stuff. Not sure about the specific error you got though...

Try recompiling your 2.x app on a machine with 2.0SP2 installed if it was compiled on a machine with an earlier version of .net 2.0. And/or reinstall 3.5SP1 to ensure everything got installed properly.

Related Topic