publicacc wrote:I use nopCommerce 2.6 and I meet the same problem. But I didn't see machine key in web.config. Can you help me solve this issue?
Default web.config does not include any "Machine Key." You need to add your own "Machine Key."
You can get it easily by the following url.
http://www.developerfusion.com/tools/generatemachinekey/ If you get your own (globally unique) machine key, you need to copy and insert it into your web.config.
The location which you should insert it, is between "<system.web> and </system.web>.
The following is a sample of web.config.
-------------------------------------------------------
<system.web>
<machineKey validationKey="E220F192C8BD681EC9B5EA6AAE9F80F21
A794C8E060B6594F2E2C178E8CBB86FC90343179701A
DFAF1A3F2372640B4CE19B0000000000000000000000
23A1D4D" decryptionKey="B413E30A2ED3F2A9960AE6E4A642CEF8
B8708545B90000000000000000000000"
validation="SHA1" decryption="AES" />
<!-- TODO Update your <browserCaps> section in order to prevent adding <!-- Find more info in browserCaps.config file -->
<browserCaps configSource="browserCaps.config"/>
<customErrors defaultRedirect="errorpage.htm" mode="RemoteOnly">
<error statusCode="404" redirect="filenotfound.htm" />
</customErrors>
<trace enabled="true" pageOutput="true" />
<compilation debug="true" targetFramework="4.0">
<assemblies>
<add assembly="System.Web.Abstractions, Version=4.0.0.0,
Culture=neutral, PublicKeyToken=31BF3856AD364E35" />
<add assembly="System.Web.Helpers, Version=1.0.0.0,
Culture=neutral, PublicKeyToken=31BF3856AD364E35" />
<add assembly="System.Web.Routing, Version=4.0.0.0,
Culture=neutral, PublicKeyToken=31BF3856AD364E35" />
<add assembly="System.Web.Mvc, Version=3.0.0.0,
Culture=neutral, PublicKeyToken=31BF3856AD364E35" />
<add assembly="System.Web.WebPages, Version=1.0.0.0,
Culture=neutral, PublicKeyToken=31BF3856AD364E35" />
</assemblies>
</compilation>
<authentication mode="Forms">
<forms name="NOPCOMMERCE.AUTH" loginUrl="~/login"
protection="All" timeout="43200" path="/"
requireSSL="false" slidingExpiration="true" />
</authentication>
<pages>
<namespaces>
<add namespace="System.Web.Helpers" />
<add namespace="System.Web.Mvc" />
<add namespace="System.Web.Mvc.Ajax" />
<add namespace="System.Web.Mvc.Html" />
<add namespace="System.Web.Routing" />
<add namespace="System.Web.WebPages" />
<add namespace="Telerik.Web.Mvc.UI" />
</namespaces>
</pages>
<httpHandlers>
<add verb="GET,HEAD" path="asset.axd" validate="false"
type="Telerik.Web.Mvc.WebAssetHttpHandler, Telerik.Web.Mvc" />
<!--Uncomment the following lines in order
to enabled static file caching and compression for IIS 6
<remove verb="GET,HEAD,POST" path="*" />
<add verb="GET,HEAD,POST" path="*"
type="Nop.Web.Framework.StaticFileHandler" />-->
</httpHandlers>
</system.web>
----------------------------------------------------------------------------------------------------------