错误站点地图
当我 SiteMapPath 和配置惠特 siteMap 时,这个错误是什么。当然,当我上传我的网站时,我显示此错误:“找不到该页面
您正在查找的页面可能已被删除、已更改名称或暂时被删除” 确保
请尝试以下操作:
浏览器地址栏中显示的网站地址拼写和格式正确。 如果您通过单击链接到达此页面,请联系网站管理员以提醒他们该链接的格式不正确。 单击“后退”按钮尝试另一个链接。 HTTP 错误 404 - 未找到文件或目录。 互联网信息服务 (IIS) ” 我该怎么做才能使 SiteMap 正常工作?
What is this error when I SiteMapPath and Configure whit siteMap.of course when I upload my website,I showing this error : "The page cannot be found
The page you are looking for might have been removed, had its name changed, or is temporarily unavailable.
Please try the following:
Make sure that the Web site address displayed in the address bar of your browser is spelled and formatted correctly.
If you reached this page by clicking a link, contact the Web site administrator to alert them that the link is incorrectly formatted.
Click the Back button to try another link.
HTTP Error 404 - File or directory not found.
Internet Information Services (IIS)
"
What Do I do that SiteMap work correctly ?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
这是一个关键问题,值得尝试:
该网站可以在您的开发计算机上运行吗?
如果确实有效,请检查站点地图中页面的 URL。 如果 SiteMap 中页面的 URL 引用物理目录,例如“C:\mySite\MyPage.aspx”,那么这是最可能的原因。 您需要确保 URL 通过“~/MyPage.aspx”等相对路径引用页面位置。
如果不起作用,请验证 URL 中没有输入错误。 一旦使用相对路径使其在本地开发环境中运行,那么它在远程计算机上运行的机会就会大大增加。
Here is a critical question and something to try:
Does the website work on your development machine?
If it does work then check the url for the pages in the SiteMap. If the URL for the pages in the SiteMap reference a physical directory such as "C:\mySite\MyPage.aspx" then that is the most likely cause. You want to ensure that the URLs refernce the page location through a relative path like "~/MyPage.aspx".
If it does not work, then verify that there are no typing errors in the URLS. Once you getting it working on a local development environment using relative paths then the chance of it working on a remote machine should go up considerably.