找回密码
 立即注册

QQ登录

只需一步,快速开始

c1ultimate

论坛元老

19

主题

68

帖子

1万

积分

论坛元老

积分
12981

活字格认证

c1ultimate
论坛元老   /  发表于:2013-5-7 11:20  /   查看:9564  /  回复:11
本人之前安裝的C1StudioUltimate_2012v3在電腦上運作沒有問題(Windows 7 64bits + Visual Studio 2010 Pro + Visual Studio 2012 Pro)

今天下載新的C1StudioAspWijmo_2013v1, 安裝在同一電腦後便不能使用.

例如在Visual Studio 2010 Pro打開新的"ASP.NET MVC 3 Wijmo Application"範本, 會出現以下error:

Error        1        The type 'System.Web.Mvc.ModelClientValidationRule' exists in both 'c:\Program Files (x86)\Microsoft ASP.NET\ASP.NET Web Pages\v2.0\Assemblies\System.Web.WebPages.dll' and 'c:\Program Files (x86)\Microsoft ASP.NET\ASP.NET MVC 3\Assemblies\System.Web.Mvc.dll'        c:\users\safilo\documents\visual studio 2010\Projects\MvcWijmoApplication2\MvcWijmoApplication2\Models\AccountModels.cs        242        28        MvcWijmoApplication2

範例MVCExplorer.sln也是不能跑.

在Visual Studio 2010 Pro C#找不到"ASP.NET MVC 4 Wijmo Application"範本但有"ASP.NET MVC 4 Web Application".

請問如何修復此安裝?

11 个回复

倒序浏览
ZenosZeng讲师达人认证 悬赏达人认证
超级版主   /  发表于:2013-5-7 12:14:00
沙发
c1ultimate 你好

你的问题我们已经收到,正在处理中,稍后给你回复调查结果。
回复 使用道具 举报
ZenosZeng讲师达人认证 悬赏达人认证
超级版主   /  发表于:2013-5-7 13:28:00
板凳
c1ultimate 你好

关于 'System.Web.Mvc.ModelClientValidationRule'  冲突,主要是因为 ASP.NET MVC 4.0 与 ASP.NET MVC 3.0 并存造成的,我在葡萄城控件产品博客中添加了文章,请参考:System.Web.Mvc.ModelClientValidationRule 冲突解决方法
回复 使用道具 举报
c1ultimate
论坛元老   /  发表于:2013-5-7 17:14:00
地板
用了文章的方法修改, 但未能解決問題.

(1) C1StudioAspWijmo_2013v1內的範例MVCExplorer.sln的MVCExplorer.csproj找不到:
     <Reference Include="System.Web.WebPages"/>
     <Reference Include="System.Web.Helpers" />

      同時, 範例出現很多errors:
      Error        1        The type or namespace name 'Infrastructure' does not exist in the namespace 'System.Data.Entity' (are you missing an assembly reference?)        C:\Users\Safilo\Documents\ComponentOne Samples\Studio for ASP.NET Wijmo\ASP.NET MVC Tools\CS\MVCExplorer\Models\Northwind.Context.cs        14        30        MVCExplorer
Error        2        The type or namespace name 'DbContext' could not be found (are you missing a using directive or an assembly reference?)        C:\Users\Safilo\Documents\ComponentOne Samples\Studio for ASP.NET Wijmo\ASP.NET MVC Tools\CS\MVCExplorer\Models\Northwind.Context.cs        16        46        MVCExplorer
Error        3        'object' does not contain a constructor that takes 1 arguments        C:\Users\Safilo\Documents\ComponentOne Samples\Studio for ASP.NET Wijmo\ASP.NET MVC Tools\CS\MVCExplorer\Models\Northwind.Context.cs        19        15        MVCExplorer
Error        13        The type or namespace name 'DbSet' could not be found (are you missing a using directive or an assembly reference?)        C:\Users\Safilo\Documents\ComponentOne Samples\Studio for ASP.NET Wijmo\ASP.NET MVC Tools\CS\MVCExplorer\Models\Northwind.Context.cs        35        16        MVCExplorer


(2) 在Visual Studio 2010 Pro C#找不到"ASP.NET MVC 4 Wijmo Application"範本

