Assembly??

  • Thread starter Thread starter Miki Peric
  • Start date Start date
M

Miki Peric

I'm trying to fill web.config file like this:

<SafeControl Assembly="WebPartLibrary1.WebPart1" Namespace="WebPartLibrary1"
TypeName="*" Safe="True"/>



The problem is that I don't know what "assemby" and "namespace" values I
should insert. This is my class:



namespace WebPartLibrary1

{

/// <summary>

/// Description for WebPart1.

/// </summary>

[DefaultProperty("Text"),

ToolboxData("<{0}:WebPart1 runat=server></{0}:WebPart1>"),

XmlRoot(Namespace="WebPartLibrary1")]

public class WebPart1 : Microsoft.SharePoint.WebPartPages.WebPart

{

....

....

....
 
(Sun, 11 Jul 2004 18:08:39) about "Assembly??":

Namespace = WebPartLibrary1 Assembly is name of your compiled dll where
your webpart is situated without dll extension.

HTH
Rene Stein <[email protected]>, C# MVP Sun, 11 Jul 2004 21:12:08 +0200

=== Posted with Qusnetsoft NewsReader 2.2.0.1

----- Original Message -----
From: "Miki Peric" <[email protected]> Sent: Sun, 11 Jul 2004 18:08:39
Subject: Assembly??



I'm trying to fill web.config file like this:

<SafeControl Assembly="WebPartLibrary1.WebPart1" Namespace=
"WebPartLibrary1" TypeName="*" Safe="True"/>



The problem is that I don't know what "assemby" and "namespace" values I
should insert. This is my class:



namespace WebPartLibrary1

{

/// <summary>

/// Description for WebPart1.

/// </summary>

[DefaultProperty("Text"),

ToolboxData("<{0}:WebPart1 runat=server></{0}:WebPart1>"),

XmlRoot(Namespace="WebPartLibrary1")]

public class WebPart1 : Microsoft.SharePoint.WebPartPages.WebPart

{

....

....

....
 
Back
Top