Problem with Webchart "Attempt to access the method fai

TeeChart for Microsoft Visual Studio .NET, Xamarin Studio (Android, iOS & Forms) & Monodevelop.
Post Reply
Amol
Advanced
Posts: 176
Joined: Mon May 29, 2006 12:00 am

Problem with Webchart "Attempt to access the method fai

Post by Amol » Mon Aug 21, 2006 8:06 pm

Hi,

I am using .NET 2.0, visual web developer 2005 express for an application. Everytime I test the application on my website, I get the following error message on pages that contain TeeChart webchart. The error message that I get is as follows:

Attempt to access the method failed.
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.MethodAccessException: Attempt to access the method failed.

Source Error:


Line 58: <div id="rightbox">
Line 59: <div>
Line 60: &nbsp;<tchart:WebChart ID="WebChart1" runat="server" AutoPostback="False" Config="AAEAAAD/////AQAAAAAAAAAMAgAAAFJUZWVDaGFydCwgVmVyc2lvbj0y
LjAuMjMwNi4yNjIzMiwgQ3VsdHVyZT1uZXV0cmFsLCBQdWJsaWNLZXlUb2tlbj05Yzg
xMjYyNzZjNzdiZGI3DAMAAABRU3lzdGVtLkRyYXdpbmcsIFZlcnNpb249Mi4wLjAuMC
wgQ3VsdHVyZT1uZXV0cmFsLCBQdWJsaWNLZXlUb2tlbj1iMDNmNWY3ZjExZDUwY
TNhBQEAAAAVU3RlZW1hLlRlZUNoYXJ0LkNoYXJ0rgAAABQuV2FsbHMuQmFjay5Bd
XRvSGlkZRcuV2FsbHMuQmFjay5UcmFuc3BhcmVudBUuV2FsbHMuQmFjay5BcHBs
eURhcmsXLldhbGxzLkJhY2suQnJ1c2guQ29sb3IQLldhbGxzLkJhY2suU2l6ZRouV2Fs
bHMuQmFjay5TaGFkb3cuVmlzaWJsZRQuV2FsbHMuTGVmdC5BdXRvSGlkZRUuV2
FsbHMuTGVmdC5BcHBseURhcmsXLldhbGxzLkxlZnQuQnJ1c2guQ29sb3IQLldhbGx
zLkxlZnQuU2l6ZRouV2FsbHMuTGVmdC5TaGFkb3cuVmlzaWJsZRYuV2Fs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vcgMAAAAICAEjU3RlZW1hLlRlZUNoYXJ
0LkRyYXdpbmcuQmV2ZWxTdHlsZXMCAAAACBRTeXN0ZW0uRHJhd2luZy5Db2xvcgM
AAAAUU3lzdGVtLkRyYXdpbmcuQ29sb3IDAAAAFFN5c3RlbS5EcmF3aW5nLkNvbG9yA
wAAABRTeXN0ZW0uRHJhd2luZy5Db2xvcgMAAAAUU3lzdGVtLkRyYXdpbmcuQ29sb3I
DAAAAFFN5c3RlbS5EcmF3aW5nLkNvbG9yAwAAABRTeXN0ZW0uRHJhd2luZy5Db2xv
cgMAAAAICAEIARRTeXN0ZW0uRHJhd2luZy5Db2xvcgMAAAABAgAAAAAAAAX8////F
FN5c3RlbS5EcmF3aW5nLkNvbG9yBAAAAARuYW1lBXZhbHVlCmtub3duQ29sb3IFc3R
hdGUBAAAACQcHAwAAAAoAAAAAAAAAAKQAAQAIAAAAAAAAAfv////8////CgAAAA
AAAAAApAABAAgAAAAAAAAIAAAAAAAAAfr////8////CgAAAAAAAAAApAABAAgAAA
AAAAAAAAAACgAAAAAAAfn////8////CuDg4P8AAAAAAAACAAAAAAAAAAAABwAAA
AAAAAH4/////P///wrg4OD/AAAAAAAAAgABAAAAAgAAAAH3/////P///woAAAAAAAAA
ACMAAQABAAoAAAAABgoAAAAPVGltZXMgTmV3IFJvbWFuAAH1/////P///woAAAAAA
AAAACMAAQAAAAAAAAAAAAX0////IlN5c3RlbS5EcmF3aW5nLkRyYXdpbmcyRC5EYX
NoU3R5bGUBAAAAB3ZhbHVlX18ACAMAAAAAAAAAAAkKAAAAAAABAAAAAgAAAAH
z/////P///woAAAAAAAAAACMAAQABAAoAAAAACQoAAAAAAfL////8////CgAAAAAAAA
AAIwABAAAAAAAAAAAAAfH////0////AAAAAAAJCgAAAAAAAQAAAAIAAAAB8P////z///
8KAAAAAAAAAAAjAAEAAQAKAAAAAAAB7/////z///8K4ODg/wAAAAAAAAIAAQAAAAA
AAAAAAe7////0////AAAAAAcAAAAAAAAB7f////z///8K4ODg/wAAAAAAAAIAAQAAAAI
AAAAB7P////z///8KAAAAAAAAAAAjAAEAAQAKAAAAAAAB6/////z///8K4ODg/wAAAAA
AAAIAAAAAAAAAAAAHAAAAAAAAAer////8////CuDg4P8AAAAAAAACAAEAAAACAAAA
Aen////8////CgAAAAAAAAAAIwABAAEACgAAAAAJCgAAAAAB6P////z///8KAAAAAAAA
AAAjAAEAAAAAAAAAAAAB5/////T///8AAAAAAAkKAAAAAAABAAAAAgAAAAHm/////P
///woAAAAAAAAAACMAAQABAAHl/////P///woAAAAAAAAAAKQAAQAB5P////z///8K4O
Dg/wAAAAAAAAIAAAEF4////yZTeXN0ZW0uRHJhd2luZy5EcmF3aW5nMkQuU21vb3Ro
aW5nTW9kZQEAAAAHdmFsdWVfXwAIAwAAAAEAAADyAAAAegEAAAAF4v///yVTeXN
0ZW0uRHJhd2luZy5UZXh0LlRleHRSZW5kZXJpbmdIaW50AQAAAAd2YWx1ZV9fAAgD
AAAAAAAAAAAAAAAAAAAAAAAAAAoAAAAA8wIAAAAAAAAAkHVAAP////8AAAAAAJ
B1QMIBAAAAAAABAAAKAAAAAAkKAAAAAQAAAeH////8////CgAAAP8AAAAAAAACA
AAAAAAAAAAAAQXg////I1N0ZWVtYS5UZWVDaGFydC5EcmF3aW5nLkJldmVsU3R5b
GVzAQAAAAd2YWx1ZV9fAAgCAAAAAAAAAAEAAAAB3/////z///8KAAAAAAAAAACmA
AEAAd7////8////CgAAAAAAAAAAAAAAAAHd/////P///woAAAAAAAAAAKQAAQAB3P///
/z///8KAAAAAAAAAACkAAEAAdv////8////CgAAAAAAAAAApgABAAHa/////P///woAAA
AAAAAAAAAAAAAB2f////z///8KAAAAAAAAAACkAAEAAAAAAAAAAAAACSgAAAAMAA
AAAAHX/////P///woAAAAAAAAAACMAAQAAESgAAAABAAAABioAAAAIVGVlQ2hhcnQL"
Line 61: GetChartFile="GetChart.aspx" Height="450px" TempChart="Session" Width="755px" />
Line 62: </div>


