ASP.NET MVC 2.0 $ P $光伏1和SPARK? [英] ASP.NET MVC 2.0 Prev 1 and SPARK?

查看:111
本文介绍了ASP.NET MVC 2.0 $ P $光伏1和SPARK?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想升级ASP.NET MVC 1.0应用2.0 preVIEW 1.我使用的火花作为视图引擎。

I am trying to upgrade the ASP.NET MVC 1.0 application to 2.0 preview 1. I am using the spark as view engine.

问题:
星火使用System.Web.MVC 1.0.0.0所以我得到了源$ C ​​$ c和使用2.0.0.0重新编译和使用新的部件。现在,我得到了不同的错误如下:

issue: Spark used the System.Web.MVC 1.0.0.0 so I got the source code and recompiled using the 2.0.0.0 and used the new assembly. Now I am getting the different error as follows:

Could not load file or assembly 'Microsoft.Web.Mvc' or one of its dependencies. The system cannot find the file specified.

说明:在当前Web请求的执行过程中发生未处理的异常。请查看有关错误的详细信息的堆栈跟踪以及它起源于code。

Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code.

异常详细信息:System.IO.FileNotFoundException:未能加载文件或程序集Microsoft.Web.Mvc或它的一个依赖。该系统找不到指定的文件。

Exception Details: System.IO.FileNotFoundException: Could not load file or assembly 'Microsoft.Web.Mvc' or one of its dependencies. The system cannot find the file specified.

源错误:

163线:返回新ViewEngineResult(searchedLocations);
164线:
165线:入门= Engine.CreateEntry(描述);
166线:SetCacheValue(descriptorParams,输入);
167线:返回BuildResult(输入);

Line 163: return new ViewEngineResult(searchedLocations); Line 164: Line 165: entry = Engine.CreateEntry(descriptor); Line 166: SetCacheValue(descriptorParams, entry); Line 167: return BuildResult(entry);

源文件:C:\\ DATA \\项目\\样本\\ 1.0火花SRC \\ SRC \\ Spark.Web.Mvc \\ SparkViewFactory.cs行:165

Source File: C:\Data\Projects\Samples\spark 1.0 Src\src\Spark.Web.Mvc\SparkViewFactory.cs Line: 165

程序集加载跟踪:下列信息有助于确定程序集Microsoft.Web.Mvc无法加载

Assembly Load Trace: The following information can be helpful to determine why the assembly 'Microsoft.Web.Mvc' could not be loaded.

警告:程序集绑定日志记录被关闭。
要启用程序集绑定失败日志记录,注册表值[HKLM \\软件\\微软\\融合!EnableLog](DWORD)设置为1。
注意:有一些与程序集绑定失败日志记录关联的性能损失。
要关闭此功能,请移除注册表值[HKLM \\软件\\微软\\融合!EnableLog。

WRN: Assembly binding logging is turned OFF. To enable assembly bind failure logging, set the registry value [HKLM\Software\Microsoft\Fusion!EnableLog] (DWORD) to 1. Note: There is some performance penalty associated with assembly bind failure logging. To turn this feature off, remove the registry value [HKLM\Software\Microsoft\Fusion!EnableLog].

推荐答案

我的经验:


  1. 获取从这个链接火花源:<一href=\"http://teamcity.$c$cbetter.com/viewLog.html?buildId=lastSuccessful&tab=artifacts&buildTypeId=bt47\"相对=nofollow>星火开发版本

  2. 替换文件的斌\\ aspnetmvc \\ System.Web.Mvc.dll程序与2.0版本(从的%ProgramFiles%\\微软ASP.NET \\ ASP.NET MVC 2 \\组件

  3. 执行 build.cmd 脚本

  4. 更新 Spark.dll &安培; Spark.Web.Mvc.dll 可在build文件夹

  1. Get Spark source from this link: Spark development builds
  2. Replace the file bin\aspnetmvc\System.Web.Mvc.dll with the 2.0 version (from %ProgramFiles%\Microsoft ASP.NET\ASP.NET MVC 2\Assemblies)
  3. Execute the build.cmd script
  4. The updated Spark.dll & Spark.Web.Mvc.dll are available in the build folder

注意:
在写作的时候,可用火花塞开发版本是1.0.39961.0。
而寻找一个JSUnit的文件(我相信)构建脚本失败,但它打破之前的DLL正确生成。只需按Ctrl + C时,会显示错误,否则它会试操作取消执行。

Notes: on the time of writing, the available spark development version is 1.0.39961.0. The build script fails while looking for a jsunit file (I believe) but the DLLs are generated properly before it breaks. Just cancel its execution by hitting Ctrl+C when the error is displayed otherwise it'll retry the operation.

希望它帮助。

这篇关于ASP.NET MVC 2.0 $ P $光伏1和SPARK?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