PC Review


Reply
Thread Tools Rate Thread

Could not load type 'System.CodeDom.Compiler.GeneratedCodeAttribute'?

 
 
Olav Tollefsen
Guest
Posts: n/a
 
      28th Nov 2005
I get this error when I try to run my Visual Studio Tools for Office 2005
application.

Does anyone have any clue to what the problem could be?

Olav

Could not load type 'System.CodeDom.Compiler.GeneratedCodeAttribute' from
assembly 'System, Version=2.0.0.0, Culture=neutral,
PublicKeyToken=b77a5c561934e089'.


************** Exception Text **************
System.TypeLoadException: Could not load type
'System.CodeDom.Compiler.GeneratedCodeAttribute' from assembly 'System,
Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089'.
at System.ModuleHandle.ResolveType(Int32 typeToken, RuntimeTypeHandle*
typeInstArgs, Int32 typeInstCount, RuntimeTypeHandle* methodInstArgs, Int32
methodInstCount)
at System.ModuleHandle.ResolveTypeHandle(Int32 typeToken,
RuntimeTypeHandle[] typeInstantiationContext, RuntimeTypeHandle[]
methodInstantiationContext)
at System.Reflection.Module.ResolveType(Int32 metadataToken, Type[]
genericTypeArguments, Type[] genericMethodArguments)
at
System.Reflection.CustomAttribute.FilterCustomAttributeRecord(CustomAttributeRecord
caRecord, MetadataImport scope, Assembly& lastAptcaOkAssembly, Module
decoratedModule, MetadataToken decoratedToken, RuntimeType
attributeFilterType, Boolean mustBeInheritable, Object[] attributes, IList
derivedAttributes, RuntimeType& attributeType, RuntimeMethodHandle& ctor,
Boolean& ctorHasParameters, Boolean& isVarArg)
at System.Reflection.CustomAttribute.GetCustomAttributes(Module
decoratedModule, Int32 decoratedMetadataToken, Int32 pcaCount, RuntimeType
attributeFilterType, Boolean mustBeInheritable, IList derivedAttributes)
at System.Reflection.CustomAttribute.GetCustomAttributes(RuntimeType
type, RuntimeType caType, Boolean inherit)
at System.RuntimeType.GetCustomAttributes(Type attributeType, Boolean
inherit)
at System.Web.Services.WebServiceBindingReflector.GetAttribute(Type type)
at System.Web.Services.Protocols.SoapClientType..ctor(Type type)
at System.Web.Services.Protocols.SoapHttpClientProtocol..ctor()
at CatalogAdmin.CommerceAdminService.ProductCatalogService..ctor()
at
CatalogAdmin.UpdateCatalogControl.UpdateRelatedProductsButton_Click(Object
sender, EventArgs e)
at System.Windows.Forms.Control.OnClick(EventArgs e)
at System.Windows.Forms.Button.OnClick(EventArgs e)
at System.Windows.Forms.Button.OnMouseUp(MouseEventArgs mevent)
at System.Windows.Forms.Control.WmMouseUp(Message& m, MouseButtons
button, Int32 clicks)
at System.Windows.Forms.Control.WndProc(Message& m)
at System.Windows.Forms.ButtonBase.WndProc(Message& m)
at System.Windows.Forms.Button.WndProc(Message& m)
at System.Windows.Forms.Control.ControlNativeWindow.OnMessage(Message& m)
at System.Windows.Forms.Control.ControlNativeWindow.WndProc(Message& m)
at System.Windows.Forms.NativeWindow.Callback(IntPtr hWnd, Int32 msg,
IntPtr wparam, IntPtr lparam)


