Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > ASP .Net > ASP .Net Web Controls > treeview and AspNetHostingPermission problem?

Reply
Thread Tools

treeview and AspNetHostingPermission problem?

 
 
bobh
Guest
Posts: n/a
 
      03-22-2005
Hi,

We have created a simple treeview control on an asp.net page with a couple
of nodes and it works okay on our development PC. When we try it on the live
server we get the error below. We have the webcontrols.dll in the bin
directory of our web application. When we try the basic page without the
treeview control, we don't get the error.

Can anyone shed any light as to what might be going wrong? Is it something
to do with the webcontrols.dll and permissions somewhere?

Many thanks

Bob

______________________
Server Error in '/OurApplicationName' 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=1.0.5000.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=1.0.5000.0,
Culture=neutral, PublicKeyToken=b77a5c561934e089 failed.]
System.Reflection.Assembly.GetType(String name, Boolean throwOnError,
Boolean ignoreCase) +
System.Web.UI.NamespaceTagNameToTypeMapper.System. Web.UI.ITagNameToTypeMapper.GetControlType(String tagName, IDictionary attribs) +34
System.Web.UI.MainTagNameToTypeMapper.GetControlTy pe(String tagName,
IDictionary attribs, Boolean fAllowHtmlTags) +193
System.Web.UI.RootBuilder.GetChildControlType(Stri ng tagName, IDictionary
attribs) +16
System.Web.UI.ControlBuilder.CreateChildBuilder(St ring tagName,
IDictionary attribs, TemplateParser parser, ControlBuilder
parentBuilder, String id, Int32 line, String sourceFileName, Type&childType)
+90
System.Web.UI.TemplateParser.ProcessBeginTag(Match match, String inputText)
+1118
System.Web.UI.TemplateParser.ParseStringInternal(S tring text) +722
System.Web.UI.TemplateParser.ParseString(String text, String
virtualPath, String basePhysicalDir) +102

 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
SecurityException AspNetHostingPermission weirdness JimLad ASP .Net 1 02-15-2010 10:57 AM
Request for the permission of type 'System.Web.AspNetHostingPermission...'failed clintonb ASP .Net 2 03-28-2008 11:53 AM
Request for the permisson of type 'System.Web.AspNetHostingPermission.. ' failed clintonb ASP .Net 0 02-26-2008 04:27 PM
Error: permission of type 'System.Web.AspNetHostingPermission..... =?Utf-8?B?U3JpbWFu?= ASP .Net 0 06-26-2007 09:48 PM
Web Custom Control Problem: error creating control aspnethostingpermission error Deniz Miscioglu ASP .Net Web Controls 1 10-19-2003 07:40 AM



Advertisments
 



1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57