Technical issues, problems, errors, findings & resolutions covering Microsoft Dynamics CRM, software development, Microsoft .NET, C#, VB.NET, Commerce Server, Integration, E-Commerce, Scribe, Online shops and more general technology and consultancy posts.

Setup .Net NopCommerce Shopping Basket on GoDaddy – Problems with SQL Server and Web.Config

Hey,
http://forums.nopcommerce.com/forums/default.aspx?g=posts&t=331

This post is a copy of the entry I posted on NopCommerce Forum. NopCommerce is an excellent FREE .NET shopping basket. I suggest any .NET developer/consultant to have a look at it even before going towards the commerce server route. The company I work for is a Microsoft Gold Partner so they are rather inclined (rightly) to go for the Commerce Server option whenever the client project sounds like an online shop or e-commerce portal. But for any smaller kind of project, I definitely recommend Nop Commerce. At least you have the full source code to play with as you wish and add your bits.

Anyway, I had a nightmare trying to setup NopCommerce on GoDaddy. I did quite a bit of fiddling to get it working.

The partial trust post is very useful:
http://forums.nopcommerce.com/forums/default.aspx?g=posts&t=224

You will have problems with GoDaddy specifically, as you won’t be able to upload the create data sql file (too big – maximum 2.5MB and the files is 4MB). To overcome this, you will need to split your create data to few sql files. Make sure that you have insert set to “ON” on the first line of every one of these sql files.

Also, the installation wizard could not find my database (on GoDaddy), although it connected to the host correctly. i guess it is trying to find the database on an incorrect level. Anyway, to overcome this, you will have to use the sql files in the scripts folder (in the install folder) to create the tables and the data manually rather than using the script.

mmm, what else… yeah, you will also need to amend the web.config manually. Basically either use the wizard or do everything manually. the wizard didn’t work with Go Daddy though when I tried it as I said earlier.

Despite all that, Nop Commerce is excellent and many thanks for all the effort of the development team. I have to say it works perfectly when I play with it on my Dev machine, it is only when you try to set it up on a shared hosting account.

If you still have problems, get in touch and I’m happy to help.

6 Comments to Setup .Net NopCommerce Shopping Basket on GoDaddy – Problems with SQL Server and Web.Config

  1. Mark Henry's Gravatar Mark Henry
    12 June 2009 at 8:35 pm | Permalink

    Oh, Wow! I needed that info.. ‘ve been looking for some guidance on how to setup this and finally I found your blog.

    Thanks a lot!

    Mark

  2. Nancy's Gravatar Nancy
    1 November 2009 at 3:19 pm | Permalink

    Thanks for this useful article. I have now managed to setup Nop Commerce on Go Daddy

  3. 20 December 2009 at 11:13 pm | Permalink

    Hi thanks for your help.
    I am trying to use nopcommerce on the godaddy server.
    They give you no support . I dont know what to do to activate th program.They install it but i can not get it to work.
    Any help will be much appreciated.
    Thanks Mike

  4. 21 December 2009 at 12:30 pm | Permalink

    What is the error that you are actually getting? Please explain more. Contact me via the contact page if you want and I’ll see what I can do.

  5. aaadil's Gravatar aaadil
    23 December 2009 at 10:40 am | Permalink

    Hi,

    I am trying to setup nopcommerce on godaddy, i customized the template and have changed some files in Modules folder. It is working perfectly at local server, but when i upload the changed files to godaddy, it gives error at godaddy server.

    I am stuck,
    please help me
    Aadil

  6. Viral's Gravatar Viral
    29 March 2010 at 12:19 pm | Permalink

    i am having below error on GoDaddy when i try to add product to cart.. Any help is appreciated… It is frustrating to set this up on GoDaddy.

    System.Web.HttpUnhandledException: Exception of type ‘System.Web.HttpUnhandledException’ was thrown. —> System.ArgumentNullException: Value cannot be null. Parameter name: type at System.Activator.CreateInstance(Type type, Boolean nonPublic) at System.Activator.CreateInstance(Type type) at NopSolutions.NopCommerce.BusinessLogic.Shipping.ShippingManager.GetShoppingCartShippingTotal(ShoppingCart Cart, Customer customer, Boolean includingTax, String& Error) in C:\Inetpub\wwwroot\nopCommerce_1.40\Libraries\Nop.BusinessLogic\Shipping\ShippingManager.cs:line 229 at NopSolutions.NopCommerce.BusinessLogic.Shipping.ShippingManager.GetShoppingCartShippingTotal(ShoppingCart Cart, Customer customer, String& Error) in C:\Inetpub\wwwroot\nopCommerce_1.40\Libraries\Nop.BusinessLogic\Shipping\ShippingManager.cs:line 169 at NopSolutions.NopCommerce.BusinessLogic.Shipping.ShippingManager.GetShoppingCartShippingTotal(ShoppingCart Cart, Customer customer) in C:\Inetpub\wwwroot\nopCommerce_1.40\Libraries\Nop.BusinessLogic\Shipping\ShippingManager.cs:line 146 at NopSolutions.NopCommerce.Web.Modules.OrderTotalsControl.BindData() in C:\Inetpub\wwwroot\nopCommerce_1.40\NopCommerceStore\Modules\OrderTotals.ascx.cs:line 91 at NopSolutions.NopCommerce.Web.Modules.OrderSummaryControl.BindData() in C:\Inetpub\wwwroot\nopCommerce_1.40\NopCommerceStore\Modules\OrderSummary.ascx.cs:line 76 at NopSolutions.NopCommerce.Web.Modules.OrderSummaryControl.OnInit(EventArgs e) in C:\Inetpub\wwwroot\nopCommerce_1.40\NopCommerceStore\Modules\OrderSummary.ascx.cs:line 52 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\efforts_estore140\82cf8ae4\286ba557\App_Web_1jce6ml_.31.cs:line 0 at System.Web.HttpApplication.CallHandlerExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute() at System.Web.HttpApplication.ExecuteStep(IExecutionStep step, Boolean& completedSynchronously)

Leave a Reply

You can use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>