Manny Siddiqui

I am using Visual Studio Team System 2008 Beta 2 on Windows Server 2003. I generated a simple dbml file using the designer and tried to build the project but I get the following errors:

Error 1 Type 'System.ComponentModel.INotifyPropertyChanging' is not defined. C:\temp\Projects\testconsole\DataClasses1.designer.vb 79 13 testconsole

Error 2 Type 'PropertyChangingEventArgs' is not defined. C:\temp\Projects\testconsole\DataClasses1.designer.vb 81 43 testconsole

Error 3 Type 'PropertyChangingEventHandler' is not defined. C:\temp\Projects\testconsole\DataClasses1.designer.vb 350 35 testconsole

Error 4 Type 'System.ComponentModel.INotifyPropertyChanging' is not defined. C:\temp\Projects\testconsole\DataClasses1.designer.vb 350 75 testconsole

Why is that Project's targted version number is 3.5 but strangely enough I could not find the INotifyPropertyChanging interface under System.ComponentModel after digging it with Reflector.

What am I missing here guys Any help is appreciated.

Thanks,

Manny




Re: LINQ Project General System.ComponentModel.INotifyPropertyChanging is not defined!

Jim Wooley

I suspect that you didn't install the 3.5 framework on the server. INotifyPropertyChanging is a new interface in a new build of System.Dll. Check the build number of the library to see if it agrees. The 2.0 build which does not include this interface is 2.0.50727.832 The version with the VPC beta 2 image is 2.0.50727.1378. This is the one that has the interface you need.

Jim Wooley

http://www.devauthority.com/blogs/jwooley

http://www.LinqInAction.net




Re: LINQ Project General System.ComponentModel.INotifyPropertyChanging is not defined!

Manny Siddiqui

Interesting.

I have only two System.dll under the Windows folder. One is in .NET Framework 1.1 folder and the other one in the .NET Framework 2.0 folder.

The version # of the dll in .NET 2.0 folder is 2.0.50727.832!

I had installed the Visual Studio Team System 2008 Beta 2. Visual Studio Help->About shows the following:

Microsoft .NET Framework Version 3.5

Microsoft Visual Studio 2008 Version 9.0.20706.1 Beta2

Does it mean the installation did not install the correct bits or what I am thinking about reinstalling .NET Framework 3.5 only just to see if that fixes the issue.

Any comments in the mean time are appreciated.

Thanks,

Manny






Re: LINQ Project General System.ComponentModel.INotifyPropertyChanging is not defined!

Jim Wooley

Yes, you need to try re-installing the 3.5 framework. The new build of System.Dll will reside in the 2.0 folder. Think of it as a service pack to 2.0. The build you have is the 2.0 one rather than the new 3.5 one (which will be in the 2.0 folder). I have no idea why you might be confused at this point...

Jim

http://www.devauthority.com/blogs/jwooley






Re: LINQ Project General System.ComponentModel.INotifyPropertyChanging is not defined!

Manny Siddiqui

Thanks for your help Jim.

Repairing the .NET Framework 3.5 did the trick! I don't know why it did not install the appropriate bits during first install.

Manny