Running 2.6 in VS 2010

This topic was automatically closed 365 days after the last reply. New replies are no longer allowed.
11 years ago
Do i only need to replace files or references in files.

Because i most admit im out on a limb here :-)
11 years ago
I've done it the following way:

1. Open the solution in Visual Studio
2. Find projects where FluentValidation is used. By default, they are Nop.Admin, Nop.Web, Nop.Web.Framework, some plugins (Nop.Plugin.Payments.Manual, Nop.Plugin.Payments.AuthorizeNet, Nop.Plugin.Payments.PayPalDirect), and Nop.Web.MVC.Tests.
3. Expand "References" node in these projects
4. Remove FluentValidation.dll and FluentValidation.Mvc.dll (if exists) references
5. Add new ones (version 3.4.0.0). Can be downloaded here. Note: ensure you're referring FluentValidation.Mvc.dll from \MVC\MVC3 directory of FluentValidation package
6. Deploy the new solution

P.S. Or you can use Nuget manager to replace all instances of FluentValidation with the new version (do it for all the projects in the solution), This is way is much simpler
11 years ago
a.m. wrote:
Fortunately they have just solved the problem ("Work-around for reflection bug in .NET 4.5 that caused VerificationExceptions")

http://fluentvalidation.codeplex.com/releases/view/92912

Best Regards to Theme :)
Thanks a lot for notification. I've just also updated FluentValidation to the latest version. Please see changeset 186fe31bce0a. Could also please test the latest version and let me know whether nopCommerce runs fine in VS2012?
P.S. I still don't have it installed


Just tested. Everything works perfectly! Thank you :)
11 years ago
Is it possble to get the updated files somewhere. Where they are placed in the correct folders in the correct order and.

If i fetch this i get some files not showing where to put them.

This shows a list of files to be deleted and files to be added. Are these files to be made from scrarch with the content of the.

The file FluentValidation.MVC3.3.4.0.0.nupkg is shown to be added in the folder FluentValidation.MVC3.3.4.0.0 where do i find this file ?
11 years ago
I have now changed what is written in the pages shown in this tread.

i have build the project.

Now i get theese errors

Error  1  Assembly 'FluentValidation.Mvc, Version=3.4.0.0, Culture=neutral, PublicKeyToken=null' uses 'System.Web.Mvc, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35' which has a higher version than referenced assembly 'System.Web.Mvc, Version=3.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35'  c:\inetpub\packages\FluentValidation.MVC3.3.4.0.0\Lib\Net40\FluentValidation.Mvc.dll  Nop.Web

Warning  3  Found conflicts between different versions of the same dependent assembly.  Nop.Web

Error  2  The type 'FluentValidation.AbstractValidator`1<T0>' is defined in an assembly that is not referenced. You must add a reference to assembly 'FluentValidation, Version=3.3.1.0, Culture=neutral, PublicKeyToken=a82054b837897c66'.  C:\inetpub\Tests\Nop.Web.MVC.Tests\Public\Validators\Customer\ChangePasswordValidatorTests.cs  12  41  Nop.Web.MVC.Tests


I have installed the new asp.net and mvc on my local maschine. what have i done wrong and how can i change it.
11 years ago
I presume you referenced a wrong version of FluentValidation.Mvc.dll. The package you downloaded here contains two version of FluentValidation.Mvc.dll. Use the one located in \MVC\MVC3 directory (not in \MVC\MVC4)
11 years ago
now i have another error.

i cannot get the links that is build in the catergory to work proberly. the links are build but the page wont show when clicked. ;-/
11 years ago
Guys

You can also update the packages via NuGet...worked for me!

Cheers

@paulbrown79
11 years ago
i have build my site with the files from this changeset. And i can see many of the classes has new names.

The navigation of my catergori dont work. the links are build but the catergorypageas are not shown, insted the page throw me this error


