setup

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/23/2008 9:40:48 AM
Val
Gravatar
Total Posts 4

setup

Hi

I'm usin SQLEXPRESS

in config = <add key="ASPNETDBConnectionString1" value="Data Source=.\SQLEXPRESS;AttachDbFilename=|DataDirectory|\myDB.MDF;Integrated Security=True;User Instance=True" />

That the error i'm getting in setup run:

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

Source Error:

Line 77: private void Initialize(string pConnectionInfo, string pCommandText, CommandType pCmdType, int pParamCnt)
Line 78: {
Line 79: if (pConnectionInfo == null || pConnectionInfo.Length == 0) throw new ArgumentNullException("connectionString");
Line 80: if (pCommandText == null || pCommandText.Length == 0) throw new ArgumentNullException("commandText");
Line 81: connectionString = pConnectionInfo; 

10/23/2008 10:03:07 AM
Gravatar
Total Posts 18439

Re: setup

I'm using SQLExpress too and it works for me. You should configure your SQLExpress for Mixed Mode authentication (both integrated security and SQL authentication) then use SQL authentication. It may be possible to get it working with integrated auth but its much easier with sql auth. I don't know about all that attach db stuff either. With sql auth enabled my connection string is like this:

<add key="MSSQLConnectionString" value="server=localhost\SQLExpress;UID=user;PWD=password;database=mojodev" />

Hope it helps,

Joe

10/24/2008 2:12:00 AM
Val
Gravatar
Total Posts 4

Re: setup

Hi Joe

I have this error after reconfiguring sql

Line 948: public static SqlDataReader ExecuteReader(string connectionString, CommandType commandType, string commandText, params SqlParameter[] commandParameters)
Line 949: {
Line 950: if (connectionString == null || connectionString.Length == 0) throw new ArgumentNullException("connectionString");
Line 951: SqlConnection connection = null;
Line 952: try


Source File: C:\mojoportal\mojoportal\mojoPortal.Data.MSSQL\SQLHelper.cs Line: 950

Stack Trace:

[ArgumentNullException: Value cannot be null.
Parameter name: connectionString]
mojoPortal.Data.SqlHelper.ExecuteReader(String connectionString, CommandType commandType, String commandText, SqlParameter[] commandParameters) in C:\mojoportal\mojoportal\mojoPortal.Data.MSSQL\SQLHelper.cs:950
mojoPortal.Data.DBTaskQueue.GetUnfinished() in C:\mojoportal\mojoportal\mojoPortal.Data.MSSQL\DBTaskQueue.cs:351
mojoPortal.Business.TaskQueue.GetUnfinished() in C:\mojoportal\mojoportal\mojoPortal.Business\TaskFramework\TaskQueue.cs:451
mojoPortal.Web.WebTaskManager.StartOrResumeTasks(Boolean appWasRestarted) in C:\mojoportal\mojoportal\Web\Components\WebTaskManager.cs:406
mojoPortal.Web.Global.Application_Start(Object sender, EventArgs e) in C:\mojoportal\mojoportal\Web\Global.asax.cs:107
 

10/24/2008 7:45:32 AM
Gravatar
Total Posts 18439

Re: setup

In your first post you posted this: <add key="ASPNETDBConnectionString1"

That is not the mojoPortal connection string, you can't just make up your own name for the connection string. It should be named like the one I posted that is already existing in the Web.config file included with mojoportal. You're not supposed to add one.

The error says its not seeing your connection string.

Hope it helps,

Joe

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