Microsoft KB Archive/912060

= 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 =

Article ID: 912060

Article Last Modified on 1/25/2006

-

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:  On the front-end Web server, start Notepad. 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

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

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: <ol> Modify the Web.config file. To do this, follow these steps: <ol style="list-style-type: lower-alpha;"> On the front-end Web server, start Notepad.</li> 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

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

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:

http://msdn.microsoft.com/msdnmag/issues/05/08/AutomaticProxyDetection/

<div class="moreinformation_section">

MORE INFORMATION
For more information about the online Web Part gallery, see the &quot;About Web Parts&quot; topic and the &quot;Managing Web Parts on Virtual Servers&quot; topic in the &quot;Administration&quot; 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:

http://www.microsoft.com/downloads/details.aspx?familyid=A637EFF6-8224-4B19-A6A4-3E33FA13D230&displaylang=en

Additional query words: sps wss

Keywords: kberrmsg kbtshoot kbprb kbconfig KB912060

-

[mailto:TECHNET@MICROSOFT.COM Send feedback to Microsoft]

© Microsoft Corporation. All rights reserved.