Installation and deployment Questions on installation, system configuration and deployment to the live server.
Version 5.x > Installation and deployment > Error while starting the site for the first time View modes: 
User avatar
Member
Member
p_den_graaf-mail - 12/3/2010 3:30:05 PM
   
Error while starting the site for the first time
I get the following error when i start the site for the first time after running the web installer.

I am running with the following specs

Windows Server 2003
SQL Server 2008 R2
Visual Studio 2010
Kentico 5.5

I choosed the following in the web installer:

.NET 4/2010
IIS

I only choosed to install the ecommerce site.

What could be the cause of this error ?

===================================================
Server Error in '/KenticoCMS' Application.
--------------------------------------------------------------------------------

The ConnectionString property has not been initialized.
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.InvalidOperationException: The ConnectionString property has not been initialized.

Source Error:

The source code that generated this unhandled exception can only be shown when compiled in debug mode. To enable this, please follow one of the below steps, then request the URL:

1. Add a "Debug=true" directive at the top of the file that generated the error. Example:

<%@ Page Language="C#" Debug="true" %>

or:

2) Add the following section to the configuration file of your application:

<configuration>
<system.web>
<compilation debug="true"/>
</system.web>
</configuration>

Note that this second technique will cause all files within a given application to be compiled in debug mode. The first technique will cause only that particular file to be compiled in debug mode.

Important: Running applications in debug mode does incur a memory/performance overhead. You should make sure that an application has debugging disabled before deploying into production scenario.
================================================

User avatar
Kentico Support
Kentico Support
kentico_radekm - 12/6/2010 2:19:29 AM
   
RE:Error while starting the site for the first time
Hello.

Are you using precompiled web site? Are you using the IIS or the build in server in Visual Studio? This behavior can be caused by some incorrect IIS settings.

Could you please check your web.config file if you have specified the connection string correctly (database name, sql server name, credentials,...).

Can you also enable debug as point 2 states (add "<compilation debug="true"/>" in your web.config) to see what exactly is the problem? Thank you.

Best Regards,
Radek Macalik