Question

hosted sharepoint site - how do i add custom web parts?

Asked by: wendy326

I have a couple of problems I'm running into right now. I have a sharepoint site that is hosted on a shared server (thru 1and1.com). The first problem is that when I try to edit it in FrontPage, all the web part functionality is greyed out so I can't add any new web parts.

The second problem is that when I modify the page from the site itself, and I try to import new web parts (dwp files), I am not able to use them because I get a message "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."

When I look up instructions on how to eliminate this message, they all seem to require command line access to the server, which I don't have.

Am I out of luck on custom web parts or is there a way around this? I thought FrontPage might give me some options but I'm stuck there too.

Thanks!
Wendy

This Question has been solved and asker verified All Experts Exchange premium technology solutions are available to subscription members.

Subscribe now for full access to Experts Exchange and get

Instant Access to this Solution

  • Plus...
  • 30 Day FREE access, no risk, no obligation
  • Collaborate with the world's top tech experts
  • Unlimited access to our exclusive solution database
  • Never be left without tech help again

Subscribe Now

Asked On
2005-06-14 at 14:58:41ID21458183
Tags

customize

,

greyed

,

out

,

parts

,

sharepoint

Topic

MS SharePoint

Participating Experts
3
Points
500
Comments
7

Trusted by hundreds of thousands everyday for fast, accurate and reliable tech support.

  • "The time we save is the biggest benefit of Experts Exchange to Warner Bros. What could take multiple guys 2 hours or more each to find is accessed in around 15 minutes on Experts Exchange." Mike Kapnisakis, Warner Bros.
  • "Our team likes having a resource that is more secure than just using Google and most experts using this service really know their stuff. It's nice to look here first versus using Google." Dayna Sellner, Lockheed Martin
  • "Anytime that I've been stumped with a problem, 9 out of 10 times Experts Exchange has either the accepted solution or an open discussion of the potential solution to the problem." Kenny Red, eBay Inc.

See what Experts Exchange can do for you.

Got a question?

We've got the answer.

Experts Exchange has been collecting answers to technology questions since 1996…3 million and counting! If you have a question, chances are we already have your answer.

Screenshot of Experts Exchange Knowledgebase

Need individual assistance?

Our experts are ready to help.

If you can't find the exact answer you're looking for, ask our exclusive community of 50,000 experts. You’ll get a personalized answer from a trusted professional.

Screenshot of Experts Exchange Knowledgebase

Want to learn from the best?

Read articles from industry experts.

Thousands of free tech tips, tricks, how-to’s and tutorials are available in our peer reviewed articles section. See for yourself how smart our experts are, no login required.

Screenshot of an Article

Working on a long term project?

Store your work and research.

Save solutions to your questions, answers you’ve discovered through searching plus helpful articles in your personal knowledgebase for easy future access.

Screenshot of Experts Exchange Knowledgebase

Access the answers to your technology questions today.

Subscribe Now

30-day free trial. Register in 60 seconds.

What Makes Experts Exchange Unique?

Members of the expert community talk about why the experience at Experts Exchange is different than what you will find anywhere else.

Trusted by the world's most respected brands.

image of each brand's logo

Faithfully serving IT professionals since 1996.

Experts Exchange Logo

Try it out and discover for yourself.

Subscribe Now

30-day free trial. Register in 60 seconds.

