4 Answers, 1 is accepted
0
Hello Majko,
First you need to put the treeview assembly (RadTreeView.Net2.dll) into the bin folder of your moss site (for example c:\Inetpub\wwwroot\wss\VirtualDirectories\80\bin\ ). Then you will need to edit the web.config file for the site and mark the assembly as safe. This is done by adding a <SafeControl> node in the <SafeControls> list. For example:
<SafeControl Assembly="RadTreeView.Net2, Version=6.1.1.0, Culture=neutral, PublicKeyToken=dbd98e0feff9f06b" Namespace="Telerik.WebControls" TypeName="*" Safe="True" />
Then you should be able to use the treeview control in your custom webpart.
Sincerely yours,
Lini
the telerik team
First you need to put the treeview assembly (RadTreeView.Net2.dll) into the bin folder of your moss site (for example c:\Inetpub\wwwroot\wss\VirtualDirectories\80\bin\ ). Then you will need to edit the web.config file for the site and mark the assembly as safe. This is done by adding a <SafeControl> node in the <SafeControls> list. For example:
<SafeControl Assembly="RadTreeView.Net2, Version=6.1.1.0, Culture=neutral, PublicKeyToken=dbd98e0feff9f06b" Namespace="Telerik.WebControls" TypeName="*" Safe="True" />
Then you should be able to use the treeview control in your custom webpart.
Sincerely yours,
Lini
the telerik team
0
Majko
Top achievements
Rank 1
answered on 28 Feb 2007, 02:43 PM
Thx.
After this modifications, I get this exception:
The type initializer for 'Telerik.RadTreeviewUtils.RadControl' threw an exception.; Request for the permission of type 'System.Security.Permissions.FileIOPermission, mscorlib, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089' failed.
This part of code throws this exception:
tree = new RadTreeView();
Any ideas?
After this modifications, I get this exception:
The type initializer for 'Telerik.RadTreeviewUtils.RadControl' threw an exception.; Request for the permission of type 'System.Security.Permissions.FileIOPermission, mscorlib, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089' failed.
This part of code throws this exception:
tree = new RadTreeView();
Any ideas?
0
Hello Majko,
Try adding a <SafeControl> line for the Telerik.RadTreeviewUtils namespace as well. Also, raise the application trust level. It is WSS_Minimal by default and you should put it at Medium or Full. Here is the line in your Web.config file:
...
<trust level="WSS_Minimal" originUrl="" />
...
Greetings,
Lini
the telerik team
Try adding a <SafeControl> line for the Telerik.RadTreeviewUtils namespace as well. Also, raise the application trust level. It is WSS_Minimal by default and you should put it at Medium or Full. Here is the line in your Web.config file:
...
<trust level="WSS_Minimal" originUrl="" />
...
Greetings,
Lini
the telerik team
0
Majko
Top achievements
Rank 1
answered on 28 Feb 2007, 03:05 PM
It works. Thx