************** Loaded Assemblies **************
mscorlib
Assembly Version: 2.0.0.0
Win32 Version: 2.0.50215.322 (beta2PLUS.050215-3200)
CodeBase:
file:///C:/WINDOWS/Microsoft.NET/Framework/v2.0.50215/mscorlib.dll
----------------------------------------
Microsoft.VisualStudio.Tools.Applications.Runtime
Assembly Version: 8.0.0.0
Win32 Version: 8.0.50215.44
CodeBase:
file:///C:/WINDOWS/assembly/GAC_MSIL/Microsoft.VisualStudio.Tools.Applications.Runtime/8.0.0.0__b03f5f7f11d50a3a/Microsoft.VisualStudio.Tools.Applications.Runtime.dll
----------------------------------------
System
Assembly Version: 2.0.0.0
Win32 Version: 2.0.50215.322 (beta2PLUS.050215-3200)
CodeBase:
file:///C:/WINDOWS/assembly/GAC_MSIL/System/2.0.0.0__b77a5c561934e089/System.dll
----------------------------------------
System.Windows.Forms
Assembly Version: 2.0.0.0
Win32 Version: 2.0.50215.322 (beta2PLUS.050215-3200)
CodeBase:
file:///C:/WINDOWS/assembly/GAC_MSIL/System.Windows.Forms/2.0.0.0__b77a5c561934e089/System.Windows.Forms.dll
----------------------------------------
System.Xml
Assembly Version: 2.0.0.0
Win32 Version: 2.0.50215.322 (beta2PLUS.050215-3200)
CodeBase:
file:///C:/WINDOWS/assembly/GAC_MSIL/System.Xml/2.0.0.0__b77a5c561934e089/System.Xml.dll
----------------------------------------
CatalogAdmin
Assembly Version: 1.0.2154.1200
Win32 Version: 1.0.2154.1200
CodeBase: file://lion/users/Baldrian/CatalogAdmin/CatalogAdmin.DLL
----------------------------------------
Microsoft.Office.Tools.Excel
Assembly Version: 8.0.0.0
Win32 Version: 8.0.50215.44
CodeBase:
file:///C:/WINDOWS/assembly/GAC_MSIL/Microsoft.Office.Tools.Excel/8.0.0.0__b03f5f7f11d50a3a/Microsoft.Office.Tools.Excel.dll
----------------------------------------
Microsoft.Office.Interop.Excel
Assembly Version: 11.0.0.0
Win32 Version: 11.0.5530
CodeBase:
file:///C:/WINDOWS/assembly/GAC/Microsoft.Office.Interop.Excel/11.0.0.0__71e9bce111e9429c/Microsoft.Office.Interop.Excel.dll
----------------------------------------
Microsoft.Office.Tools.Common
Assembly Version: 8.0.0.0
Win32 Version: 8.0.50215.44
CodeBase:
file:///C:/WINDOWS/assembly/GAC_MSIL/Microsoft.Office.Tools.Common/8.0.0.0__b03f5f7f11d50a3a/Microsoft.Office.Tools.Common.dll
----------------------------------------
System.Drawing
Assembly Version: 2.0.0.0
Win32 Version: 2.0.50215.322 (beta2PLUS.050215-3200)
CodeBase:
file:///C:/WINDOWS/assembly/GAC_MSIL/System.Drawing/2.0.0.0__b03f5f7f11d50a3a/System.Drawing.dll
----------------------------------------
System.Web.Services
Assembly Version: 2.0.0.0
Win32 Version: 2.0.50215.322 (beta2PLUS.050215-3200)
CodeBase:
file:///C:/WINDOWS/assembly/GAC_MSIL/System.Web.Services/2.0.0.0__b03f5f7f11d50a3a/System.Web.Services.dll
----------------------------------------
System.Configuration
Assembly Version: 2.0.0.0
Win32 Version: 2.0.50215.322 (beta2PLUS.050215-3200)
CodeBase:
file:///C:/WINDOWS/assembly/GAC_MSIL/System.Configuration/2.0.0.0__b03f5f7f11d50a3a/System.Configuration.dll
----------------------------------------




 
Reply With Quote
 
 
 
 
Olav Tollefsen
Guest
Posts: n/a
 
      28th Nov 2005
It was a mismatch between the runtime (Beta 2) and the version used to
develop the VSTO application which was based on the released version of
Visual Studio 2005.

Olav

