新的 DXWebApplication 项目。找不到资源
New DXWebApplication project. Resource cannot be found
我使用 Dev Express 的空 Web 应用程序模板创建了一个 C# Web 应用程序项目。当我 运行 项目时,我收到一个错误,指出找不到资源。
重现步骤
在 VS2013 中
文件->新建->项目
从模板->VisualC# ->Web->DevExpress v15.1 TemplateGallery
名称 DXWebApplication1
位置 C:\Users\kirsten\Documents\
ASP.Net
ASP.NetMVC
视觉 C#
空 Web 应用程序
创建项目
构建并运行
错误信息是
Server Error in '/' Application.
The resource cannot be found.
Description: 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.
Requested URL: /
Version Information: Microsoft .NET Framework Version:4.0.30319; ASP.NET Version:4.0.30319.34249
我能够使用 visual studio 模板成功创建一个普通的 MVC 应用程序。我是运行宁Windows7
当您使用 DevExpress 模板库创建一个空的 MVC 项目时,不会创建任何控制器和视图。所以,return没什么。创建 MVC 项目后,使用 HomeController 名称和 Index 操作添加一个新控制器,然后在 Views/Home 文件夹中创建一个 Index.cshtml 视图。您还可以在 RouteConfig.cs 文件中自定义默认路由。
我使用 Dev Express 的空 Web 应用程序模板创建了一个 C# Web 应用程序项目。当我 运行 项目时,我收到一个错误,指出找不到资源。
重现步骤
在 VS2013 中 文件->新建->项目 从模板->VisualC# ->Web->DevExpress v15.1 TemplateGallery
名称 DXWebApplication1 位置 C:\Users\kirsten\Documents\
ASP.Net ASP.NetMVC 视觉 C# 空 Web 应用程序
创建项目
构建并运行
错误信息是
Server Error in '/' Application.
The resource cannot be found.
Description: 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.
Requested URL: /
Version Information: Microsoft .NET Framework Version:4.0.30319; ASP.NET Version:4.0.30319.34249
我能够使用 visual studio 模板成功创建一个普通的 MVC 应用程序。我是运行宁Windows7
当您使用 DevExpress 模板库创建一个空的 MVC 项目时,不会创建任何控制器和视图。所以,return没什么。创建 MVC 项目后,使用 HomeController 名称和 Index 操作添加一个新控制器,然后在 Views/Home 文件夹中创建一个 Index.cshtml 视图。您还可以在 RouteConfig.cs 文件中自定义默认路由。