Can not access shopping cart

This topic was automatically closed 365 days after the last reply. New replies are no longer allowed.
13 years ago
When adding an item to the cart, it throws the usual system error.
Back-browsing to the page, reveals the item has been added to the cart.
Clicking on check-out then give sme the system error again.

The log says:

System.Web.HttpUnhandledException: Exception of type 'System.Web.HttpUnhandledException' was thrown. ---> System.NullReferenceException: Object reference not set to an instance of an object. at NopSolutions.NopCommerce.DataAccess.DBProviderManager`1.Initialize() in F:\Temp\Test\nopCommerce 1.60\Libraries\Nop.DataAccess\DBProviderManager.cs:line 73 at NopSolutions.NopCommerce.DataAccess.DBProviderManager`1.get_Provider() in F:\Temp\Test\nopCommerce 1.60\Libraries\Nop.DataAccess\DBProviderManager.cs:line 165 at NopSolutions.NopCommerce.BusinessLogic.Products.Attributes.CheckoutAttributeManager.GetAllCheckoutAttributes(Int32 languageId, Boolean dontLoadShippableProductRequired) in F:\Temp\Test\nopCommerce 1.60\Libraries\Nop.BusinessLogic\Products\Attributes\CheckoutAttributeManager.cs:line 187 at NopSolutions.NopCommerce.BusinessLogic.Products.Attributes.CheckoutAttributeManager.GetAllCheckoutAttributes(Boolean dontLoadShippableProductRequired) in F:\Temp\Test\nopCommerce 1.60\Libraries\Nop.BusinessLogic\Products\Attributes\CheckoutAttributeManager.cs:line 168 at NopSolutions.NopCommerce.Web.Modules.CheckoutAttributesControl.GetCheckoutAttributes() in F:\Temp\Test\nopCommerce 1.60\NopCommerceStore\Modules\CheckoutAttributes.ascx.cs:line 55 at NopSolutions.NopCommerce.Web.Modules.CheckoutAttributesControl.CreateAttributeControls() in F:\Temp\Test\nopCommerce 1.60\NopCommerceStore\Modules\CheckoutAttributes.ascx.cs:line 69 at NopSolutions.NopCommerce.Web.Modules.CheckoutAttributesControl.OnInit(EventArgs e) in F:\Temp\Test\nopCommerce 1.60\NopCommerceStore\Modules\CheckoutAttributes.ascx.cs:line 61 at System.Web.UI.Control.InitRecursive(Control namingContainer) at System.Web.UI.Control.InitRecursive(Control namingContainer) at System.Web.UI.Control.InitRecursive(Control namingContainer) at System.Web.UI.Control.InitRecursive(Control namingContainer) at System.Web.UI.Control.InitRecursive(Control namingContainer) at System.Web.UI.Control.InitRecursive(Control namingContainer) at System.Web.UI.Control.InitRecursive(Control namingContainer) at System.Web.UI.Control.InitRecursive(Control namingContainer) at System.Web.UI.Control.InitRecursive(Control namingContainer) at System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) --- End of inner exception stack trace --- at System.Web.UI.Page.HandleError(Exception e) at System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) at System.Web.UI.Page.ProcessRequest(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) at System.Web.UI.Page.ProcessRequest() at System.Web.UI.Page.ProcessRequestWithNoAssert(HttpContext context) at System.Web.UI.Page.ProcessRequest(HttpContext context) at ASP.shoppingcart_aspx.ProcessRequest(HttpContext context) in c:\Windows\Microsoft.NET\Framework\v2.0.50727\Temporary ASP.NET Files\root\8b2c0dd5\a8116dcf\App_Web_oujph1g5.11.cs:line 0 at System.Web.HttpApplication.CallHandlerExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute() at System.Web.HttpApplication.ExecuteStep(IExecutionStep step, Boolean& completedSynchronously)


Any ideas?

Cheers - Helger
13 years ago
Solved

Softsys advised me that on editing the web.config, the site may fall back to medium trust.

Cheers - Helger
13 years ago
For anyone who uses  [url= http://tinyurl.com/NOP-hosting ]softsys[/url]

insert the following

      <trust level="Full" />

somewhere inside
  <system.web>       </system.web>

tags - eg just next to yout custom error tags

if you do this then you don't need to ask support to set the trust level - but most importantly, if their support have done this for you and you upload a new web.conig file without the tags, you will lose the full trust setting
13 years ago
Thanks Haydie, that's propably - what happened.

She's sucking the diesel now . . .

Cheers - Helger
13 years ago
Server Error in '/' Application.
Configuration Error
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: This configuration section cannot be used at this path.  This happens when the site administrator has locked access to this section using <location allowOverride="false"> from an inherited configuration file.

Source Error:

Line 76:   <system.web>
Line 77:     <httpRuntime maxRequestLength="51200"/>
Line 78:     <trust level="Full" />
Line 79:     <customErrors mode="Off" defaultRedirect="ErrorPage.htm">
Line 80:       <error statusCode="403" redirect="BannedAddress.htm"/>


Source File: D:\Hosting\5706983\html\web.config    Line: 78

Version Information: Microsoft .NET Framework Version:2.0.50727.3603; ASP.NET Version:2.0.50727.4049


This is what I get when I make the edit.

Pretty new to .NET and not sure how to fix this.
This topic was automatically closed 365 days after the last reply. New replies are no longer allowed.