lranieri Posted October 24, 2008 Report Share Posted October 24, 2008 Hi, I'm tried inherit ChartFx but when I do postback in page I'm getting the below error message: [FileLoadException: Could not load file or assembly 'Web.UI.WebControls.Chart, PublicKeyToken=a1878e2052c08dce' or one of its dependencies. The located assembly's manifest definition does not match the assembly reference. (Exception from HRESULT: 0x80131040)] System.Reflection.Assembly.nLoad(AssemblyName fileName, String codeBase, Evidence assemblySecurity, Assembly locationHint, StackCrawlMark& stackMark, Boolean throwOnFileNotFound, Boolean forIntrospection) +0 System.Reflection.Assembly.InternalLoad(AssemblyName assemblyRef, Evidence assemblySecurity, StackCrawlMark& stackMark, Boolean forIntrospection) +211 System.Reflection.Assembly.Load(AssemblyName assemblyRef) +25 ChartFX.WebForms.ac.a(String A_0, Boolean A_1) +649 ChartFX.WebForms.aj.a(Object A_0, String A_1, Boolean& A_2, Int64& A_3) +722 ChartFX.WebForms.aj.a(Object A_0, String A_1, ObjFlags A_2, Int64 A_3) +310 ChartFX.WebForms.aj.a(String A_0, Object A_1, String A_2, ObjFlags A_3) +215 ChartFX.WebForms.aj.a(Object A_0, String A_1, TypeCode A_2, Boolean A_3, ObjFlags A_4) +539 ChartFX.WebForms.aj.a(Object A_0, ObjFlags A_1) +228 ChartFX.WebForms.aj.a(Object A_0, String A_1, ObjFlags A_2, Int64 A_3) +805 ChartFX.WebForms.aj.a(String A_0, Object A_1, String A_2, ObjFlags A_3) +215 ChartFX.WebForms.Chart.c(Boolean A_0, IPersistBase A_1) +249 ChartFX.WebForms.Chart.Import(IPersistBase pers) +29 ChartFX.WebForms.Chart.Import(FileFormat format, Stream stream) +645 ChartFX.WebForms.Chart.LoadViewState(Object savedState) +289 System.Web.UI.Control.LoadViewStateRecursive(Object savedState) +251 System.Web.UI.Control.LoadChildViewStateByIndex(ArrayList childState) +142 System.Web.UI.Control.LoadViewStateRecursive(Object savedState) +300 System.Web.UI.Control.LoadChildViewStateByIndex(ArrayList childState) +142 System.Web.UI.Control.LoadViewStateRecursive(Object savedState) +300 System.Web.UI.Page.LoadAllState() +520 System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +3444 I want to know if to do this inherit is possible Thanks Quote Link to comment Share on other sites More sharing options...
laros79 Posted October 30, 2008 Report Share Posted October 30, 2008 yes inherit ... it can work. I think you miss to reference the ChartFX.WebForms.dll and it dependency public class WebPortalChart : ChartFX.WebForms.Chart{ } Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.