找不到页面...大多数时候
我们有一个旧版本的 DNN 作为我们的生产网站运行(版本 04.09.00)。我的经理担心升级到新版本,因为在我加入公司之前就对代码进行了定制。无论如何,我们需要在开发服务器(staging.website.com)上生成同一侧的另一个副本,我似乎遇到了问题。
据我所知,IIS 设置正确。我制作了生产数据库和生产文件系统的副本,并将其移动到开发服务器上。我更改了数据库中的门户别名以匹配暂存 URL,并以类似方式更改了主机设置。我编辑了连接字符串以反映新的服务器和数据库名称。我什至在文件夹中搜索了对 www.website.com 的任何引用,并将其替换为 staging.website.com。
然后我就去了演出现场。看起来棒极了!它看起来就像生产一样......直到我点击了一个链接。看起来主页是唯一可以工作的页面,我尝试过的所有其他页面(并且我尝试过很多)都会出现相同的“找不到页面”错误。我知道它正在访问数据库,因为生产中的所有动态数据和配置都已显示。有什么想法为什么会发生这种情况吗?
We have an old version of DNN running as our production website (version 04.09.00). My manager is fearful of upgrading to a newer version because of the customization done to the code before I started with the company. In any event, we need to spawn another copy of the same side on a dev server (staging.website.com) and I seem to be running into issues.
As far as I can tell, IIS is set up correctly. I made a copy of the production database and production file system and moved it over the the dev server. I changed the portal alias in the DB to match the staging URL and changed the host setting similarily. I edited the connection string to reflect the new server and db name. I even searched the file folders for any reference to www.website.com and replaced them with staging.website.com.
Then I went to the staging site. It looked great! It looked just like production...until I clicked on a link. It looks like the home page is the only one that will work, every other page I've tried (and I've tried a bunch) come up with the same "The page cannot be found" error. I know it's hitting the database because all the dynamic data and configurations from production is showing up. Any ideas why this is happening?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(3)
在旧版本的 DNN 上,您需要手动将 PortalAlias 添加到 PortalAlias 表中,以确保站点正常工作。因此,我首先查看该表中 HttpAlias 列的值,并根据需要进行更新。
从那里开始,如果您使用 iFinity UrlMaster 之类的东西并删除页面扩展名(即您的 url; 没有 .aspx 扩展名),请确保您使用的是 IIS 6,并且您有通配符映射设置,或者如果您位于以集成管道模式运行的 IIS 7 上。
On the older versions of DNN you need to manually add the PortalAlias to the PortalAlias table to ensure that the site works properly. So I would start by looking at the values in that table for the HttpAlias column and update as needed.
From there, if you are using something like iFinity UrlMaster and are removing page extensions (IE your url;s don't have a .aspx extension) ensure that if you are on IIS 6 that you have a wildcard mapping setup, or if you are on IIS 7 that you are running in Integrated Pipeline mode.
找到了一个有效的解决方案(出于某种原因)。我在 IIS 中删除了该网站并重新创建了它。这似乎已经成功了。不确定第一个网站保留了什么,但只需清除它并重新开始就可以了。
感谢您的帮助。
Found a solution that worked (for some reason). I deleted the website in IIS and recreated it. That seems to have done the trick. Not sure what the first website was holding onto but clearing that out and starting over again was all it took.
Thanks for all your help.
当您点击这些链接时,URL 是否不同?
您是否使用自定义 URL 提供程序(例如 IFinity 的FriendlyUrlProvider)?
我还会检查您的皮肤中使用的菜单,如果需要自定义配置,则菜单可能会导致问题。
When you click on those links are the URLs different?
Are you using a custom URL Provider like IFinity's FriendlyUrlProvider?
I would also check to see what Menu is being used in your skin, it is possible that the menu is causing a problem if it requires a custom configuration.