Webstore null connectionString

This is the place to report bugs and get support. When posting in this forum, please always provide as much detail as possible.

Please do not report problems with a custom build or custom code in this forum. If you are producing your own build from the source code and have problems or questions, ask in the developer forum, do not report it as a bug.

This is the place to report bugs and get support

When posting in this forum, please try to provide as many relevant details as possible. Particularly the following:

  • What operating system were you running when the bug appeared?
  • What database platform is your site using?
  • What version of mojoPortal are you running?
  • What version of .NET do you use?
  • What steps are necessary to reproduce the issue? Compare expected results vs actual results.
Please do not report problems with a custom build or custom code in this forum. If you are producing your own build from the source code and have problems or questions, ask in the developer forum.
This thread is closed to new posts. You must sign in to post in the forums.
10/4/2007 10:14:12 AM
Gravatar
Total Posts 48

Webstore null connectionString

My first post so hi all

I've just downloaded the mojoportal (mojoportal-2-2-3-9-sourcecode-3.zip) and installed it. It looks like a nice platfrom with plenty of potential, and we're looking to possibly base our future sites on it.

The error: This is the first error I've come accross and can't find any info on it in the documentation or these forums. I added a new page called "Cart". On that page I added a "webstore" to the center panel. Now when I try and run mojo i get the following error, any help fixing it would be appreciated:

(SQLHelper.cs Line 2600 is where is is flagging up)

Value cannot be null.
Parameter name: connectionString
Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code.

Exception Details: System.ArgumentNullException: Value cannot be null.
Parameter name: connectionString

Source Error:

An unhandled exception was generated during the execution of the current web request. Information regarding the origin and location of the exception can be identified using the exception stack trace below.

Stack Trace:

[ArgumentNullException: Value cannot be null.
Parameter name: connectionString]
WebStore.Data.SqlHelperParameterCache.GetSpParameterSet(String connectionString, String spName, Boolean includeReturnValueParameter) +148
WebStore.Data.SqlHelperParameterCache.GetSpParameterSet(String connectionString, String spName) +53
WebStore.Data.db.Store_GetStore(Int32 moduleID) +154
WebStore.Business.Store.GetStore(Int32 moduleID) +76
WebStore.Business.Store..ctor(Guid siteGuid, Int32 moduleID) +684
WebStore.UI.WebStoreModule.LoadSettings() +124
WebStore.UI.WebStoreModule.Page_Load(Object sender, EventArgs e) +45
System.Web.UI.Control.OnLoad(EventArgs e) +99
System.Web.UI.Control.LoadRecursive() +47
System.Web.UI.Control.LoadRecursive() +131
System.Web.UI.Control.LoadRecursive() +131
System.Web.UI.Control.LoadRecursive() +131
System.Web.UI.Control.LoadRecursive() +131
System.Web.UI.Control.LoadRecursive() +131
System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +1061

10/4/2007 11:27:24 AM
Gravatar
Total Posts 48

Re: Webstore null connectionString

Sorted it, just added the following line to the webconfig file:

<add key="WebStoreMSSQLConnectionString" value="server=myserver;UID=myusername;PWD=mypassword;database=mydatabase" />

10/4/2007 3:42:09 PM
Gravatar
Total Posts 18439

Re: Webstore null connectionString

Hi,

Glad you found it. Just keep in mind that the e-commerce feature is not a "released" feature yet, though it is included in the source code and a good deal of functionality is ready, it is a work in progress.

There is some info about the ecommerce project here:

http://www.mojoportal.com/e-commercesolution.aspx

and a special forum for that project here:

http://www.mojoportal.com/e-commerceforum.aspx

I did the bulk of whats there a back in the early part of the year but have been working on other things since. Christian Fredh has been doing some work on it recently and I have a potential project emerging that may get me going on it again myself soon.

Best,

Joe

You must sign in to post in the forums. This thread is closed to new posts.