Hola , he creado correctamente un elemento web tal y como indica en el libre
"Programacion con sharepoint 2007". Pero al agregarlo me sale este error:
No se pueden agregar los elementos Web seleccionados.
Ingeras WebPart: Se requiere el elemento <type>. Agreguelo al archivo de
elementos Web ((.webpart), y despues intente importar el elemento web.
Aqui os dejo el codigo: Class1.vb
Imports System.Web.UI
Imports System.Web.UI.WebControls
Imports System.Web.UI.WebControls.WebParts
Imports Microsoft.SharePoint
Imports Microsoft.SharePoint.WebControls
<Assembly: AllowPartiallyTrustedCallers()>
Namespace IngerasWebParts
Public Class SeleccionResidencias
Inherits WebPart
Protected Overloads Sub render(ByVal writer As HtmlTextWriter)
writer.Write("hola")
End Sub
End Class
End Namespace
webp.webpart
<?xml version="1.0" encoding="utf-8"?>
<webParts>
<webPart xmlns="
http://schemas.microsoft.com/WebPart/v3">
<metadata>
<type name="IngerasWebParts.SeleccionResidencias, ClassLibrary3,
Version=1.0.0.0, Culture=neutral, PublicKeyToken=d530452b3ae87450">
</type>
<importErrorMessage>Error importando la WebPart</importErrorMessage>
</metadata>
<data>
<properties>
<property name="Title" type="string">Ingeras WebPart</property>
<property name="Descripcion" type="string">Descripcion de la
webpart</property>
</properties>
</data>
</webPart>
</webParts>
Manifest.xml
<?xml version="1.0"?>
<WebPartManifest xmlns="
http://schemas.microsoft.com/WebPar...">
<Assemblies>
<Assembly FileName="ClassLibrary3.dll">
<SafeControls>
<safeControl Namespace="SeleccionResidencias" TypeName="*" />
</SafeControls>
</Assembly>
</Assemblies>
<DwpFiles>
<DwpFile FileName="Webp.webpart"/>
</DwpFiles>
</WebPartManifest>
Plz ayuda!!
Leer las respuestas