Sharepoint Forum

Ask Question   UnAnswered
Home » Forum » Sharepoint       RSS Feeds

Web Part cannot be displayed.

  Asked By: Caitlin    Date: Sep 16    Category: Sharepoint    Views: 2278

I have searched the group already but did not find the answert to my
problem, apologies if I have inadvertently missed the solution somewhere.

I am trying to register a VERY basic webpart in SPS (following
instructions from a book as it happens) but I continue to get the
error below:

"A Web Part or Web Form Control on this Web Part Page cannot be
displayed or imported because it is not registered on this site as safe."

From looking on the web it seems the problem is with my web.config
file or my dwp file. I have gone over the .dwp file a lot and am sure
it is character perfect. Ditto the safe control I have added to the
web.config file.

My questions are. If the virtual server hosting the SPS portal is
C:\Merlin\Virtual Servers\Arthur\ then is C:\Merlin\Virtual
Servers\Arthur\web.config definately the correct web.config to update?
Second, the .dll produced by VS2005 was created on my local PC but
copied to 'bin' folder in the above folder. Does that sounds correct?

I have also already changed the trust level in the web.config file
mentioned above to 'Full' since it is purely for development.



2 Answers Found

Answer #1    Answered By: Megan Martin     Answered On: Sep 16

.Net 2.0 doesn't work on SPPS 2003. You need to use VS.Net 2003 to develop web  parts for SPPS 2003.

Answer #2    Answered By: Donta Kirkland     Answered On: Sep 16

I would suggest to follow Todd Bleaker's web  Parts in
10 easy steps. One tip I like is that always create a
skeleton web part  (doing nothing web part) and deploy
it, then refine the logic and rendering later. I
always create CAB files and use stsadm.exe instead of
copying files myself. Before setting AssemblyKeyFile I
would try Full trust  level as well.

Didn't find what you were looking for? Find more on Web Part cannot be displayed. Or get search suggestion and latest updates.