The connection name 'MSSQLConnectionString' was not found in the applications configuration or the connection string is empty.

This forum is only for questions or discussions about working with the mojoPortal source code in Visual Studio, obtaining the source code from the repository, developing custom features, etc. If your question is not along these lines this is not the right forum. Please try to post your question in the appropriate forum.

Please do not post questions about design, CSS, or skinning here. Use the Help With Skins Forum for those questions.

This forum is for discussing mojoPortal development

This forum is only for questions or discussions about working with the mojoPortal source code in Visual Studio, obtaining the source code from the repository, developing custom features, etc. If your question is not along these lines this is not the right forum. Please try to post your question in the appropriate forum.

You can monitor commits to the repository from this page. We also recommend developers to subscribe to email notifications in the developer forum as occasionally important things are announced.

Before posting questions here you might want to review the developer documentation.

Do not post questions about design, CSS, or skinning here. Use the Help With Skins Forum for those questions.
This thread is closed to new posts. You must sign in to post in the forums.
9/5/2010 7:43:47 AM
Gravatar
Total Posts 55

The connection name 'MSSQLConnectionString' was not found in the applications configuration or the connection string is empty.

Hi all,

 

I have configured connection string and installed mojoportal on server successfully and

all mojoportal features are working perfectly, just I have putted my custom control wich uses sql server but

it gives me followong error

The connection name 'MSSQLConnectionString' was not found in the applications configuration or the connection string is empty.

Is it mojoportal problem or my custom control problem? connection string name un user.config is 'MSSQLConnectionString'

 

What to do?..

 

Thanks

9/5/2010 8:46:28 AM
Gravatar
Total Posts 18439

Re: The connection name 'MSSQLConnectionString' was not found in the applications configuration or the connection string is empty.

In mojoPortal we use <appSettings for our connection strings, but it sounds like your control needs to use the <connectionStrings for its connection string.

You would need to add this in Web.config after the </appSettings>

<connectionStrings>
    <add name="MSSQLConnectionString" connectionString="server=yourservername;UID=yourdatabaseusername;PWD=yourdatabaseuserpassword;database=yourdatabasename"/>
  </connectionStrings>

and put the same connection string value there that you have in user.config

Hope it helps,

Joe

9/5/2010 8:52:07 AM
Gravatar
Total Posts 55

Re: The connection name 'MSSQLConnectionString' was not found in the applications configuration or the connection string is empty.

Thank you Joe very much!!!! everything works perfect thankss :)

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