Microsoft Knowledge Base Email Alertz

Error message when you try to view a Web page to which you added a Content By Query Web part in SharePoint Server 2007: 404 File Not Found

Search KbAlertz

Advanced Search

Receive Microsoft Knowledge Base articles by E-Mail?

Every night we scan the Microsoft Knowledge Base. If technologies you're interested in are updated, we'll send you an e-mail. You only get one e-mail a day, and only when new articles are added.

Click here to create a
FREE account
Already have an account?
[Click here to Login]











Microsoft Knowledge Base Article

This article contents is Microsoft Copyrighted material.
©2005-©2007 Microsoft Corporation. All rights reserved. Terms of Use | Trademarks

Article ID: 928303 - Last Review: May 14, 2007 - Revision: 1.2

Error message when you try to view a Web page to which you added a Content By Query Web part in SharePoint Server 2007: "404 File Not Found"

SYMPTOMS

Consider the following scenario. In Microsoft Office SharePoint Server 2007, you add a Content By Query Web part to a site collection Web page. The Content By Query Web part contains a URL that points to a resource that uses the UseCopyUtil property. For example, the Content By Query Web part contains the following URL:
Server_name/sites/site_collection/_layouts/CopyUtil.aspx
In this URL, Server_name is the name of the SharePoint Server 2007 server.

In this scenario, you receive the following error message when you try to open the site collection Web page:
404 File Not Found

CAUSE

This issue occurs if the Content By Query Web part points to a non-root site collection in SharePoint Server 2007. In this case, the URL that is contained in the Web part resolves to the following URL:
http://Server_name/_layouts/CopyUtil.aspx
You expect the URL to resolve to the following URL:
http://Server_name/sites/site_collection/_layouts/CopyUtil.aspx

RESOLUTION

To resolve this issue, you must create a new root site collection. To do this, follow these steps:
  1. Click Start, point to Administrative Tools, and then click SharePoint 3.0 Central Administration.
  2. On the Central Administration page, click Application Management.
  3. On the Application Management page, click Create site collection under SharePoint Site Management.

APPLIES TO
  • Microsoft Office SharePoint Server 2007
Keywords: 
kbtshoot kbexpertiseinter kbprb KB928303
       

Community Feedback System

Very often, it takes hours to solve a problem. Very often, you've looked high and low, and have tried a lot of solutions. When you finally found it, chances are, it was because someone else helped you. Here's your chance to give back. Use our community feedback tool to let others know what worked for you and what didn't.

Please also understand that the community feedback system is not warranted to be correct, it's simply a system that we've built to let people try and help each other. If something in a feedback response doesn't make sense to you, or you're not comfortable making changes that the feedback talks about (like registry edits), please consult a professional.

Thank you for using kbAlertz.com Feedback System.

-- Scott Cate