为ASP创建DevExpress控件时出错.. NET MVC空项目手动



我正在使用Visual Web Developer 2010 Express。我需要使用DevExpress控件的ASP。. NET MVC 4项目。

所以,我下载了DevExpress通用版的东西有ASP。. NET MVC控件

因为我没有看到DevExpress ASP。. NET MVC空项目模板,我手动创建一个下面提供的说明在这里:

http://documentation.devexpress.com/AspNet/CustomDocument8163

然而,当我启动我的应用程序时,我看到这个黄色的死机屏幕,上面写着:

Configuration Error
Description: An error occurred during the processing of a configuration file required 
to service this request. Please review the specific error details below and modify 
your configuration file appropriately.
Parser Error Message: Could not load file or assembly 'DevExpress.Data.v12.2, 
Version=12.2.5.0, Culture=neutral, PublicKeyToken=b88d1754d700e49a' or one of its 
dependencies. The system cannot find the file specified.
Source Error:

Line 39:       <compilation debug="true" targetFramework="4.0">
Line 40:           <assemblies>
Line 41:               <add assembly="DevExpress.Data.v12.2, Version=12.2.5.0, Culture=neutral, PublicKeyToken=b88d1754d700e49a" />
Line 42:               <add assembly="DevExpress.Web.v12.2, Version=12.2.5.0, Culture=neutral, PublicKeyToken=b88d1754d700e49a" />
Line 43:               <add assembly="DevExpress.Web.ASPxHtmlEditor.v12.2, Version=12.2.5.0, Culture=neutral, PublicKeyToken=b88d1754d700e49a" />

Source File: C:UserscomputerDocumentsVisual Studio 2010ProjectsMvcApplication5MvcApplication5web.config    Line: 41
Assembly Load Trace: The following information can be helpful to determine why the assembly 'DevExpress.Data.v12.2, Version=12.2.5.0, Culture=neutral, PublicKeyToken=b88d1754d700e49a' could not be loaded.

=== Pre-bind state information ===
LOG: User = computer-VAIOcomputer
LOG: DisplayName = DevExpress.Data.v12.2, Version=12.2.5.0, Culture=neutral, PublicKeyToken=b88d1754d700e49a
 (Fully-specified)
LOG: Appbase = file:///C:/Users/computer/Documents/Visual Studio 2010/Projects/MvcApplication5/MvcApplication5/
LOG: Initial PrivatePath = C:UserscomputerDocumentsVisual Studio 2010ProjectsMvcApplication5MvcApplication5bin
Calling assembly : (Unknown).
===
LOG: This bind starts in default load context.
LOG: Using application configuration file: C:UserscomputerDocumentsVisual Studio 2010ProjectsMvcApplication5MvcApplication5web.config
LOG: Using host configuration file: 
LOG: Using machine configuration file from C:WindowsMicrosoft.NETFrameworkv4.0.30319configmachine.config.
LOG: Post-policy reference: DevExpress.Data.v12.2, Version=12.2.5.0, Culture=neutral, PublicKeyToken=b88d1754d700e49a
LOG: Attempting download of new URL file:///C:/Users/computer/AppData/Local/Temp/Temporary ASP.NET Files/root/8847955d/8ce8b26b/DevExpress.Data.v12.2.DLL.
LOG: Attempting download of new URL file:///C:/Users/computer/AppData/Local/Temp/Temporary ASP.NET Files/root/8847955d/8ce8b26b/DevExpress.Data.v12.2/DevExpress.Data.v12.2.DLL.
LOG: Attempting download of new URL file:///C:/Users/computer/Documents/Visual Studio 2010/Projects/MvcApplication5/MvcApplication5/bin/DevExpress.Data.v12.2.DLL.
LOG: Attempting download of new URL file:///C:/Users/computer/Documents/Visual Studio 2010/Projects/MvcApplication5/MvcApplication5/bin/DevExpress.Data.v12.2/DevExpress.Data.v12.2.DLL.
LOG: Attempting download of new URL file:///C:/Users/computer/AppData/Local/Temp/Temporary ASP.NET Files/root/8847955d/8ce8b26b/DevExpress.Data.v12.2.EXE.
LOG: Attempting download of new URL file:///C:/Users/computer/AppData/Local/Temp/Temporary ASP.NET Files/root/8847955d/8ce8b26b/DevExpress.Data.v12.2/DevExpress.Data.v12.2.EXE.
LOG: Attempting download of new URL file:///C:/Users/computer/Documents/Visual Studio 2010/Projects/MvcApplication5/MvcApplication5/bin/DevExpress.Data.v12.2.EXE.
LOG: Attempting download of new URL file:///C:/Users/computer/Documents/Visual Studio 2010/Projects/MvcApplication5/MvcApplication5/bin/DevExpress.Data.v12.2/DevExpress.Data.v12.2.EXE.

看起来我拥有的DLL版本和该页上提到的DLL版本是不同的。请帮助。

我通过他们的项目转换器运行我的项目,该转换器扫描您的参考资料和web。配置文件并升级条目以反映最新的DLL(如果您拥有的DLL比您在web中指向的DLL晚)。

,这是我的情况,因为我只是复制了该页面的引用。

提示您缺少数据集。你好像用的是旧版本。下载最新版本,因为在DevExpress项目向导中有一个空的项目模板。

同时,联系DevExpress支持团队,他们可以更快地帮助你。

请看下面这个:如何:手动注册DevExpress扩展以开始在MVC Web应用程序中使用它们

最新更新