"Olav Tollefsen" <(E-Mail Removed)> wrote in message
news:(E-Mail Removed)...
>I get this error when I try to run my Visual Studio Tools for Office 2005
>application.
>
> Does anyone have any clue to what the problem could be?
>
> Olav
>
> Could not load type 'System.CodeDom.Compiler.GeneratedCodeAttribute' from
> assembly 'System, Version=2.0.0.0, Culture=neutral,
> PublicKeyToken=b77a5c561934e089'.
>
>
> ************** Exception Text **************
> System.TypeLoadException: Could not load type
> 'System.CodeDom.Compiler.GeneratedCodeAttribute' from assembly 'System,
> Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089'.
> at System.ModuleHandle.ResolveType(Int32 typeToken, RuntimeTypeHandle*
> typeInstArgs, Int32 typeInstCount, RuntimeTypeHandle* methodInstArgs,
> Int32 methodInstCount)
> at System.ModuleHandle.ResolveTypeHandle(Int32 typeToken,
> RuntimeTypeHandle[] typeInstantiationContext, RuntimeTypeHandle[]
> methodInstantiationContext)
> at System.Reflection.Module.ResolveType(Int32 metadataToken, Type[]
> genericTypeArguments, Type[] genericMethodArguments)
> at
> System.Reflection.CustomAttribute.FilterCustomAttributeRecord(CustomAttributeRecord
> caRecord, MetadataImport scope, Assembly& lastAptcaOkAssembly, Module
> decoratedModule, MetadataToken decoratedToken, RuntimeType
> attributeFilterType, Boolean mustBeInheritable, Object[] attributes, IList
> derivedAttributes, RuntimeType& attributeType, RuntimeMethodHandle& ctor,
> Boolean& ctorHasParameters, Boolean& isVarArg)
> at System.Reflection.CustomAttribute.GetCustomAttributes(Module
> decoratedModule, Int32 decoratedMetadataToken, Int32 pcaCount, RuntimeType
> attributeFilterType, Boolean mustBeInheritable, IList derivedAttributes)
> at System.Reflection.CustomAttribute.GetCustomAttributes(RuntimeType
> type, RuntimeType caType, Boolean inherit)
> at System.RuntimeType.GetCustomAttributes(Type attributeType, Boolean
> inherit)
> at System.Web.Services.WebServiceBindingReflector.GetAttribute(Type
> type)
> at System.Web.Services.Protocols.SoapClientType..ctor(Type type)
> at System.Web.Services.Protocols.SoapHttpClientProtocol..ctor()
> at CatalogAdmin.CommerceAdminService.ProductCatalogService..ctor()
> at
> CatalogAdmin.UpdateCatalogControl.UpdateRelatedProductsButton_Click(Object
> sender, EventArgs e)
> at System.Windows.Forms.Control.OnClick(EventArgs e)
> at System.Windows.Forms.Button.OnClick(EventArgs e)
> at System.Windows.Forms.Button.OnMouseUp(MouseEventArgs mevent)
> at System.Windows.Forms.Control.WmMouseUp(Message& m, MouseButtons
> button, Int32 clicks)
> at System.Windows.Forms.Control.WndProc(Message& m)
> at System.Windows.Forms.ButtonBase.WndProc(Message& m)
> at System.Windows.Forms.Button.WndProc(Message& m)
> at System.Windows.Forms.Control.ControlNativeWindow.OnMessage(Message&
> m)
> at System.Windows.Forms.Control.ControlNativeWindow.WndProc(Message& m)
> at System.Windows.Forms.NativeWindow.Callback(IntPtr hWnd, Int32 msg,
> IntPtr wparam, IntPtr lparam)
>
>
> ************** Loaded Assemblies **************
> mscorlib
> Assembly Version: 2.0.0.0
> Win32 Version: 2.0.50215.322 (beta2PLUS.050215-3200)
> CodeBase:
> file:///C:/WINDOWS/Microsoft.NET/Framework/v2.0.50215/mscorlib.dll
> ----------------------------------------
> Microsoft.VisualStudio.Tools.Applications.Runtime
> Assembly Version: 8.0.0.0
> Win32 Version: 8.0.50215.44
> CodeBase:
> file:///C:/WINDOWS/assembly/GAC_MSIL/Microsoft.VisualStudio.Tools.Applications.Runtime/8.0.0.0__b03f5f7f11d50a3a/Microsoft.VisualStudio.Tools.Applications.Runtime.dll
> ----------------------------------------
> System
> Assembly Version: 2.0.0.0
> Win32 Version: 2.0.50215.322 (beta2PLUS.050215-3200)
> CodeBase:
> file:///C:/WINDOWS/assembly/GAC_MSIL/System/2.0.0.0__b77a5c561934e089/System.dll
> ----------------------------------------
> System.Windows.Forms
> Assembly Version: 2.0.0.0
> Win32 Version: 2.0.50215.322 (beta2PLUS.050215-3200)
> CodeBase:
> file:///C:/WINDOWS/assembly/GAC_MSIL/System.Windows.Forms/2.0.0.0__b77a5c561934e089/System.Windows.Forms.dll
> ----------------------------------------
> System.Xml
> Assembly Version: 2.0.0.0
> Win32 Version: 2.0.50215.322 (beta2PLUS.050215-3200)
> CodeBase:
> file:///C:/WINDOWS/assembly/GAC_MSIL/System.Xml/2.0.0.0__b77a5c561934e089/System.Xml.dll
> ----------------------------------------
> CatalogAdmin
> Assembly Version: 1.0.2154.1200
> Win32 Version: 1.0.2154.1200
> CodeBase: file://lion/users/Baldrian/CatalogAdmin/CatalogAdmin.DLL
> ----------------------------------------
> Microsoft.Office.Tools.Excel
> Assembly Version: 8.0.0.0
> Win32 Version: 8.0.50215.44
> CodeBase:
> file:///C:/WINDOWS/assembly/GAC_MSIL/Microsoft.Office.Tools.Excel/8.0.0.0__b03f5f7f11d50a3a/Microsoft.Office.Tools.Excel.dll
> ----------------------------------------
> Microsoft.Office.Interop.Excel
> Assembly Version: 11.0.0.0
> Win32 Version: 11.0.5530
> CodeBase:
> file:///C:/WINDOWS/assembly/GAC/Microsoft.Office.Interop.Excel/11.0.0.0__71e9bce111e9429c/Microsoft.Office.Interop.Excel.dll
> ----------------------------------------
> Microsoft.Office.Tools.Common
> Assembly Version: 8.0.0.0
> Win32 Version: 8.0.50215.44
> CodeBase:
> file:///C:/WINDOWS/assembly/GAC_MSIL/Microsoft.Office.Tools.Common/8.0.0.0__b03f5f7f11d50a3a/Microsoft.Office.Tools.Common.dll
> ----------------------------------------
> System.Drawing
> Assembly Version: 2.0.0.0
> Win32 Version: 2.0.50215.322 (beta2PLUS.050215-3200)
> CodeBase:
> file:///C:/WINDOWS/assembly/GAC_MSIL/System.Drawing/2.0.0.0__b03f5f7f11d50a3a/System.Drawing.dll
> ----------------------------------------
> System.Web.Services
> Assembly Version: 2.0.0.0
> Win32 Version: 2.0.50215.322 (beta2PLUS.050215-3200)
> CodeBase:
> file:///C:/WINDOWS/assembly/GAC_MSIL/System.Web.Services/2.0.0.0__b03f5f7f11d50a3a/System.Web.Services.dll
> ----------------------------------------
> System.Configuration
> Assembly Version: 2.0.0.0
> Win32 Version: 2.0.50215.322 (beta2PLUS.050215-3200)
> CodeBase:
> file:///C:/WINDOWS/assembly/GAC_MSIL/System.Configuration/2.0.0.0__b03f5f7f11d50a3a/System.Configuration.dll
> ----------------------------------------
>
>
>
>



 
Reply With Quote
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Equivalent of System.CodeDom.Compiler in compact framework Manish Bafna Microsoft Dot NET Compact Framework 1 28th Dec 2007 03:15 PM
Could not load type System.Web.UI.WebControls.AccessDataSource fromassembly System.Web, Version=1.0.5000.0 DC Microsoft C# .NET 0 3rd Jul 2006 04:48 PM
Compiler Error Message: CS0030: Cannot convert type 'ASP.login_aspx' to 'System.Web.UI.WebControls.Login' keithb Microsoft ASP .NET 2 31st May 2006 08:21 PM
Is there not a C++ compiler for CodeDOM? DSP56k Microsoft C# .NET 0 6th Oct 2005 04:45 PM
System.TypeLoadException Could not load type System.Configuration.SingleTagSect phillipmastroianni@yahoo.com Microsoft Dot NET Framework 0 6th Nov 2003 10:46 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 05:59 AM.