> I created a "Hello World!" webpart in C#, but soon realized I needed
> one in VB .Net. I created the VB .Net webpart the same way as the C#
> webpart. I created a class library on a machine that was not the
> Sharepoint Box. I added a reference to System.Web. I strongly named
> both, then I built both applications. Then I pushed the .dll files
> into the global assembly cache on the actual server and created safe
> controls for both. When I went to the webpart gallery in MOSS 2007
> the only visible webpart was the C# version. I have tried numerous
> IIS Resets and checked the Safe Control Entries multiple times by
> copying and pasting the PublicKeyToken ID. Here is my VB .Net Code:
> Imports System
> Imports System.Web
> Namespace ClassLibrary5
> Public Class AnotherSimpleWebpart
> Inherits System.Web.UI.WebControls.WebParts.WebPart
> Protected Overrides Sub Render(ByVal writer As
> System.Web.UI.HtmlTextWriter)
> writer.Write("HelloWorld!")
> MyBase.Render(writer)
> End Sub
> End Class
> End Namespace
> Here is my safe control:
> <SafeControl Assembly="ClassLibrary5,Version=1.0.0.0,
> Culture=neutral,PublicKeyToken=0689a694ac06fe62"
> Namespace="ClassLibrary5" TypeName="AnotherSimpleWebpart" Safe="True" /
> If anyone has any suggestions I am all ears. Thanks for the help.
> Sincerely,
> Becky Isserman
tutorials. The problem I discovered was that when creating a class
library in VB it used an already defined root namespace. If you right
should work.