0

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

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

由于我没有看到 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:\Users\computer\Documents\Visual Studio 2010\Projects\MvcApplication5\MvcApplication5\web.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-VAIO\computer
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:\Users\computer\Documents\Visual Studio 2010\Projects\MvcApplication5\MvcApplication5\bin
Calling assembly : (Unknown).
===
LOG: This bind starts in default load context.
LOG: Using application configuration file: C:\Users\computer\Documents\Visual Studio 2010\Projects\MvcApplication5\MvcApplication5\web.config
LOG: Using host configuration file: 
LOG: Using machine configuration file from C:\Windows\Microsoft.NET\Framework\v4.0.30319\config\machine.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 版本与该页面上提到的版本不同。请帮忙。

4

2 回答 2

0

我通过他们的项目转换器运行我的项目,该转换器扫描您的引用和 web.config 文件并升级条目以反映最新的 DLL(如果您拥有的那些比您在 web.config 文件中指向的那些晚),其中对我来说就是这种情况,因为我只是从该页面复制了参考资料。

于 2013-06-03T22:26:59.273 回答
-1

它说您缺少数据集。您似乎使用的是旧版本。下载最新版本,因为 DevExpress 项目向导中有一个空的项目模板。

此外,请联系 DevExpress 支持团队,他们可以更快地为您提供帮助。

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

于 2013-06-11T21:26:15.343 回答