MOSS Forum

Ask Question   UnAnswered
Home » Forum » MOSS       RSS Feeds

2007 web part problem

  Asked By: Chaim    Date: Apr 14    Category: MOSS    Views: 1037

I'm trying to deploy a HelloWorld web part. I am following the
following steps:


This works fine for C#. However, when I create a vb web part I
cannot get the web part to show up in the gallery after I deploy it
to the bin folder. I'm guessing it has something to do with the
AssemblyInfo.vb file being in a different location than it is in a
c# project (When I create a new vb class library, it creates
AssemblyInfo .vb in the My Projects folder instead of the Properties
folder like in C#). I checked the vbproj file and it does look like
it is compiling the correct file, however.

Does anyone have any step by step guidance to creating a vb web part
(or idea what I'm doing wrong)? I've seen Ted Pattison's demo on
channel9, but he's developing on the server, while I'm developing on
my local machine.



7 Answers Found

Answer #1    Answered By: Karla Morrison     Answered On: Apr 14

Developing on the server  vs. your local  machine won’t have an impact since, like this guy’s blog post, it’s a pure ASP.NET 2.0 Web Part (assuming you aren’t using the Microsoft.SharePoint.*.WebPart class).

Have you made sure you’ve listed it in the safe controls? Added it to the gallery?

Answer #2    Answered By: Patricia Richardson     Answered On: Apr 14

Yes, I've added it to the safe controls. Exactly like I did for the
c# web  part. I don't see the HelloWorld.webpart entry on the
following page:

Web part  Gallery: New Web Parts

This list displays all available Web Parts for this gallery. Select
each Web Part you want to add, and then click Populate Gallery.

I will to create  another one, but I still don't think that I've done
anything differently.

Answer #3    Answered By: Damon Garner     Answered On: Apr 14

There’s nothing special about a VB Web Part when compared to a C# Web Part… so I’m not sure what the problem  is, but comparing the two should help. I’m a C# guy so I can’t be of too much help debugging VB.

Answer #4    Answered By: Christop Mcfadden     Answered On: Apr 14

It is frustrating because I can create  a C#
web part  in about 30 seconds now. I just cannot get a vb.net one to
deploy for me. And it should be so easy...

If anyone out there has deployed a vb.net web  part please post the
steps you've followed!

Answer #5    Answered By: Stefanie Ruiz     Answered On: Apr 14

Created one in 30 seconds? Any chance you’re considering switching ot the dark side with is lowly C#’rs?

Answer #6    Answered By: Damon Garner     Answered On: Apr 14

It all depends on how good the food is on the darkside.

Answer #7    Answered By: Royce Orr     Answered On: Apr 14

Black pudding followed by black forest gateaux

Didn't find what you were looking for? Find more on 2007 web part problem Or get search suggestion and latest updates.