Home All Groups Group Topic Archive Search About

Could not load type XXXXXX from assembly mscorlib

Author
10 Dec 2005 10:49 AM
qiang
Hi everyone,



Could you please take a look at an exception for ASP.NET application?



My ASP.NET application is using Infragistics WebChart control. I encounter an exception below when deploying the application into a third-part host.

It would be very appreciated if you have known the reason and tell me.



Thanks you in advance.



Qiang



Could not load type Infragistics.UltraChart.Resources.Editor.GradientEditor from assembly mscorlib, Version=1.0.5000.0, Culture=neutral, PublicKeyToken=b77a5c561934e089.

Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code.

Exception Details: System.TypeLoadException: Could not load type Infragistics.UltraChart.Resources.Editor.GradientEditor from assembly mscorlib, Version=1.0.5000.0, Culture=neutral, PublicKeyToken=b77a5c561934e089.

Source Error:

      An unhandled exception was generated during the execution of the current web request. Information regarding the origin and location of the exception can be identified using the exception stack trace below.



Stack Trace:



      [TypeLoadException: Could not load type Infragistics.UltraChart.Resources.Editor.GradientEditor from assembly mscorlib, Version=1.0.5000.0, Culture=neutral, PublicKeyToken=b77a5c561934e089.]

         System.Reflection.CustomAttribute.CreateCAObject(Int32& propNum, Assembly& assembly) +0

         System.Reflection.CustomAttribute.GetObject() +57

         System.Reflection.CustomAttribute.CheckConsistencyAndCreateArray(CustomAttribute caItem, Type caType) +539

         System.Reflection.CustomAttribute.GetCustomAttributes(MemberInfo member, Type caType, Boolean inherit) +459

         System.Reflection.CustomAttribute.GetCustomAttributes(Type type, Type caType, Boolean inherit) +110

         System.RuntimeType.GetCustomAttributes(Boolean inherit) +11

         System.ComponentModel.TypeDescriptor.GetCustomAttributes(Type type) +78

         System.ComponentModel.MemberList.ReflectGetCustomAttributes(Type classToReflect, Type metadataType) +316

         System.ComponentModel.MemberList.GetAttributes() +121

         System.ComponentModel.ComponentEntry.GetAttributes(Object component) +127

         System.ComponentModel.ComponentEntry.GetConverter() +29

         System.ComponentModel.PropertyDescriptor.get_Converter() +195

         System.Web.Compilation.CodeDomUtility.GenerateExpressionForValue(PropertyInfo propertyInfo, Object value, Type valueType) +660

         System.Web.Compilation.TemplateControlCompiler.BuildBuildMethod(ControlBuilder builder, Boolean fTemplate, PropertySetterEntry pse) +2555

         System.Web.Compilation.TemplateControlCompiler.BuildSourceDataTreeFromBuilder(ControlBuilder builder, Boolean fInTemplate, PropertySetterEntry pse) +794

         System.Web.Compilation.TemplateControlCompiler.BuildSourceDataTreeFromBuilder(ControlBuilder builder, Boolean fInTemplate, PropertySetterEntry pse) +675

         System.Web.Compilation.TemplateControlCompiler.BuildSourceDataTreeFromBuilder(ControlBuilder builder, Boolean fInTemplate, PropertySetterEntry pse) +675

         System.Web.Compilation.TemplateControlCompiler.BuildSourceDataTreeFromBuilder(ControlBuilder builder, Boolean fInTemplate, PropertySetterEntry pse) +675

         System.Web.Compilation.TemplateControlCompiler.BuildSourceDataTreeFromBuilder(ControlBuilder builder, Boolean fInTemplate, PropertySetterEntry pse) +352

         System.Web.Compilation.TemplateControlCompiler.BuildSourceDataTreeFromBuilder(ControlBuilder builder, Boolean fInTemplate, PropertySetterEntry pse) +352

         System.Web.Compilation.TemplateControlCompiler.BuildMiscClassMembers() +52

         System.Web.Compilation.PageCompiler.BuildMiscClassMembers() +9

         System.Web.Compilation.BaseCompiler.BuildSourceDataTree() +1276

         System.Web.Compilation.BaseCompiler.GetCompiledType() +128

         System.Web.UI.PageParser.CompileIntoType() +62

         System.Web.UI.TemplateParser.GetParserCacheItemThroughCompilation() +124



      [HttpException (0x80004005): Could not load type Infragistics.UltraChart.Resources.Editor.GradientEditor from assembly mscorlib, Version=1.0.5000.0, Culture=neutral, PublicKeyToken=b77a5c561934e089.]

         System.Web.UI.TemplateParser.GetParserCacheItemInternal(Boolean fCreateIfNotFound) +721

         System.Web.UI.TemplateParser.GetParserCacheItemWithNewConfigPath() +125

         System.Web.UI.TemplateParser.GetParserCacheItem() +99

         System.Web.UI.TemplateControlParser.CompileAndGetParserCacheItem(String virtualPath, String inputFile, HttpContext context) +120

         System.Web.UI.TemplateControlParser.GetCompiledInstance(String virtualPath, String inputFile, HttpContext context) +36

         System.Web.UI.PageParser.GetCompiledPageInstanceInternal(String virtualPath, String inputFile, HttpContext context) +43

         System.Web.UI.PageHandlerFactory.GetHandler(HttpContext context, String requestType, String url, String path) +44

         System.Web.HttpApplication.MapHttpHandler(HttpContext context, String requestType, String path, String pathTranslated, Boolean useAppConfig) +699

         System.Web.MapHandlerExecutionStep.System.Web.HttpApplication+IExecutionStep.Execute() +95

         System.Web.HttpApplication.ExecuteStep(IExecutionStep step, Boolean& completedSynchronously) +173

Author
12 Dec 2005 12:46 AM
agapeton
You need to make sure the assembly is the "search path" for .NET
assemblies.  That is in the current folder, the bin folder (in a shared
host environment this may be a SINGLE bin folder, not the bin folder
for THAT application, or, in the GAC.  There are other places too...
Also make sure it's the same version you are referencing and all that
jazz.
Author
12 Dec 2005 12:53 AM
qiang
Thanks for your response.

Yes, I have make sure that the assembly is in the right folder. All the
other assemblies work well.
And the version of the assembly is  right too.

Because the web application is installed in a thirt part host. I guess that
the trust level is most possible reason.
Could you please let me know if there is a way to solve it?

<agape***@gmail.com> ????
Show quoteHide quote
news:1134348374.942684.255040@g14g2000cwa.googlegroups.com...
> You need to make sure the assembly is the "search path" for .NET
> assemblies.  That is in the current folder, the bin folder (in a shared
> host environment this may be a SINGLE bin folder, not the bin folder
> for THAT application, or, in the GAC.  There are other places too...
> Also make sure it's the same version you are referencing and all that
> jazz.
>