On 13.4.2006 21:25 Carlos Guzmán Álvarez wrote:
Hello:
whatever I try I get error: "Connection string cannot be blank.", but I have also in web.config:

Post the Stack trace of the exception please.


Here's. Sorry for HTML mail, but it's more clearly. The Web.Config is also there.

Server Error in '/WebSite3' Application.

Configuration Error

Description: An error occurred during the processing of a configuration file required to service this request. Please review the specific error details below and modify your configuration file appropriately.

Parser Error Message: Connection string cannot be blank.

Source Error:

Line 22:     <providers>
Line 23:       <add name="MyProvider"
Line 24:           type="FirebirdSql.Web.Providers.FbMembershipProvider"
Line 25:           connectionStringName="ucimeConnectionString"
Line 26:           />

Source File: C:\Documents and Settings\Jiri Cincura\Dokumenty\devel\Visual Studio 2005\WebSites\WebSite3\web.config    Line: 24


Version Information: Microsoft .NET Framework Version:2.0.50727.42; ASP.NET Version:2.0.50727.42



<?xml version="1.0"?>

<!--

    Note: As an alternative to hand editing this file you can use the

    web admin tool to configure settings for your application. Use

    the Website->Asp.Net Configuration option in Visual Studio.

    A full list of settings and comments can be found in

    machine.config.comments usually located in

    \Windows\Microsoft.Net\Framework\v2.x\Config

-->

<configuration>

      <appSettings/>

  <connectionStrings>

    <add name="ucimeConnectionString" connectionString="Port=3050;Charset=NONE;Dialect=3;ServerType=0;DataSource=localhost;Database=ucime;UserID=SYSDBA;Password=masterkey"

      />

  </connectionStrings>

      <system.web>

            <compilation debug="true"/>

            <authentication mode="Forms"/>

        <customErrors mode="Off" defaultRedirect="GenericErrorPage.htm">

        </customErrors>

    <membership defaultProvider="MyProvider" userIsOnlineTimeWindow="15">

    <providers>

      <add name="MyProvider"

          type="FirebirdSql.Web.Providers.FbMembershipProvider"

          connectionStringName="ucimeConnectionString"

          />

    </providers>

    </membership>

      </system.web>

</configuration>

 


-- 
Jiri Cincura
http://www.cincura.net/ 


Reply via email to