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
I've downloaded 2.6 through TortiseHG, and all seems well. I can open the project in VS 2010 and a build comes back clean. I've set the nop.Web as my startup project.

However, when I start a debug session I receive an error page:

Exception Details: System.Security.VerificationException: Operation could destabilize the runtime.

Source Error:
Line 9:          public InstallValidator(IInstallationLocalizationService locService)
Line 10:         {
Line 11:             RuleFor(x => x.AdminEmail).NotEmpty().WithMessage(locService.GetResource("AdminEmailRequired"));
Line 12:             RuleFor(x => x.AdminEmail).EmailAddress();
Line 13:             RuleFor(x => x.AdminPassword).NotEmpty().WithMessage(locService.GetResource("AdminPasswordRequired"));

Source File: H:\Development\nopCommerce\nopcommerce\src\Presentation\Nop.Web\Validators\Install\InstallValidator.cs    Line: 11

What gives? Please note the above is ALL I've done - download from CodePlex and open in VS 2010. I haven't setup databases, etc etc - if I need to do anything like that, please let me know (or point me at documentation that will help me get started).

Please note I'm a VB.NET guy who is trying to learn a bit about other platforms, and about ecommerce.
11 years ago
As I know you're the first who is experiencing this issue. Perhaps, this page can help out

UPDATE: Please see this post (solution)
11 years ago
I did this:

Opened Tools - Options - IntelliTrace - Modules

and added "*FluentValidation*" to the list. This seems to have resolved the error.

I now see the installation screen when I run the app in Debug mode, as I expected.
11 years ago
Hi scottmcd9999,
                          Thnx man. Your solution worked. :)
11 years ago
I ran into this same issue.  It took about 2 hours of googling to find this post and correct the issue to get the installation page to come up.

Perhaps adding this suggestion to the readme or something is in order.
11 years ago
I had this exact issue after installing VS 2012 and .NET 4.5 on my Windows 7 machine, even though I was still executing nopCommerce through the VS 2010 debugger.  My VS 2010 is Premium edition, not Ultimate, so no Intellitrace.  Only after uninstalling VS 2012 / .NET 4.5 was I able to get nopCommerce working again.

These links seem to indicate that this is an issue with the FluentValidation library:

http://fluentvalidation.codeplex.com/workitem/7096

http://stackoverflow.com/questions/11990208/class-constructor-throws-verificationexception-after-updating-to-vs-2012-and-ne
11 years ago
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 :)
11 years ago
mortezasoft 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
11 years ago
suddenly my site is also behaving strangely.  And i have absolutely no idea how to fix it. My host has just opdated from 4.0  to 4.5

Which files do i need to put my focus at ??
11 years ago
netkravler wrote:
suddenly my site is also behaving strangely.  And i have absolutely no idea how to fix it. My host has just opdated from 4.0  to 4.5

Which files do i need to put my focus at ??

Replace ALL references of FluentValidation.dll and FluentValidation.Mvc.dll with the new version (3.4.0.0)
This topic was automatically closed 365 days after the last reply. New replies are no longer allowed.