(3) 安裝C1StudioUltimate_2013v1後, 不能再執行C1StudioUltimate_2012v3去反安裝舊版本(沒有提供選項, 只提示已安裝了較新的版本)
回复 使用道具 举报
ZenosZeng讲师达人认证 悬赏达人认证
超级版主   /  发表于:2013-5-7 19:12:00
5#
c1ultimate 你好

从提示信息来看,第一个问题是因为缺少一个DLL的引用,我这边先调查一下,明天给你以上问题的详细回复。
回复 使用道具 举报
c1ultimate
论坛元老   /  发表于:2013-5-8 10:52:00
6#
因急著要用wijmo, 本人關掉所有軟件, 反安裝C1StudioUltimate_2013v1, 再反安裝C1StudioUltimate_2012v3, 再安裝C1StudioUltimate_2013v1. 但結果也是一樣.

希望可盡快有方法可以修復.  謝謝.
回复 使用道具 举报
c1ultimate
论坛元老   /  发表于:2013-5-8 11:38:00
7#
本人再次反安裝C1StudioUltimate_2013v1, 再安裝C1StudioUltimate_2012v3. 但也是不能正常使用舊版本.
結果也是一樣:

(4) 在Visual Studio 2010 Pro打開新的&quot;ASP.NET MVC 3 Wijmo Application&quot;範本, 會出現以下error:
Error        1        The type 'System.Web.Mvc.ModelClientValidationRule' exists in both 'C:\Program Files (x86)\Microsoft ASP.NET\ASP.NET Web Pages\v2.0\Assemblies\System.Web.WebPages.dll' and 'C:\Program Files (x86)\Microsoft ASP.NET\ASP.NET MVC 3\Assemblies\System.Web.Mvc.dll'        c:\users\safilo\documents\visual studio 2010\Projects\MvcWijmoApplication4\MvcWijmoApplication4\Models\AccountModels.cs        242        28        MvcWijmoApplication4
Error        2        The type 'System.Web.Mvc.ModelClientValidationStringLengthRule' exists in both 'C:\Program Files (x86)\Microsoft ASP.NET\ASP.NET Web Pages\v2.0\Assemblies\System.Web.WebPages.dll' and 'C:\Program Files (x86)\Microsoft ASP.NET\ASP.NET MVC 3\Assemblies\System.Web.Mvc.dll'        c:\users\safilo\documents\visual studio 2010\Projects\MvcWijmoApplication4\MvcWijmoApplication4\Models\AccountModels.cs        245        21        MvcWijmoApplication4

(5) 所有C1控件在toolbox上消失了, 只留下C1EventsCalendarExtendar
回复 使用道具 举报
ZenosZeng讲师达人认证 悬赏达人认证
超级版主   /  发表于:2013-5-8 11:56:00
8#
c1ultimate 你好

从我这边调查来看, 你的开发环境需要进行更新, 我这边正在给你写详细的操作步骤, 稍后会跟你回帖, 请稍等.
回复 使用道具 举报
ZenosZeng讲师达人认证 悬赏达人认证
超级版主   /  发表于:2013-5-8 13:26:00
9#
c1ultimate 你好

根据你提供的信息,我将调查结果和解决方法归结到了这篇文章中,解决方案中会涉及安装 ASP.NET MVC 4 和 EntityFramework 两个产品,你可以对照检查你现在的开发环境是否具备这些条件。

在 Visual Studio 2010 SP1 中开发 ASP.ENT MVC Wijmo 应用程序

如有问题,你可以直接在该帖后面跟帖。
回复 使用道具 举报
c1ultimate
论坛元老   /  发表于:2013-5-8 16:15:00
10#
謝謝你的解答, 按文章中的建議執行 PM&gt; Install-Package EntityFramework後, 之前的errors都消失了.

但執行範例MVCExplorer.sln (C1StudioAspWijmo_2013v1)時出現了以下error (Visual Studio 2010或2012都出現相同error):

Unhandled exception at line 2, column 13143 in https://ajax.googleapis.com/ajax/libs/jquery/1.8.2/jquery.min.js
0x800a139e - JavaScript runtime error: cannot call methods on wijdropdown prior to initialization; attempted to call method 'destroy'
回复 使用道具 举报
12下一页
您需要登录后才可以回帖 登录 | 立即注册
返回顶部