No Web Parts are displayed in the online Web Part gallery, or you cannot retrieve content in the Content Editor Web Part in Windows SharePoint Services (912060)



The information in this article applies to:

  • Microsoft Office SharePoint Portal Server 2003
  • Microsoft Windows SharePoint Services

SUMMARY

This article describes an issue in which no Web Parts are listed in the online Web Part gallery in a Microsoft Windows SharePoint Services Web site. Alternatively, you cannot retrieve content in the Content Link box when you use the Content Editor Web Part. This issue occurs if the server is behind a proxy server or firewall, and the proxy server settings are not specified in the Web.config file for the virtual server. This issue also occurs if you specified proxy server settings in the Web.config file, but you upgraded the server from ASP.NET 1.1 to ASP.NET 2.0. To resolve this issue, specify additional proxy server settings. This article describes how to specify proxy server settings. Use the method that is appropriate to the version of ASP.NET that is running on the server.

SYMPTOMS

You experience one or both of the following symptoms in Microsoft Windows SharePoint Services:
  • You cannot open the online Web Part gallery or add a Web Part from the online Web Part gallery to a Web page in a Windows SharePoint Services Web site. When you view the list of Web Part galleries, you see (0) displayed next to Online Gallery. When you click Online Gallery, you receive the following error message:
    Cannot open the Online Gallery. The site server has not been configured to support an online gallery. For more assistance, contact your site administrator.
  • When you use the Content Editor Web Part in a Windows SharePoint Services Web site, you cannot retrieve content in the Content Link box.

CAUSE

This issue may occur if one of the following conditions is true:
  • The server is behind a proxy server or firewall. Additionally, the proxy server settings are not specified in the Web.config file for the virtual server.
  • The server is behind a proxy server or firewall. Additionally, you specified proxy server settings for the virtual server in the Web.config file. However, you upgraded the server from ASP.NET 1.1 to ASP.NET 2.0. In this scenario, additional proxy server settings must be specified to display the online Web Part gallery.

RESOLUTION

To resolve this issue, modify the Web.config file for each virtual server for which you want to enable an online Web Part gallery that is outside the firewall. In a server farm environment, you must modify the Web.config file for every virtual server in every front-end Web server in the server farm.

Use the procedure that is appropriate to the version of ASP.NET that is running on the server.

ASP.NET 1.1

To specify proxy server settings when the server is running ASP.NET 1.1, follow these steps:
  1. On the front-end Web server, start Notepad.
  2. Locate the folder that contains the virtual server for which you want to enable access to the online Web Part gallery. Then, open the Web.config file for that virtual server. The Web.config file is located in the following folder:

    \Inetpub\Wwwwroot

  3. Locate the /system.web entry near the end of the Web.config file.
  4. Add the following lines to the Web.config file immediately after the /system.web entry, where ProxyServer is the name of the proxy server, and port is the name of the port that you are using:
    <system.net>  
       <defaultProxy>  
       <proxy proxyaddress="http://<ProxyServer>:<port>" bypassonlocal = "true"/>
       </defaultProxy>
    </system.net>
  5. Save the Web.config file, and then quit Notepad.
  6. Repeat steps 1 through 5 for each virtual server for which you want to enable access to the online Web Part gallery.

ASP.NET 2.0

To configure proxy server settings when the server is running ASP.NET 2.0, use one of the following methods.

Method 1: Modify the Web.config file and the Wss_minimaltrust.config file

To specify proxy server settings in the Web.config file, follow these steps:
  1. Modify the Web.config file. To do this, follow these steps:
    1. On the front-end Web server, start Notepad.
    2. Locate the folder that contains the virtual server for which you want to enable access to the online Web Part gallery. Then, open the Web.config file for that virtual server. The Web.config file is located in the following folder:

      \Inetpub\Wwwwroot

    3. Locate the /system.web entry near the end of the Web.config file.
    4. Add the following lines to the Web.config file immediately after the /system.web entry, where ProxyServer is the name of the proxy server, and port is the name of the port that you are using:
      <system.net>  
         <defaultProxy>  
         <proxy proxyaddress="http://<ProxyServer>:<port>" bypassonlocal = "true"/>
         </defaultProxy>
      </system.net>
    5. Save the Web.config file, and then quit Notepad.
    6. Repeat steps 1a through 1e for each virtual server for which you want to enable access to the online Web Part gallery.
  2. Modify the Wss_minimaltrust.config file. To do this, follow these steps:
    1. On the front-end Web server, start Notepad.
    2. Locate the Drive:\Program Files\Common Files\Microsoft Shared\Web server extensions\60\Config folder, and then open the Wss_minimaltrust.config file.
    3. Locate the SecurityClasses entry in the Wss_minimaltrust.config file.
    4. Add the following lines to the Wss_minimaltrust.config file immediately after the SecurityClasses entry:
       <SecurityClass Name="ReflectionPermission" 
      Description="System.Security.Permissions.ReflectionPermission, mscorlib, Version=2.0.0.0, Culture=neutral, 
      PublicKeyToken=b77a5c561934e089"/>
      
      
    5. In the Wss_minimaltrust.config file, locate the PermissionSet entry, where Name="ASP.Net".
    6. Add the following lines to the Wss_minimaltrust.config file immediately after at the end of the section for the PermissionSet entry, where Name="ASP.Net":
      <IPermission class="ReflectionPermission"
                                          version="1"
                                          Flags="Members"
                                  />
      
      
    7. Save the Wss_minimaltrust.config file, and then quit Notepad.

Method 2: Use ASP.NET 2.0 Web Proxy Auto-Discovery

To use ASP.NET 2.0 Web Proxy Auto-Discovery, specify proxy server settings in Microsoft Internet Explorer for the application pool account that Windows SharePoint Services is running as. You do not have to modify the Web.config file or the Wss_minimaltrust.config file. To specify proxy server settings in Internet Explorer, follow these steps:
  1. Log on to the front-end Web server by using the application pool account.
  2. Start Internet Explorer.
  3. On the Tools menu, click Internet Options, and then click the Connections tab.
  4. Click LAN Settings. In the Local Area Network (LAN) Settings dialog box, click to select the Use a proxy server for your LAN (These settings will not apply to dial-up or VPN connections) check box.
  5. Specify the proxy server settings, and then click OK two times.
Note You can specify per-machine proxy server settings by using a policy setting. For more information about how to do this, visit the following Microsoft Web site:

MORE INFORMATION

For more information about the online Web Part gallery, see the "About Web Parts" topic and the "Managing Web Parts on Virtual Servers" topic in the "Administration" section of the Microsoft Windows SharePoint Services Administrator's Guide. To obtain the Microsoft Windows SharePoint Services Administrator's Guide, visit the following Microsoft Web site:

Modification Type:MinorLast Reviewed:1/25/2006
Keywords:kberrmsg kbConfig kbtshoot kbprb KB912060 kbAudDeveloper kbAudITPRO