We are using nopCommerce 3.70, due to our payment gateway (PAyGate), not yet supporting the newer versions. However, after a clean instal, I can log into my store without a problem. And I can get into the Admin Panel, but whenever I try and change or update anything (like chaning my store name) I get kicket out of the Admin Panel, and cannot any changes I tried to make is lost.
... but I could not make it work. Then I though about it for a while, and came to the following conclusion:
1) I use Windows 7, SQL Server Express 2008, IIS 7, ASP.Net 4.0, ASP .Net Framework version 4.5.1 - on a localhost setup on my PC to basically develop the store. The idea is to then upload the changes (resore the db on the live site) as I go along.
2) My hosting company, Afrihost (www.afrihost.com)runs my live site (www.ort-online.co.za) on a Windows 2012 R2 Standard Server, SQL Server 2014, IIS 8, ASP.net 4.5 (MVC 5.0), .NET Framework version 4.6.1. This runs of a Shared Hosting Server (basically a Web Farm).
So I contacted Afrihost support and requested the generate me a machine key for my site, as I don't have direct access to IIS 8 on the live server. The reply I got was as follows, and I quote:
So I took what they sent to me, and inserted the detais into the web.config file of the root folder of the nopCommerce (v 3.70) site. The syntax I used is as follows:
----------------- I entreded the code below this line ------------------------------> <httpRuntime targetFramework="4.5.1" enableVersionHeader="false" /> ------------------------------------------------------------------------------------>
----------------- I entreded the following line for the machineKey -----------------> <machineKey decryption="AES" decryptionKey="D5BB33259FF67450B1793F78F5257D362BA44D9150BB2916,IsolateApps" validationKey="12194B577DC8EDEB39748B915A15FB16C8DB1826BFAD80B51ED931A6E266AE520DAC868F868311E255CD50A63A81C12A12459785B94A094EDD48F5775A69DB5D,IsolateApps" /> ------------------------------------------------------------------------------------>
After all that I get the following error when I try to log into the nopCommerce Admin Panel:
Description: An error occurred during the processing of a configuration file required to service this request. Please review the specific error details below and modify your configuration file appropriately.
Parser Error Message: Decryption key specified has invalid hex characters.
Source Error:
An application error occurred on the server. The current custom error settings for this application prevent the details of the application error from being viewed remotely (for security reasons). It could, however, be viewed by browsers running on the local server machine.
So what am I doing wrong. Excuse my ignorance, but I'm new to all this machineKey stuff.
Just another question: My site seems to load VERY long (15 - 30 seconds) for each page I try to access. And here I mean just ordinary browsing the site from a customer point of view. Does this have to do with the fact that our shared hosting package has limited server resources, or is it something I can improve on via the nopCommerce setup in the admin panel or code?
If you want to see what I mean about the slow performance, browse to www.ort-online.co.za
The test [,IsolateApps] should not be in either the DecryptionKey or the ValidationKey. Please note, this setup works for me on a "web farm" environment, and may not work in other configurations.
This topic was automatically closed 365 days after the last reply. New replies are no longer allowed.