[SqlException (0x80131904): Procedure or function ProductLoadAllPaged has too many arguments specified.]
   System.Data.SqlClient.SqlConnection.OnError(SqlException exception, Boolean breakConnection, Action`1 wrapCloseInAction) +1753346
   System.Data.SqlClient.SqlInternalConnection.OnError(SqlException exception, Boolean breakConnection, Action`1 wrapCloseInAction) +5295154
   System.Data.SqlClient.TdsParser.ThrowExceptionAndWarning(TdsParserStateObject stateObj, Boolean callerHasConnectionLock, Boolean asyncClose) +242
   System.Data.SqlClient.TdsParser.TryRun(RunBehavior runBehavior, SqlCommand cmdHandler, SqlDataReader dataStream, BulkCopySimpleResultSet bulkCopyHandler, TdsParserStateObject stateObj, Boolean& dataReady) +1682
   System.Data.SqlClient.SqlDataReader.TryConsumeMetaData() +59
   System.Data.SqlClient.SqlDataReader.get_MetaData() +90
   System.Data.SqlClient.SqlCommand.FinishExecuteReader(SqlDataReader ds, RunBehavior runBehavior, String resetOptionsString) +365
   System.Data.SqlClient.SqlCommand.RunExecuteReaderTds(CommandBehavior cmdBehavior, RunBehavior runBehavior, Boolean returnStream, Boolean async, Int32 timeout, Task& task, Boolean asyncWrite) +1325
   System.Data.SqlClient.SqlCommand.RunExecuteReader(CommandBehavior cmdBehavior, RunBehavior runBehavior, Boolean returnStream, String method, TaskCompletionSource`1 completion, Int32 timeout, Task& task, Boolean asyncWrite) +175
   System.Data.SqlClient.SqlCommand.RunExecuteReader(CommandBehavior cmdBehavior, RunBehavior runBehavior, Boolean returnStream, String method) +53
   System.Data.SqlClient.SqlCommand.ExecuteReader(CommandBehavior behavior, String method) +134
   System.Data.SqlClient.SqlCommand.ExecuteDbDataReader(CommandBehavior behavior) +41
   System.Data.Common.DbCommand.ExecuteReader() +12
   Nop.Data.NopObjectContext.ExecuteStoredProcedureList(String commandText, Object[] parameters) +556
   Nop.Services.Catalog.ProductService.SearchProducts(IList`1 categoryIds, Int32 manufacturerId, Nullable`1 featuredProducts, Nullable`1 priceMin, Nullable`1 priceMax, Int32 productTagId, String keywords, Boolean searchDescriptions, Boolean searchProductTags, Int32 languageId, IList`1 filteredSpecs, ProductSortingEnum orderBy, Int32 pageIndex, Int32 pageSize, Boolean loadFilterableSpecificationAttributeOptionIds, IList`1& filterableSpecificationAttributeOptionIds, Boolean showHidden) +3447
   Nop.Web.Controllers.CatalogController.Category(Int32 categoryId, CatalogPagingFilteringModel command) +4539
   lambda_method(Closure , ControllerBase , Object[] ) +114
   System.Web.Mvc.ActionMethodDispatcher.Execute(ControllerBase controller, Object[] parameters) +14
   System.Web.Mvc.ReflectedActionDescriptor.Execute(ControllerContext controllerContext, IDictionary`2 parameters) +182
   System.Web.Mvc.ControllerActionInvoker.InvokeActionMethod(ControllerContext controllerContext, ActionDescriptor actionDescriptor, IDictionary`2 parameters) +27
   System.Web.Mvc.<>c__DisplayClass15.<InvokeActionMethodWithFilters>b__12() +56
   System.Web.Mvc.ControllerActionInvoker.InvokeActionMethodFilter(IActionFilter filter, ActionExecutingContext preContext, Func`1 continuation) +256
   System.Web.Mvc.<>c__DisplayClass17.<InvokeActionMethodWithFilters>b__14() +22
   System.Web.Mvc.ControllerActionInvoker.InvokeActionMethodFilter(IActionFilter filter, ActionExecutingContext preContext, Func`1 continuation) +256
   System.Web.Mvc.<>c__DisplayClass17.<InvokeActionMethodWithFilters>b__14() +22
   System.Web.Mvc.ControllerActionInvoker.InvokeActionMethodFilter(IActionFilter filter, ActionExecutingContext preContext, Func`1 continuation) +256
   System.Web.Mvc.<>c__DisplayClass17.<InvokeActionMethodWithFilters>b__14() +22
   System.Web.Mvc.ControllerActionInvoker.InvokeActionMethodFilter(IActionFilter filter, ActionExecutingContext preContext, Func`1 continuation) +256
   System.Web.Mvc.<>c__DisplayClass17.<InvokeActionMethodWithFilters>b__14() +22
   System.Web.Mvc.ControllerActionInvoker.InvokeActionMethodFilter(IActionFilter filter, ActionExecutingContext preContext, Func`1 continuation) +256
   System.Web.Mvc.<>c__DisplayClass17.<InvokeActionMethodWithFilters>b__14() +22
   System.Web.Mvc.ControllerActionInvoker.InvokeActionMethodWithFilters(ControllerContext controllerContext, IList`1 filters, ActionDescriptor actionDescriptor, IDictionary`2 parameters) +190
   System.Web.Mvc.ControllerActionInvoker.InvokeAction(ControllerContext controllerContext, String actionName) +311
   System.Web.Mvc.Controller.ExecuteCore() +105
   System.Web.Mvc.ControllerBase.Execute(RequestContext requestContext) +87
   System.Web.Mvc.ControllerBase.System.Web.Mvc.IController.Execute(RequestContext requestContext) +10
   System.Web.Mvc.<>c__DisplayClassb.<BeginProcessRequest>b__5() +34
   System.Web.Mvc.Async.<>c__DisplayClass1.<MakeVoidDelegate>b__0() +19
   System.Web.Mvc.Async.<>c__DisplayClass8`1.<BeginSynchronous>b__7(IAsyncResult _) +10
   System.Web.Mvc.Async.WrappedAsyncResult`1.End() +55
   System.Web.Mvc.<>c__DisplayClasse.<EndProcessRequest>b__d() +31
   System.Web.Mvc.SecurityUtil.<GetCallInAppTrustThunk>b__0(Action f) +7
   System.Web.Mvc.SecurityUtil.ProcessInApplicationTrust(Action action) +23
   System.Web.Mvc.MvcHandler.EndProcessRequest(IAsyncResult asyncResult) +59
   System.Web.Mvc.MvcHandler.System.Web.IHttpAsyncHandler.EndProcessRequest(IAsyncResult result) +9
   System.Web.CallHandlerExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute() +9629708
   System.Web.HttpApplication.ExecuteStep(IExecutionStep step, Boolean& completedSynchronously) +155




And i have absolutely no idea what it means.
11 years ago
netkravler wrote:
i have build my site with the files from this changeset
...
...
Procedure or function ProductLoadAllPaged has too many arguments specified...

How exactly have you built the site with the files from this changeset? According to the error stack I you did not properly upgrade to the latest version. You have an old version of [ProductLoadAllPaged] stored procedure. The latest version of nopCommerce on codeplex (which is not released yet) has been changed since 2.60 release. Execute upgrade scripts from the \upgradescripts\2.60-2.70(upcoming)\upgrade.sql file (if you're running version 2.60).

P.S. If you do not want to upgrade to the latest version (keep in mind t's not released yet), then you would recommend you simply to replace FluentVlidation.dll files via NuGet as paulbrown79 suggested above. It's very simple. I personally always do it this way. It will take about 2-3 minutes.
This topic was automatically closed 365 days after the last reply. New replies are no longer allowed.