HTTP 404 您正在寻找的资源(或其依赖项之一)
您好,我在 mvc2 asp 中创建了新应用程序,并且运行我的应用程序,生成以下错误如何解决此问题,我的 url 是 http://localhost:2620/asset/details/8
HTTP 404. 您正在查找的资源(或其依赖项之一)可能已被删除、名称已更改或暂时不可用。请检查以下网址并确保拼写正确。
hi i created new application in mvc2 asp and i run my application the following error are generate how to resolve this problem my url is http://localhost:2620/asset/details/8
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.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
您遇到的问题是没有 ID 为 8 的资产。
您需要做的是创建一个 id 为 8 的资产,或者更好的是,向用户显示一条有意义的消息。
之后,在资产视图目录中创建一个名为“NotFound”的视图,告诉用户一条有意义的消息。
请参阅 NerdDinner
为刚接触 MVC2 的人提供大量帮助的教程
The problem you have is that there is no asset with the ID of 8.
What you need to do is either create an asset with the id of 8, or better still, show a meaningful message to the user.
After that create a view called 'NotFound' within the asset view directory, that tells the user a meaningful message
See the NerdDinner
Tutorials for lots of great assistance for people new to MVC2