Microsoft Knowledge Base Email Alertz

(918776) - Describes an issue where you receive an error message when you preview a Web page. This issue occurs if you use ASP.NET Cassini Sample Web Server and you specify the name of the folder that contains the Web site in 8.3 short file name format.

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: 918776 - Last Review: October 15, 2007 - Revision: 1.8

Error message when you preview a Web page that you created in SharePoint Designer 2007: "The resource cannot be found"

SYMPTOMS

Consider the following scenario. You are running Microsoft Office SharePoint Designer 2007 and ASP.NET Cassini Sample Web Server on the local computer. You create a Web site in SharePoint Designer 2007. Additionally, you use ASP.NET Cassini Sample Web Server to host the Web site. When you use the Preview in Browser command to preview a page from the Web site in a Web browser, you receive an error message that resembles the following:
The resource cannot be found.

HTTP 404. The resource you are looking for (or one of its dependencies) could have been removed, had its name changed, or is temporarily unavailable. Please review the following URL and make sure that it is spelled correctly.

CAUSE

This issue occurs if the following conditions are true:
  • The name of the folder that contains the Web site is longer than 8 characters. For example, the name of the folder is MyTestWeb.
  • When you create the Web site, you specify the name of the folder in 8.3 short file name format. For example, you specify the name of the folder as MyTest~1.
In this scenario, SharePoint Designer 2007 incorrectly processes the tilde (~) character in the name of the folder when SharePoint Designer 2007 passes the parameter to ASP.NET Sample Web Server.

WORKAROUND

To work around this issue, use one of the following methods:
  • When you create the folder that contains the Web site, specify the name of the folder in 8.3 short file name format.
  • Do not specify the name of the folder in 8.3 short file name format when you create the Web site.

MORE INFORMATION

ASP.NET Cassini Sample Web Server is a simple, fully managed Web server that hosts ASP.NET. To obtain ASP.NET Cassini Sample Web Server, visit the following Microsoft Web site:
http://www.microsoft.com/belux/msdn/nl/community/columns/desmet/hostaspnet2.mspx#The Cassini web server (http://www.microsoft.com/belux/msdn/nl/community/columns/desmet/hostaspnet2.mspx#The Cassini web server)

APPLIES TO
  • Microsoft Office SharePoint Designer 2007
Keywords: 
kbexpertiseinter kbwebpublishing kberrmsg kbtshoot kbprb KB918776
       

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