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

[Solved] Installing WebPart

4 Answers 133 Views
RadControls
This is a migrated thread and some comments may be shown as answers.
This question is locked. New answers and comments are not allowed.
Majko
Top achievements
Rank 1
Majko asked on 28 Feb 2007, 12:20 PM
I want to make WebPart which uses RadTreeView. How to install that WebPart on SharePiont 2007? What should I do with RadTreeView.Net2.dll?

4 Answers, 1 is accepted

Sort by
0
Lini
Telerik team
answered on 28 Feb 2007, 02:13 PM
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
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?

0
Lini
Telerik team
answered on 28 Feb 2007, 02:49 PM
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
0
Majko
Top achievements
Rank 1
answered on 28 Feb 2007, 03:05 PM
It works. Thx
Tags
RadControls
Asked by
Majko
Top achievements
Rank 1
Answers by
Lini
Telerik team
Majko
Top achievements
Rank 1
Share this question
or