This is a migrated thread and some comments may be shown as answers.

Adding RagOrgChart to Web Form

1 Answer 61 Views
OrgChart
This is a migrated thread and some comments may be shown as answers.
Glen
Top achievements
Rank 1
Glen asked on 30 Nov 2012, 05:30 PM
I just installed the Tererik Controls to visual studio and when I added the RagOrgChart to my page it added just fine but when I opened it up in my browser it gave me a security warning:  Her is the HTML Code:
<%@ Page Language="VB" AutoEventWireup="false" CodeFile="LeapTree.aspx.vb" Inherits="Pages_Leaps_LeapTree" %>
 
<%@ Register Assembly="Telerik.Web.UI" Namespace="Telerik.Web.UI" TagPrefix="telerik" %>
 
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
 
<head>
    <title>Test</title>
</head>
 
<body>
    <form id="form1" runat="server">
    <telerik:RadOrgChart ID="RadOrgChart1" runat="server">
    </telerik:RadOrgChart>
 
    </form>
</body>
</html>


Server Error in '/BuisnessPlan_2' Application.

Security Exception

Description: The application attempted to perform an operation not allowed by the security policy.  To grant this application the required permission please contact your system administrator or change the application's trust level in the configuration file.

Exception Details: System.Security.SecurityException: Request for the permission of type 'System.Web.AspNetHostingPermission, System, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089' failed.

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:

[SecurityException: Request for the permission of type 'System.Web.AspNetHostingPermission, System, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089' failed.] System.Reflection.Assembly._GetType(String name, Boolean throwOnError, Boolean ignoreCase) +0 System.Web.UI.NamespaceTagNameToTypeMapper.GetControlType(String tagName, IDictionary attribs, Boolean throwOnError) +98 System.Web.UI.NamespaceTagNameToTypeMapper.System.Web.UI.ITagNameToTypeMapper.GetControlType(String tagName, IDictionary attribs) +11 System.Web.UI.TagPrefixTagNameToTypeMapper.System.Web.UI.ITagNameToTypeMapper.GetControlType(String tagName, IDictionary attribs) +127 System.Web.UI.MainTagNameToTypeMapper.GetControlType2(String tagName, IDictionary attribs, Boolean fAllowHtmlTags) +228 System.Web.UI.MainTagNameToTypeMapper.GetControlType(String tagName, IDictionary attribs, Boolean fAllowHtmlTags) +28 System.Web.UI.RootBuilder.GetChildControlType(String tagName, IDictionary attribs) +20 System.Web.UI.ControlBuilder.CreateChildBuilder(String filter, String tagName, IDictionary attribs, TemplateParser parser, ControlBuilder parentBuilder, String id, Int32 line, VirtualPath virtualPath, Type& childType, Boolean defaultProperty) +69 System.Web.UI.TemplateParser.ProcessBeginTag(Match match, String inputText) +526 System.Web.UI.TemplateParser.ParseStringInternal(String text, Encoding fileEncoding) +896 


Version Information: Microsoft .NET Framework Version:2.0.50727.6400; ASP.NET Version:2.0.50727.6387            

1 Answer, 1 is accepted

Sort by
0
Kate
Telerik team
answered on 05 Dec 2012, 09:11 AM
Hello Glen,

Thank you for contacting us.

The exception that you describe does not seem to be caused by the Telerik controls (for a simple test I would suggest that you use any other control and check how the application will behave). Please take a look at the following article that I believe would be very helpful in resolving the issue that you get - System.Web.AspNetHostingPermission Error

I hope this helps. Let me know if you have any other questions that I can assist you with.

Regards,
Kate
the Telerik team
If you want to get updates on new releases, tips and tricks and sneak peeks at our product labs directly from the developers working on the RadControls for ASP.NET AJAX, subscribe to their blog feed now.
Tags
OrgChart
Asked by
Glen
Top achievements
Rank 1
Answers by
Kate
Telerik team
Share this question
or