Compilation Error in 3.60

This topic was automatically closed 365 days after the last reply. New replies are no longer allowed.
8 years ago
Hello Andrei,
Thank you for your work.

I am try to upgrade in 3.60 but i have a error.

Compilation Error

Description: An error occurred during the compilation of a resource required to service this request. Please review the following specific error details and modify your source code appropriately.
Compiler Error Message: CS0234: The type or namespace name 'Captcha' does not exist in the namespace 'Nop.Web.Framework.UI' (are you missing an assembly reference?)
Source Error:
Line 28:     using Nop.Web.Framework;
Line 29:     using Nop.Web.Framework.UI;
Line 30:     using Nop.Web.Framework.UI.Captcha;
Line 31:    
Line 32:    
Source File: c:\Windows\Microsoft.NET\Framework64\v4.0.30319\Temporary ASP.NET Files\root\b4688d06\d81be114\App_Web_index.cshtml.247dde06.sxyof50v.0.cs    Line: 30

Please any idea how to resolve?

Thank you in advance.
8 years ago
I had exactly the same error message when upgrading from 3.50 to 3.60 so I can tell you that most probably you didn't upgrade nopCommerce properly.

The process is as follows taken from (here http://docs.nopcommerce.com/display/nc/Upgrading+nopCommerce) - in brackets are my comments (as the upgrade instructions seemed ambiguous and vague to me at first, too):

1. Get the latest nopCommerce package. (Actually you have to download two packages - first - the non-source upgrade package and second - the sql upgrade package in a zip file).

2. Make a backup of everything in your site, including the database. This is extremely important so that you can roll back to a running site no matter what happens during migration.

3. You have to upgrade stepwise. For example, if your current version is 2.00 and the latest available version is 2.30, then you have to upgrade to 2.10, then to 2.20, and then to 2.30. So download the required upgrade scripts from our Downloads page.

4. Once an upgrade script is downloaded, execute it over your database (meaning the sql script from the second zip file - in Microsoft SQL Server Management Studio).

5. Remove all (meaning ALL) files from the previous version. As you deploy, make sure that the target App_Data\Settings.txt and App_Data\InstalledPlugins.txt files aren't overwritten, so that the production site continues to point to the production database.

6. Upload the new site files (meaning the non-source upgrade files from the first zip file )

7. Copy back Settings.txt and InstalledPlugins.txt files into App_Data directory (from your backup)

8. Ensure that everything is OK (clear webbrowser's cache, or load directly from the webserver - F5, restart apppool and website if necessary to see the changes).
8 years ago
I had the same issue.

please refer to this forum post as it solved my issue.

https://www.nopcommerce.com/boards/t/36119/error-after-installed-theme.aspx
8 years ago
Whose post do you want to edit?
Can you understand what you read?
8 years ago
Hi,

Replace line:
Line 30:     using Nop.Web.Framework.UI.Captcha;

For:
using Nop.Web.Framework.Security.Captcha;
8 years ago
As far as I know there is not code to change. its the just that the web.config file in the Theme references to the old code. Just copying and pasting the web.config from the new theme seems to have fixed my issue.
8 years ago
Thank you guys,

I found my problem!
Is not nop-commerce but my old theme from Nop-Template that i have not upgrade.
I contact them and everything is ok now.
7 years ago
nop4you wrote:
Hi,

Replace line:
Line 30:     using Nop.Web.Framework.UI.Captcha;

For:
using Nop.Web.Framework.Security.Captcha;




Show me the pth to update this code in my solution
6 years ago
Thanks I had the same problem with the version nopComerce 3.9, when I tried to use a theme of lower versions.
6 years ago
The issue occurs because the theme you are using is no longer compatible with your updated version.
The imports mentioned above are found in the themes web.config

Themes/{Theme}/Views/web.config


You may also find some issue with modified views that will need fixing manually.
You can use the DefaultClean theme to reference fixes.
This topic was automatically closed 365 days after the last reply. New replies are no longer allowed.