VerificationException
VerificationException
Adding a TChart to a forum and making absolutely NO changes to it, compiles but returns a runtime error: "VerificationException was unhandled". The offending line of code is in the designer:
this.tChart1 = new Steema.TeeChart.TChart();
What is going on?
this.tChart1 = new Steema.TeeChart.TChart();
What is going on?
Re: VerificationException
Hello jooster,
Using next code:
And last version of TeeChart.Net, code works correctly for me. Please, check if previous code works as you want.
On the other hand, can you tell us which version of TeeChart.Net are you using?
Thanks,
Using next code:
Code: Select all
public Form1()
{
InitializeComponent();
InitializeChart();
}
private Steema.TeeChart.Styles.Line line1,line2;
Steema.TeeChart.TChart tChart1;
private void InitializeChart()
{
tChart1 = new Steema.TeeChart.TChart();
this.Controls.Add(tChart1);
tChart1.Aspect.View3D = false;
line1 = new Steema.TeeChart.Styles.Line(tChart1.Chart);
line2 = new Steema.TeeChart.Styles.Line(tChart1.Chart);
line1.FillSampleValues();
}
On the other hand, can you tell us which version of TeeChart.Net are you using?
Thanks,
Best Regards,
Sandra Pazos / Development & Support Steema Software Avinguda Montilivi 33, 17003 Girona, Catalonia Tel: 34 972 218 797 http://www.steema.com |
Instructions - How to post in this forum |
Re: VerificationException
Sandra, I am using the 2010 edition (Version=4.1.2010.9283)
Re: VerificationException
This failure seemed to have a distinct licensing error failure. Therefore I tried to uninstall and hoped to correct this with a reinstall. However, the uninstall fails immediately also with "Could not open INSTALL.LOG file."
I am running on Windows 7 using VS2010 Ultimate
TeeChart is 4.1.2010.9283
Your help to correct this is appreciated, I am pretty much dead in the water right now.
Joost
I am running on Windows 7 using VS2010 Ultimate
TeeChart is 4.1.2010.9283
Your help to correct this is appreciated, I am pretty much dead in the water right now.
Joost
Re: VerificationException
Hello Joost,
There is a new maintenance release 30 of November that you can find here, I suggest you download last version and check if "VerificationException was unhandled" still appears. If last version doesn't solve it, please tell us which target Framework your VS2010 is using. For get it information you only follow next steps:
1.- Select your project
2.- Click with right button.
3.- Select Properties.
4.- See Target Framework.
Thanks,
There is a new maintenance release 30 of November that you can find here, I suggest you download last version and check if "VerificationException was unhandled" still appears. If last version doesn't solve it, please tell us which target Framework your VS2010 is using. For get it information you only follow next steps:
1.- Select your project
2.- Click with right button.
3.- Select Properties.
4.- See Target Framework.
Thanks,
Best Regards,
Sandra Pazos / Development & Support Steema Software Avinguda Montilivi 33, 17003 Girona, Catalonia Tel: 34 972 218 797 http://www.steema.com |
Instructions - How to post in this forum |
Re: VerificationException
Sandra, I installed the maintenance release over the weekend already without a positive result. My target framework is 4 (not client profile).
I did notice that this problem only appears when I run the debugger i.e., when starting a debug session the VerificationException shows up but when starting without debugging (Ctrl-F5) the application comes right up and the plots I am producing work also.
Joost
I did notice that this problem only appears when I run the debugger i.e., when starting a debug session the VerificationException shows up but when starting without debugging (Ctrl-F5) the application comes right up and the plots I am producing work also.
Joost
Re: VerificationException
Hello Joost,
I couldn't reproduce your problem here with attached project with last version of TeeChart.Net. Please, check if you can reproduce your problem in the project. If with this project, your problem doesn't appear. Please send us a simple project, so we can reproduce your problem exactly here. On the other hand, can you confirm us if the message of error only says this: "VerificationException was unhandled"? If message of error give you, more information, please attached this here.
Thanks,
I couldn't reproduce your problem here with attached project with last version of TeeChart.Net. Please, check if you can reproduce your problem in the project. If with this project, your problem doesn't appear. Please send us a simple project, so we can reproduce your problem exactly here. On the other hand, can you confirm us if the message of error only says this: "VerificationException was unhandled"? If message of error give you, more information, please attached this here.
Thanks,
Best Regards,
Sandra Pazos / Development & Support Steema Software Avinguda Montilivi 33, 17003 Girona, Catalonia Tel: 34 972 218 797 http://www.steema.com |
Instructions - How to post in this forum |
Re: VerificationException
Sandra, this project fails exactly in the same way as my application. It states:
System.Security.VerificationException was unhandled
Message=Operation could destabilize the runtime.
Source=TeeChart
StackTrace:
at Steema.TeeChart.Drawing.TeeBase.SetBooleanProperty(Boolean& variable, Boolean value)
at Steema.TeeChart.Drawing.ChartBrush.set_Solid(Boolean value)
at Steema.TeeChart.Drawing.Shape.set_Color(Color value)
at Steema.TeeChart.Panel..ctor(Chart c)
at Steema.TeeChart.Chart.initVars()
at Steema.TeeChart.Chart..ctor()
at Steema.TeeChart.TChart..ctor()
at Test1.Form1.InitializeChart() in E:\Projects\Test\Test1\Test1\Form1.cs:line 23
at Test1.Form1..ctor() in E:\Projects\Test\Test1\Test1\Form1.cs:line 17
at Test1.Program.Main() in E:\Projects\Test\Test1\Test1\Program.cs:line 18
at System.AppDomain._nExecuteAssembly(RuntimeAssembly assembly, String[] args)
at System.AppDomain.nExecuteAssembly(RuntimeAssembly assembly, String[] args)
at System.AppDomain.ExecuteAssembly(String assemblyFile, Evidence assemblySecurity, String[] args)
at Microsoft.VisualStudio.HostingProcess.HostProc.RunUsersAssembly()
at System.Threading.ThreadHelper.ThreadStart_Context(Object state)
at System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state, Boolean ignoreSyncCtx)
at System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state)
at System.Threading.ThreadHelper.ThreadStart()
InnerException:
null
System.Security.VerificationException was unhandled
Message=Operation could destabilize the runtime.
Source=TeeChart
StackTrace:
at Steema.TeeChart.Drawing.TeeBase.SetBooleanProperty(Boolean& variable, Boolean value)
at Steema.TeeChart.Drawing.ChartBrush.set_Solid(Boolean value)
at Steema.TeeChart.Drawing.Shape.set_Color(Color value)
at Steema.TeeChart.Panel..ctor(Chart c)
at Steema.TeeChart.Chart.initVars()
at Steema.TeeChart.Chart..ctor()
at Steema.TeeChart.TChart..ctor()
at Test1.Form1.InitializeChart() in E:\Projects\Test\Test1\Test1\Form1.cs:line 23
at Test1.Form1..ctor() in E:\Projects\Test\Test1\Test1\Form1.cs:line 17
at Test1.Program.Main() in E:\Projects\Test\Test1\Test1\Program.cs:line 18
at System.AppDomain._nExecuteAssembly(RuntimeAssembly assembly, String[] args)
at System.AppDomain.nExecuteAssembly(RuntimeAssembly assembly, String[] args)
at System.AppDomain.ExecuteAssembly(String assemblyFile, Evidence assemblySecurity, String[] args)
at Microsoft.VisualStudio.HostingProcess.HostProc.RunUsersAssembly()
at System.Threading.ThreadHelper.ThreadStart_Context(Object state)
at System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state, Boolean ignoreSyncCtx)
at System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state)
at System.Threading.ThreadHelper.ThreadStart()
InnerException:
null
Re: VerificationException
Hello Joost,
Have I done more steps for reproduce of your problem besides run it in Debug Mode? I couldn't reproduce your problem using last version of TeeChart.Net here.
Thanks
Have I done more steps for reproduce of your problem besides run it in Debug Mode? I couldn't reproduce your problem using last version of TeeChart.Net here.
Thanks
Best Regards,
Sandra Pazos / Development & Support Steema Software Avinguda Montilivi 33, 17003 Girona, Catalonia Tel: 34 972 218 797 http://www.steema.com |
Instructions - How to post in this forum |
Re: VerificationException
I have not done other tests/steps that running in debug. I wouldn't know what else to do. Since TeeChart gets instantiated immediately in the form, the debugger stops immediately and therefore I cannot debug the application at all. As mentioned, I can run without debugging and the app comes up just fine (except when/where I have my own bugs of course). I can also attach the debugger to the app when it is running but than it is already past the point where TeeChart got instantiated so it gives me no opportunity to look at what is going on there.
If you google VerificationException you will find a lot of noise on this topic with many folks having issues with security mode settings (seems many web page related) or issues with dynamic methods or other issues. Since I don't have the sources, I cannot quite make out what is going on but I hope you can find something that is related.
VS2010 also states "make sure your application is not loading two conflicting versions of a class library". I have only 1 version of teechart that I know of, but how would I verify this?
Could it be there is an "interaction" with other tools I have installed? I have Redgate's ANTS and the Telerik Ultimate library. I cannot possibly see a link between those and TeeChart but then again you might...
If you google VerificationException you will find a lot of noise on this topic with many folks having issues with security mode settings (seems many web page related) or issues with dynamic methods or other issues. Since I don't have the sources, I cannot quite make out what is going on but I hope you can find something that is related.
VS2010 also states "make sure your application is not loading two conflicting versions of a class library". I have only 1 version of teechart that I know of, but how would I verify this?
Could it be there is an "interaction" with other tools I have installed? I have Redgate's ANTS and the Telerik Ultimate library. I cannot possibly see a link between those and TeeChart but then again you might...
Re: VerificationException
Hello Joost,
Thanks,
I suggest take a look in this Post concretely in the TeeChart Environment Setup where there are Installation considerations and Licensing issues. If it doesn’t help you to solve your problem let me know.VS2010 also states "make sure your application is not loading two conflicting versions of a class library". I have only 1 version of teechart that I know of, but how would I verify this?
I download a trial version of Redgate's ANTS and the Telerik Ultimate library but I don't know which .dll you are using in your application. Can you tell exactly which dll are you adding in your application? So I check if these cause VerificationExceptionCould it be there is an "interaction" with other tools I have installed? I have Redgate's ANTS and the Telerik Ultimate library. I cannot possibly see a link between those and TeeChart but then again you might...
Thanks,
Best Regards,
Sandra Pazos / Development & Support Steema Software Avinguda Montilivi 33, 17003 Girona, Catalonia Tel: 34 972 218 797 http://www.steema.com |
Instructions - How to post in this forum |
Re: VerificationException
1. Changed 'designkey' in HKEY_LOCAL_MACHINE\SOFTWARE\Steema Software\TeeChart.NET to incorrect value, cleaned solution and compiled. Compiler error that follows suggests that the license is correctly loaded. Changed 'designkey' back to correct value, solution compiles fine.
2.There is no teechart reference in the gac (verified with gacutil /l teechart)
3.There are no other versions of teechart in HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\.NETFramework\AssemblyFolders
4.Used TeeRegV2010 to set the license, tools reports success. Problem remains.
5. Uninstalled Steema succesfully though had to manually remove the install directory. Several steema references in registry remained and cleaned by hand.
6. Reinstalled TeeChart succcesfully. Application still fails in debugger but runs outside the debugger.
7. I can Compile "TeeChart for .net examples" but not run in debugger. Error that shows is "Exception has been thrown by the target of an invocation". Running outside the debugger works fine.
8. The ANTS profiler does not add any dlls to my project that I can see. To start a session with ANTS, you must use the profiler or memory leak detector to start the app. I take it they do their magic than. I am not using this right now, I just mentioned this so you know my cmplete setup.
9. I did have references to the Telerik library but removed all their components and dlls from my application. Recompiled and attempted to run from the debugger. No success.
Sandra, I really appreciate you stick with this problem but is there no hint to what the problem might be in the error stack I sent to you earlier? I can set up a shadow dev-environment to see if it happens on another system but that would take some time to set up (and I've lost too much already researching this problem).
2.There is no teechart reference in the gac (verified with gacutil /l teechart)
3.There are no other versions of teechart in HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\.NETFramework\AssemblyFolders
4.Used TeeRegV2010 to set the license, tools reports success. Problem remains.
5. Uninstalled Steema succesfully though had to manually remove the install directory. Several steema references in registry remained and cleaned by hand.
6. Reinstalled TeeChart succcesfully. Application still fails in debugger but runs outside the debugger.
7. I can Compile "TeeChart for .net examples" but not run in debugger. Error that shows is "Exception has been thrown by the target of an invocation". Running outside the debugger works fine.
8. The ANTS profiler does not add any dlls to my project that I can see. To start a session with ANTS, you must use the profiler or memory leak detector to start the app. I take it they do their magic than. I am not using this right now, I just mentioned this so you know my cmplete setup.
9. I did have references to the Telerik library but removed all their components and dlls from my application. Recompiled and attempted to run from the debugger. No success.
Sandra, I really appreciate you stick with this problem but is there no hint to what the problem might be in the error stack I sent to you earlier? I can set up a shadow dev-environment to see if it happens on another system but that would take some time to set up (and I've lost too much already researching this problem).
Re: VerificationException
Hello jooster,
Ok. We decided send you a special TeeChart.dll in your e-mail address you are using in Steema Forums. On the other hand, before that check if version I have sent you works correctly, you have to remove all components of TeeChart.Net there are installed in your computer, clean the register and check that there isn't trace of TeeChart.Net.
Thanks,
Ok. We decided send you a special TeeChart.dll in your e-mail address you are using in Steema Forums. On the other hand, before that check if version I have sent you works correctly, you have to remove all components of TeeChart.Net there are installed in your computer, clean the register and check that there isn't trace of TeeChart.Net.
Thanks,
Best Regards,
Sandra Pazos / Development & Support Steema Software Avinguda Montilivi 33, 17003 Girona, Catalonia Tel: 34 972 218 797 http://www.steema.com |
Instructions - How to post in this forum |
Re: VerificationException
Sandra,
I downloaded and installed your DLL (after uninstalling the original teechart library first and doing a clean on teh code). I used your DLL with the code example you provided earlier. Sadly, the failure mode was identical, no change.
However, when I turn on "enable unmanaged code debugging", the application runs in the debugger. Funny, as teechart is adverticed to be 100% managed code. I take it this debug setting is just masking the real underlying problem.
I downloaded and installed your DLL (after uninstalling the original teechart library first and doing a clean on teh code). I used your DLL with the code example you provided earlier. Sadly, the failure mode was identical, no change.
However, when I turn on "enable unmanaged code debugging", the application runs in the debugger. Funny, as teechart is adverticed to be 100% managed code. I take it this debug setting is just masking the real underlying problem.
Re: VerificationException
Hello joost,
Could you please, check the TeeChart.dll on another machine which has never had a version of TeeChart for .NET installed on it? It isn't necessary you touch the registry whatsoever, just to try the TeeChart.dll in a Windows Form. On the other hand, I am afraid that it isn't a problem with TeeChart.dll. This is a problem with the configuration of machine.
Thanks,
Could you please, check the TeeChart.dll on another machine which has never had a version of TeeChart for .NET installed on it? It isn't necessary you touch the registry whatsoever, just to try the TeeChart.dll in a Windows Form. On the other hand, I am afraid that it isn't a problem with TeeChart.dll. This is a problem with the configuration of machine.
Thanks,
Best Regards,
Sandra Pazos / Development & Support Steema Software Avinguda Montilivi 33, 17003 Girona, Catalonia Tel: 34 972 218 797 http://www.steema.com |
Instructions - How to post in this forum |