The Stack Trace is as follows:

[MethodAccessException: Attempt to access the method failed.]
System.RuntimeTypeHandle.CreateInstance(RuntimeType type, Boolean publicOnly, Boolean noCheck, Boolean& canBeCached, RuntimeMethodHandle& ctor, Boolean& bNeedSecurityCheck) +0
System.RuntimeType.CreateInstanceSlow(Boolean publicOnly, Boolean fillCache) +103
System.RuntimeType.CreateInstanceImpl(Boolean publicOnly, Boolean skipVisibilityChecks, Boolean fillCache) +261
System.Activator.CreateInstance(Type type, Boolean nonPublic) +66
System.RuntimeType.CreateInstanceImpl(BindingFlags bindingAttr, Binder binder, Object[] args, CultureInfo culture, Object[] activationAttributes) +1036
System.Activator.CreateInstance(Type type, BindingFlags bindingAttr, Binder binder, Object[] args, CultureInfo culture, Object[] activationAttributes) +114
System.Activator.CreateInstance(Type type, Object[] args) +16
System.SecurityUtils.SecureCreateInstance(Type type, Object[] args) +106
System.ComponentModel.LicenseManager.ValidateInternalRecursive(LicenseContext context, Type type, Object instance, Boolean allowExceptions, License& license, String& licenseKey) +178
System.ComponentModel.LicenseManager.ValidateInternal(Type type, Object instance, Boolean allowExceptions, License& license) +41
System.ComponentModel.LicenseManager.Validate(Type type, Object instance) +29
Steema.TeeChart.Chart..ctor() +104
Steema.TeeChart.Web.WebChart..ctor() +78
ASP.forms_rankinggraphs_aspx.__BuildControlWebChart1() in d:\hosting\watopt\Forms\rankinggraphs.aspx:60
ASP.forms_rankinggraphs_aspx.__BuildControlForm1() in d:\hosting\watopt\Forms\rankinggraphs.aspx:40
ASP.forms_rankinggraphs_aspx.__BuildControlTree(forms_rankinggraphs_aspx __ctrl) in d:\hosting\watopt\Forms\rankinggraphs.aspx:1
ASP.forms_rankinggraphs_aspx.FrameworkInitialize() in d:\hosting\watopt\Forms\RankingGraphs.aspx.cs:912307
System.Web.UI.Page.ProcessRequest(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +40
System.Web.UI.Page.ProcessRequest() +86
System.Web.UI.Page.ProcessRequestWithNoAssert(HttpContext context) +18
System.Web.UI.Page.ProcessRequest(HttpContext context) +49
ASP.forms_rankinggraphs_aspx.ProcessRequest(HttpContext context) in App_Web_dwcuovzb.0.cs:0
System.Web.CallHandlerExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute() +154
System.Web.HttpApplication.ExecuteStep(IExecutionStep step, Boolean& completedSynchronously) +64


The plot is being generated in the session. I also have the GetChart.aspx and GetChart.aspx.cs files in correct locations. Also the license file seems fine.

Please help me in solving this problem.

Thanks.

Best regards,

Amol

Narcís
Site Admin
Site Admin
Posts: 14730
Joined: Mon Jun 09, 2003 4:00 am
Location: Banyoles, Catalonia
Contact:

Post by Narcís » Tue Aug 22, 2006 9:16 am

Hi Amol,

Do you get the same error running the web demo project included with TeeChart for .NET v2? You can find this project at C:\Program Files\Steema Software\TeeChart for .NET v2\TeeChartForNET.
Best Regards,
Narcís Calvet / Development & Support
Steema Software
Avinguda Montilivi 33, 17003 Girona, Catalonia
Tel: 34 972 218 797
http://www.steema.com
Image Image Image Image Image Image
Instructions - How to post in this forum

Amol
Advanced
Posts: 176
Joined: Mon May 29, 2006 12:00 am

Attempt to access the method failed.

Post by Amol » Tue Aug 22, 2006 2:38 pm

Dear Narcis,

I do not get the same error in the sample or the demo. Also, I have developed applications in ASP.NET 1.1 and Visual Studio 2003 using TeeChart and those work great.

However, I migrated my project from .NET 1.1 to .NET 2.0 and started using Visual Web Developer 2005 Express for the development. Then I deployed this new application on a server having IIS. The TeeChart modules stopped working after that.

Please suggest a solution.

Thanks.

Best regards,

Amol

Amol
Advanced
Posts: 176
Joined: Mon May 29, 2006 12:00 am

TeeChart Problem with ASP.NET 2.0

Post by Amol » Tue Aug 22, 2006 9:52 pm

Hello Narcis,

I am in the middle of a very urgent task and so I decided to create a new project and try that on the website.

After creating, compiling and executin my new project, I tested it on the localhost and on the Local Area Network. Everything worked fine.

As soon as I updated the code on the website, I started getting the followin error message on every TeeChart module:

Server Error in '/' Application.
--------------------------------------------------------------------------------

Runtime Error
Description: An application error occurred on the server. The current custom error settings for this application prevent the details of the application error from being viewed remotely (for security reasons). It could, however, be viewed by browsers running on the local server machine.

Details: To enable the details of this specific error message to be viewable on remote machines, please create a <customErrors> tag within a "web.config" configuration file located in the root directory of the current web application. This <customErrors> tag should then have its "mode" attribute set to "Off".


<!-- Web.Config Configuration File -->

<configuration>
<system.web>
<customErrors mode="Off"/>
</system.web>
</configuration>


Notes: The current error page you are seeing can be replaced by a custom error page by modifying the "defaultRedirect" attribute of the application's <customErrors> configuration tag to point to a custom error page URL.


<!-- Web.Config Configuration File -->

<configuration>
<system.web>
<customErrors mode="RemoteOnly" defaultRedirect="mycustompage.htm"/>
</system.web>
</configuration>

To view the error, I included the specified code in my Web.config file. The code I added was:

<configuration>
<system.web>
<customErrors mode="RemoteOnly" defaultRedirect="mycustompage.htm"/>
</system.web>
</configuration>

Now, on every TeeChart module, I started getting the following error message in the address bar:

http://www. name>/<file name>.aspx

The page you tried to access does not exist on this server.

However, all the other pages in the same directory as the TeeChart containing pages are, work absolutely great!

Is there some issues of TeeChart Webcharts with ASP.NET 2.0 or Visual Webdeveloper 2005 Express?

Please suggest a solution.

Thanks.

Best regards,

Amol

Marc
Site Admin
Site Admin
Posts: 1272
Joined: Thu Oct 16, 2003 4:00 am
Location: Girona
Contact:

Post by Marc » Thu Aug 24, 2006 2:14 pm

Hello Amol,

TeeChart has been tested successfully in Web Developer Express so we should be able to find a solution to the problem.

The message seems to indicate that this might be a license issue. Please check that the Licenses.Licx is part of the project, that it is included as an embedded resource. As a double check removing Licenses.licx should cause an error compiling your project if the license is setup correctly in your machine.

Regards,
Marc Meumann
Steema Support

Amol
Advanced
Posts: 176
Joined: Mon May 29, 2006 12:00 am

Attempt to access the method failed.

Post by Amol » Thu Aug 24, 2006 2:28 pm

Dear Marc,

Thanks for your response. I tried removing the license.licx file as per your suggestion. Then I did "Build Web Site". The build was successful. However, when I executed the code, I did not see any webchart on the webpage (as it might not have found any license).

Then I uploaded this project onto my remote server along with the license.licx file. I got the following error message:

Server Error in '/' Application.
--------------------------------------------------------------------------------

Attempt to access the method failed.
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.MethodAccessException: Attempt to access the method failed.

Source Error:


Line 12: <form id="form1" runat="server">
Line 13: <div>
Line 14: &nbsp;<tchart:WebChart ID="WebChart1" runat="server" AutoPostback="False" GetChartFile="GetChart.aspx"
Line 15: TempChart="Session" />
Line 16:


Source File: d:\hosting\watopt\Default.aspx Line: 14

Stack Trace:


[MethodAccessException: Attempt to access the method failed.]
System.RuntimeTypeHandle.CreateInstance(RuntimeType type, Boolean publicOnly, Boolean noCheck, Boolean& canBeCached, RuntimeMethodHandle& ctor, Boolean& bNeedSecurityCheck) +0
System.RuntimeType.CreateInstanceSlow(Boolean publicOnly, Boolean fillCache) +103
System.RuntimeType.CreateInstanceImpl(Boolean publicOnly, Boolean skipVisibilityChecks, Boolean fillCache) +261
System.Activator.CreateInstance(Type type, Boolean nonPublic) +66
System.RuntimeType.CreateInstanceImpl(BindingFlags bindingAttr, Binder binder, Object[] args, CultureInfo culture, Object[] activationAttributes) +1036
System.Activator.CreateInstance(Type type, BindingFlags bindingAttr, Binder binder, Object[] args, CultureInfo culture, Object[] activationAttributes) +114
System.Activator.CreateInstance(Type type, Object[] args) +16
System.SecurityUtils.SecureCreateInstance(Type type, Object[] args) +106
System.ComponentModel.LicenseManager.ValidateInternalRecursive(LicenseContext context, Type type, Object instance, Boolean allowExceptions, License& license, String& licenseKey) +178
System.ComponentModel.LicenseManager.ValidateInternal(Type type, Object instance, Boolean allowExceptions, License& license) +41
System.ComponentModel.LicenseManager.Validate(Type type, Object instance) +29
Steema.TeeChart.Chart..ctor() +104
Steema.TeeChart.Web.WebChart..ctor() +78
ASP.default_aspx.__BuildControlWebChart1() in d:\hosting\watopt\Default.aspx:14
ASP.default_aspx.__BuildControlform1() in d:\hosting\watopt\Default.aspx:12
ASP.default_aspx.__BuildControlTree(default_aspx __ctrl) in d:\hosting\watopt\Default.aspx:1
ASP.default_aspx.FrameworkInitialize() in d:\hosting\watopt\Default.aspx.cs:912307
System.Web.UI.Page.ProcessRequest(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +40
System.Web.UI.Page.ProcessRequest() +86
System.Web.UI.Page.ProcessRequestWithNoAssert(HttpContext context) +18
System.Web.UI.Page.ProcessRequest(HttpContext context) +49
ASP.default_aspx.ProcessRequest(HttpContext context) in App_Web_aeyofikj.2.cs:0
System.Web.CallHandlerExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute() +154
System.Web.HttpApplication.ExecuteStep(IExecutionStep step, Boolean& completedSynchronously) +64




--------------------------------------------------------------------------------
Version Information: Microsoft .NET Framework Version:2.0.50727.42; ASP.NET Version:2.0.50727.42

What should I do to resolve this issue. I have been having problems for last one week now.

Please help!!!

Best regards,

Amol

Marc
Site Admin
Site Admin
Posts: 1272
Joined: Thu Oct 16, 2003 4:00 am
Location: Girona
Contact:

Post by Marc » Thu Aug 24, 2006 2:50 pm

Hello Amol,

If your project compiled without a problem without the Licenses.Licx file then it would seem that the license on the Developer machine is not correctly installed. You need to check that you are using the latest version of TeeChart and that there is no reference in the project to a different version (ie. via GAC). You could use the TeeRegister utility from the Customer Download page to correctly setup the design time license in your machine.

Regards,
Marc
Steema Support

Amol
Advanced
Posts: 176
Joined: Mon May 29, 2006 12:00 am

Registration of license file

Post by Amol » Thu Aug 24, 2006 3:13 pm

Dear Marc,

As suggested by you, I registered TeeChart using the registration utility but still I do not get any error message during compilation of the project without the license file.

I have been developing applications using TeeChart for .NET in .NET 1.1 using Visual Studio 2003. I recently upgraded my project from .NET 1.1 to .NET 2.0 and started the development of the project using Visual Web Developer 2005 Express. Now I have two versions running currently, the released version in .NET 1.1 and the test version in 2.0. The .NET 1.1 site works great. But the 2.0 test version just crashes all the time we try to access a page containing TeeChart. The crash everytime occurs on the line defining the webchart for example:

<tchart:WebChart ID="WebChart1" runat="server" AutoPostback="False" GetChartFile="GetChart.aspx"
TempChart="Session" />

Whenever this line is encountered in the .aspx webpage, the application just crashes saying:

Attempt to access the method failed.

The stack trace shows some licensemanager issue or method.

I hope that this information helps you in understanding the problem better and you may suggest some more options.

Best regards,

Amol

Marc
Site Admin
Site Admin
Posts: 1272
Joined: Thu Oct 16, 2003 4:00 am
Location: Girona
Contact:

Post by Marc » Fri Aug 25, 2006 7:29 am

Hello Amol,

Please send us a sample project that reproduces the issue and we'll take a look to see if there is any underlying configuration issue.

You could leave the project at the attachments newsgroup:
news://www.steema.net/steema.public.attachments

Just to confirm that I have understood correctly:
- Using TeeChart for .NET v2 compiled in an ASP.NET application with VSNET2003 (framework 1.1) you are able to deploy your application successfully.
- Migrating the above application to Framework v2 using Web Developer Express 2005, your application does not deploy successfully.

If the above is correct, when you are using Framework v2 are you changing to the version of TeeChart built with framework v2? (ie. the version installed with TeeChartNET2VSNET2005.exe). What is the build number of the TeeChart version you are using?

With thanks.
Regards,
Marc
Steema Support

Marc
Site Admin
Site Admin
Posts: 1272
Joined: Thu Oct 16, 2003 4:00 am
Location: Girona
Contact:

Post by Marc » Mon Aug 28, 2006 10:50 am

Hello Amol,

A further thought on this. If you have migrated from v1 to v2 TeeChart or moved the TeeChart location then please check that the Windows AssemblyFolders registration entry is pointing to the location of the TeeChart version you are using:
[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\.NETFramework\AssemblyFolders]
Alternatively remove the TeeChart entry from this registry location to manage TeeChart references on a project by project basis.

Regards,
Marc
Steema Support

Marc
Site Admin
Site Admin
Posts: 1272
Joined: Thu Oct 16, 2003 4:00 am
Location: Girona
Contact:

Post by Marc » Tue Aug 29, 2006 4:19 pm

Hello Amol,

The test project you posted works correctly when tested here. It will run on a machine with no designtime license installed.

The problem you have encountered may be the deployment of the project.

To run your project we:
- setup a new server virtual share in IIS
- Opening 'Properties' for the share:
- we gave it an application name
- gave it 'script' run rights in 'execution permissions'
- went to the 'ASP.NET' tab and set the Framework version for the share to v2.0xxx
- opened a browser and ran settingthe url to the share foldername.

Please check those steps in your deployment machine.

Regards,
Marc
Steema Support

Amol
Advanced
Posts: 176
Joined: Mon May 29, 2006 12:00 am

suggestions for a host

Post by Amol » Tue Aug 29, 2006 4:30 pm

Dear Marc,

Thanks for your response. I think I need your help in deciding a hosting company that supports .NET 2.0 and TeeChart.

Thanks and looking forward to your suggestions.

Best regards,

Amol

am
Newbie
Newbie
Posts: 11
Joined: Mon Feb 14, 2005 5:00 am

Post by am » Tue Aug 29, 2006 4:38 pm

Marc,

I am writing about the same problem. We have been able to run on our machines, the problem that we are talking about happens on remote commercial servers. On a remote server we dont get to control all those options typically.

Typically we get these kinds of errors on a remote host

a) registration error at the <@Register> statement.
b) method access error at tchart/webchart element.

May be you can host it on a remote server which supports .NET2.0 and see if it works fine for you.



Thanks
Amarsh

Marc
Site Admin
Site Admin
Posts: 1272
Joined: Thu Oct 16, 2003 4:00 am
Location: Girona
Contact:

Post by Marc » Wed Aug 30, 2006 9:14 am

Hello Amarsh,

Configuration flexibility will depend on each different service provider, a test with one may not reflect the status at another. The key to the issue in this thread has been, I think, that the virtual share properties ASP.NET version can be set to framework v1.1 or v2.0 and that if the service provider offers both then you need access to the properties window to be able to select v2.0.

With respect to any specific errors you may come across, perhaps you can send us a link to a test site for us to be able to collect more debug information.

With thanks.
Regards,
Marc
Steema Support

Post Reply