DinuA
asked on
System.Data.Linq not imported
I just installed VS 2012.
In the file <dbname>designer.vb (generated in VS 2010) Visual Studio 2012 displays 100 errors such as 'System.Data.Linq.DataCont ext' is not defined, although System.Data.Linq is present in References.
Additional information:
Assembly Load Trace: The following information can be helpful to determine why the assembly 'System.Data.Linq, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c56193 4e089' could not be loaded.
=== Pre-bind state information ===
LOG: User = IIS APPPOOL\DefaultAppPool
LOG: DisplayName = System.Data.Linq, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c56193 4e089
(Fully-specified)
LOG: Appbase = file:///E:/inetpub/IRISEL8 /
LOG: Initial PrivatePath = E:\inetpub\IRISEL8\bin
Calling assembly : (Unknown).
===
LOG: This bind starts in default load context.
LOG: Using application configuration file: E:\inetpub\IRISEL8\web.con fig
LOG: Using host configuration file: C:\Windows\Microsoft.NET\F ramework64 \v2.0.5072 7\Aspnet.c onfig
LOG: Using machine configuration file from C:\Windows\Microsoft.NET\F ramework64 \v2.0.5072 7\config\m achine.con fig.
LOG: Post-policy reference: System.Data.Linq, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c56193 4e089
LOG: Attempting download of new URL file:///C:/Windows/Microso ft.NET/Fra mework64/v 2.0.50727/ Temporary ASP.NET Files/root/ea16591a/4859c9 91/System. Data.Linq. DLL.
LOG: Attempting download of new URL file:///C:/Windows/Microso ft.NET/Fra mework64/v 2.0.50727/ Temporary ASP.NET Files/root/ea16591a/4859c9 91/System. Data.Linq/ System.Dat a.Linq.DLL .
LOG: Attempting download of new URL file:///E:/inetpub/IRISEL8 /bin/Syste m.Data.Lin q.DLL.
LOG: Attempting download of new URL file:///E:/inetpub/IRISEL8 /bin/Syste m.Data.Lin q/System.D ata.Linq.D LL.
LOG: Attempting download of new URL file:///C:/Windows/Microso ft.NET/Fra mework64/v 2.0.50727/ Temporary ASP.NET Files/root/ea16591a/4859c9 91/System. Data.Linq. EXE.
LOG: Attempting download of new URL file:///C:/Windows/Microso ft.NET/Fra mework64/v 2.0.50727/ Temporary ASP.NET Files/root/ea16591a/4859c9 91/System. Data.Linq/ System.Dat a.Linq.EXE .
LOG: Attempting download of new URL file:///E:/inetpub/IRISEL8 /bin/Syste m.Data.Lin q.EXE.
LOG: Attempting download of new URL file:///E:/inetpub/IRISEL8 /bin/Syste m.Data.Lin q/System.D ata.Linq.E XE.
In the file <dbname>designer.vb (generated in VS 2010) Visual Studio 2012 displays 100 errors such as 'System.Data.Linq.DataCont
Additional information:
Assembly Load Trace: The following information can be helpful to determine why the assembly 'System.Data.Linq, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c56193
=== Pre-bind state information ===
LOG: User = IIS APPPOOL\DefaultAppPool
LOG: DisplayName = System.Data.Linq, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c56193
(Fully-specified)
LOG: Appbase = file:///E:/inetpub/IRISEL8
LOG: Initial PrivatePath = E:\inetpub\IRISEL8\bin
Calling assembly : (Unknown).
===
LOG: This bind starts in default load context.
LOG: Using application configuration file: E:\inetpub\IRISEL8\web.con
LOG: Using host configuration file: C:\Windows\Microsoft.NET\F
LOG: Using machine configuration file from C:\Windows\Microsoft.NET\F
LOG: Post-policy reference: System.Data.Linq, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c56193
LOG: Attempting download of new URL file:///C:/Windows/Microso
LOG: Attempting download of new URL file:///C:/Windows/Microso
LOG: Attempting download of new URL file:///E:/inetpub/IRISEL8
LOG: Attempting download of new URL file:///E:/inetpub/IRISEL8
LOG: Attempting download of new URL file:///C:/Windows/Microso
LOG: Attempting download of new URL file:///C:/Windows/Microso
LOG: Attempting download of new URL file:///E:/inetpub/IRISEL8
LOG: Attempting download of new URL file:///E:/inetpub/IRISEL8
ASKER
Thanks for your hint.
According to Reference Manager the version of System.Data.Linq is 4.0.0.0.
I don't know how to verify the PublicKeyToken.
According to Reference Manager the version of System.Data.Linq is 4.0.0.0.
I don't know how to verify the PublicKeyToken.
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Open in new window
Replace Version with your version of .NET you are using, or the version that is referenced.
This should have been set when you added your reference to your project automatically, but maybe you made some changes to your web.config without knowing.