Related Solutions

  1. SharePoint Template - Frontpage 2002
    Hi I'm want to use the Sharepoint template provided with Frontpage 2002 to develop our intranet. Our server is Windows 2003. My understanding is that I can run this template on the server if Windows Sharepoint Server (WSS) is installed and the WSS is provided free with Win...
  2. Sharepoint Enabled Website for FrontPage DataView Access
    Hi all. Hope you are well. Windows 2003 Standard Edition running Office Sharepoint Portal Server 2003. I recently decided to setup a small web hosting server for particular clients, which thanks to EE help is running like a charm! (http://www.experts-exchange.com/Web/Web_Se...
  3. Sharepoint Crashes Frontpage?
    Hi, I'm editing a Sharepoint page in frontpage 2003 (nothing other than adding a webpart) and whenever I try to save it back to the server frontpage crashes. Confused, I tried opening the sharepoint site with windows explorer (through a shortcut that worked the last time I ...
  4. Sharepoint and Frontpage Admin
    We installed Sharepoint Services 2.0 with SP2 on our WIn2k3 server with iis 6. Now when we try to go in and check the Frontpage extensions on the server it ask for un and pw and the admin account no longer works. It prompts 3 times and then says unauthoirzed. I noted it pu...
  5. Publishing Sharepoint 2007 thru ISA 2004
    We recently acquired Sharepoint 2007 and as you all know there is not a lot of information on it lying around. It's running fine from inside our network, but we wan't certain clients and vendors to access specific sites and we need to publish sharepoint thru isa 2004. I've ...

Free Tech Articles

  1. WARNING: 5 Reasons why you should NEVER fix a computer for free.
    It is in our nature to love the puzzle. We are obsessed. The lot of us. We love puzzles. We love the challenge. We thrive on finding the answer. We hate disarray. It bothers us deep in our soul. W...
  2. SCCM OSD Basic troubleshooting
    SCCM 2007 OSD is a fantastic way to deploy operating systems, however, like most things SCCM issues can sometimes be difficult to resolve due to the sheer volume of logs to sift through and the dispe...
  3. Migrate Small Business Server 2003 to Exchange 2010 and Windows 2008 R2
    This guide is intended to provide step by step instructions on how to migrate from Small Business Server 2003 to Windows 2008 R2 with Exchange 2010. For this migration to work you will need the fo...
  4. Create a Win7 Gadget
    This article shows you how to create a simple "Gadget" -- a sort of mini-application supported by Windows 7 and Vista. Gadgets can be dropped anywhere on the desktop to provide instant information, ...
  5. Outlook continually prompting for username and password
    There have been a lot of questions recently regarding Outlook prompting for a username and password whilst using Exchange 2007. There are a few reasons why this would happen and I will try to cover t...
  6. Backup Exchange 2010 Information Store using Windows Backup
    There seems to be quite a lot of confusion around the ability to backup Exchange 2010 using the built in Windows Backup feature. This stems from the omission of this feature prior to Exchange 2007 s...

Cloud Class Webinars

  1. Avoiding Bugs in Microsoft Access
    Alison Balter takes and in-depth look at avoiding bugs in Access. In this webinar you will learn about using the immediate window to debug your applications, invoking the debugger, using breakpoints to troubleshoot, stepping through code, setting the next statement to execute, ...
  2. Top 10 Best New Features in Visio 2010
    Scott Helmers gives live demonstrations of the top 10 new features in Visio 2010. This webinar will teach you how to create compelling diagrams by adding shapes to the page with a single click, linking the shapes in a diagram to data in Excel (or SQL Server, or SharePoint), ...
  3. IT Consultant Business Secrets Revealed
    Michael Munger, Experts Exchange tech pro and IT consultant, pulls back the curtain on his very successful businesses and answers question on every IT consultant and business owner should know about. He shares secrets on what he did to solve the 5 most common problems in IT, ...
  4. Disaster Recovery and Business Continuity
    Quest CTO, Mike Billon, gives an overview of the steps involved in building a dunamic disaster recovery plan. Through case studies and an examination of software/hardware tooles for monitoring and testing, you'll gain a better understandin of where you are, where you want ...
  5. Organize Your Visio Diagrams with Containers and Lists
    Scott Helmers uses cross functional flowcharts, wireframe diagrams, data graphic legends and seating charts to teach you: how to ustilize all three new structured diagram components in Visio 2010, the best practices for organizeing shapes in previous version of Visio, how to organize ...
  6. How to Us Objects, Properties, Events and Methods in Microsoft Access
    Alison Dalter gives an in-depbth look at objects, properties, events and methods in Microsoft Access. In this webinar you will learn about using the object browser, referring to objects, working with properties and methods, working with object variables, understanding the ...

Join the Community

Give a Little. Get a Lot.

Join the community of experts here and help other tech pros by answering question in your area of expertise. You can earn FREE access to all Experts Exchange's premium features and resources.

Join the Community

Answers

 

by: wendy326Posted on 2005-06-14 at 16:34:34ID: 14216894

Thanks! I didn't see this topic area earlier.

 

by: humeniukPosted on 2005-06-14 at 17:32:25ID: 14217186

It's new, just added a little over a month ago :)

 

by: wendy326Posted on 2005-06-14 at 19:54:48ID: 14217684

I got part of this solved...under tools -> page options -> authoring, there's a checkbox for allowing sharepoint services. I checked that off and was able to un-grey all the web part options in the menu.

I still have the message "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."

I'm guessing that there's no way to add these using just FrontPage on a shared server/hosted environment, but I'd like confirmation before I give up....do I need to find a new web host who offers more parts?

 

by: ninjavaPosted on 2005-06-14 at 21:08:53ID: 14217872

Wendy,

It depends what you are trying to do with the customized webpart. Most webparts must be registered with the exeception of customizations you do to the content webpart, the xml webpart and the form webpart. Because the customization to these webparts is actually contained in the customized code and they are already registered as webparts. I experimented with creating customized webparts using javascript inside of the content webpart with some success. I also had some success using the xml webpart for RSS feeds. Another trick is to use a feed from a site using "feed2js" to convert RSS into javascript and use the javascript inside of a content webpart. The hosting service I have discovered with the most webparts is Frontpage Hosting. I hope this helps.

 

by: _TAD_Posted on 2005-06-15 at 08:24:36ID: 14222423



In order to add new web parts, you need to have access to the server.  Web parts need to be registered as "safe".  To do this you need to add a registry entry into the GAC on the web server and also include a strong name.

If you do not have access to the server, you will have to request that the admins add the web part on your behalf.  If they are unable or unwilling to do so, you will not be able to add any new web parts.


Here is an exerpt from a document I created for some of my programmers:

Abstract
      SharePoint is a very robust web application with many feature-rich stock components known as “web parts ”.  These web parts (many provided by Microsoft) can do a great many things, but they cannot be “everything-to-everybody”.  Because of this, Microsoft has allowed its customers to create their own web parts using the exact same API  that Microsoft used to create SharePoint.   The rest of this document will briefly go over a few basic methods for creating, installing and testing web parts; focusing mainly on the creation of web parts from within VS.Net   2003 (Microsoft’s preferred IDE ).
      There are a few steps that need to be done before a web part can be built.  (1) The programmer will need to download the Microsoft.Sharepoint.dll file and register it in their global assembly cache (GAC ).  (2) The programmer will need to download and install SharePoint’s .Net SDK  (wssSdk.exe ).  (3) Finally, the developer will need to download and install Lutz Roeder's .Net Reflector program.



 
Development
Pre-Development
1.      Download and register Microsoft.Sharepoint.dll into the GAC
2.      Download and install the wsssdk.exe
3.      Download and install Lutz Roeder's .Net Reflector program.

Development Steps
1.      Using Visual Studio.Net, create a new SharePoint Web Part Project (wssSDK should have added this option to your Visual Studio Project Manager.
2.      Include reference to Microsoft.sharepoint.dll
3.      Using the sn.exe  command line utility create a KeyPair.snk file
4.      Include a CAB  project into your web part solution
a.      Include Primary Output
b.      Include Content Files
c.      Include KeyPair.snk
d.      Include other files (e.g. resX , gifs , etc)
Note: make sure that the CAB project is a dependent of the web part project
5.      Edit the AssemblyInfo.cs class, change AssemblyVersion(“1.0.0.1”)
6.      Use Lutz Roeder's .Net Reflector  to get the PublicKeyToken ID
7.      Edit the DWP file to include assembly information (e.g. <Assembly>MyWebPartProjectName, Version=1.0.0.1, Culture=neutral, PublicKeyToken=d2d0ae92999983bd</Assembly>
a.      The Assembly name [MyWebPartProjectName] is case sensitive and MUST match the compiled dll name exactly.  
b.      The entire contents of the <Assembly> tags can be copied and pasted from the .Net Reflector program
8.      The version number in the dwp file MUST match the version in the AssemblyInfo.cs file exactly.

Development Notes
1.      All public properties will be serialized and be part of the tool parts property pages.
2.      Public properties should be of the following types: String, Enumeration, Boolean, Date or Numeric.
Property Type      Displays as
String      Text Box
Date      Text Box
Numeric      Text Box
Boolean      Check Box
Enumeration      Drop Down List

 

3.      Each public property should have the following attributes:
Attribute Name      Attribute Resultant
Browsable(<true/false>)      - Displays the property in the tool pane (true or false)
Category(<Text Value>)      - Determines which category this property will appear under.
- If no category is provided, Miscellaneous will be used
- If the entry matches categories that already exist (Advanced, Layout, etc), the entry will be ignored and Miscellaneous will be used.
DefaultValue(<variable>)      - Required for proper initialization
WebPartStorage
(<storage enum value>)      - Determines who sets the value (shared is set by admin, personal is set by user)
FriendlyName(<Text Value>)      - This is the title of the property and it will show up as a label on the tool property pane.
Description(<Text Value>)      - This is the information that will display in the tool tip dialog

4.      Each property should be dependent on two defined variables.  The first is a constant which defines the default value (<private const string defaultVarValue>). The second is the variable that will store the value of the data entered (<private string varValue>).








 
Installation

1.      Copy the recently compiled CAB project to a directory on the SharePoint web server (must be placed on both production web servers).
a.      We are currently storing all of the CAB projects in the following directory:
\\hqsppweb\Program Files\Common Files\Microsoft Shared\web server extensions\60\WPPACKS

2.      Installing the web part can be as easy as right-clicking the CAB project and “Install Web Part”, or by using the stsadm.exe program
3.      Using the command line utility stsadm.exe found at: C:\Program Files\Common Files\Microsoft Shared\web server extensions\60\BIN perform the following commands
a.      Add Web Part: stsadm -o addwppack -globalinstall -force -filename C:\<path>\<Cab Project Name>.CAB
b.      Delete Web Part: stsadm -o deletewppack -name <Cab Project Name>.CAB


 
Testing

Task       
     
Verify that you can add the Web Part properly to a Web Part zone.
     
Verify that static Web Parts render appropriately and do not cause the Web Part Page to fail.
     
Verify that the Web Part works correctly regardless of where the Web Part Page is located.
     
Verify that property attributes are correctly defined.
     
Verify that Web Part changes made in personal view are not reflected in shared view.
     
Verify that every public property can handle bad input.
     
Verify that the Web Part handles all of its exceptions.
     
Verify that the Web Part renders correctly in Microsoft Office FrontPage.
     
Verify that Web Part properties displayed in the tool pane are user-friendly.
     
Verify that the Web Part appears appropriately in the search results.
     
Verify that you can import and export the Web Part properly.
     
Verify that the Web Part previews properly.
     
Verify that the Web Part can access its resources in different setup configurations.
     
Verify that Web Part properties are not dependent on each other.
     
Verify that Web Parts work correctly with different combinations of Web Part zone settings.
     
Verify that the Web Part renders appropriately based on user permissions.
     
Verify that adding several instances of the same Web Part to a Web Part Page (or in the same Web Part zone) works correctly.
     
Verify that Web Part caching works correctly.
     
Verify that requests to other HTTP sites or Web services are asynchronous.


Original Source:

http://msdn.microsoft.com/library/default.asp?url=/library/en-us/odc_SP2003_ta/html/Office_SharePointWebPartsTestingChecklist.asp

 
Appendix

SharePoint Developer to Developer
http://msd2d.com/

Introduction to Web Parts
http://msdn.microsoft.com/library/default.asp?url=/library/en-us/odc_SP2003_ta/html/sharepoint_modifyingui.asp

Building a Basic Web Part
http://msdn.microsoft.com/library/default.asp?url=/library/en-us/spptsdk/html/CreateWPToolPart_SV01003711.asp

Web Part Design Considerations
http://msdn.microsoft.com/library/default.asp?url=/library/en-us/modcore/html/deconguidelinesforbuildinggoodwebparts.asp

Advanced Web Part Design
http://msdn.microsoft.com/library/default.asp?url=/library/en-us/odc_SP2003_ta/html/sharepoint_modifyingui.asp

Deploying Web Parts
http://msdn.microsoft.com/library/default.asp?url=/library/en-us/odc_SP2003_ta/html/sharepoint_deployingwebparts.asp

 

by: wendy326Posted on 2005-06-15 at 22:15:29ID: 14228416

Thanks so much for your very helpful responses.  I have switched to Frontpagehosting, at ninjava's suggestion.  They have a bunch of pre-installed web parts.  Also they say they will install free ones - so it looks like they are flexible. And thanks to Tad for a better appreciation of what's involved in an install.

20120131-EE-VQP-002

3 Ways to Join

30-Day Free Trial

The Experts

98% positive feedback on 31,087 answers since March 2000. angeliii is a Microsoft Most Valuable Professional for his work with MS SQL Server & Develoment.

He has also proven his knowledge of Visual Basic Programming, PHP Scripting and Oracle Databases.

The Experts

97% positive feedback on 10,752 answers since July 2000. lrmoore has more than 18 years experience in the networking industry.

The six-time Mircosoft MVPs specialties include firewalls, virtual private networking, and network management.

Testimonials

"...and excellent source for support... Kind of like having your very own IT dept." Electriciansnet

Testimonials

"I was apprehensive at signing up at first. However... it has already made my life as an IT administrator much easier." JaCrews

Testimonials

"WOW! You guys have great, active, and knowledgeable people on here." moore50

Business Clients

Business Clients

In the Press

"If you’ve got a question... Experts Exchange can supply an answer.”

In the Press

"...an invaluable aid for both IT professionals and those who require tech support."

In the Press

"where IT professionals provide quick answers on just about any topic"

Business Account Plans

Loading Advertisement...