WebMatrix: How to publish from the start?

Discussion in 'Getting started' started by BoBoDev, Aug 11, 2010.

Thread Status:
Threads that have been inactive for 5 years or longer are closed to further replies. Please start a new thread.
  1. Hello,
    I am building a site using WebMatrix, but, I wasn't able to publish it properly. Anyone has a full tutorial on all the necesarry steps to complete this? Thank you.

    I am getting this error currently, and I am not using authentication yet

    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: The connection name 'LocalSqlServer' was not found in the applications configuration or the connection string is empty.

    Source Error:


    Line 255: <providers>
    Line 256: <add name="AspNetSqlMembershipProvider"
    Line 257: type="System.Web.Security.SqlMembershipProvider, System.Web, Version=4.0.0.0, Culture=neutral, PublicKeyToken=xxxxxxxxxxx"
    Line 258: connectionStringName="LocalSqlServer"
    Line 259: enablePasswordRetrieval="false"
     
  2. Hi,
    I've got it installed and will look it over in a bit.
    If I get a handle on this I'll repost.
    All the best,
    Mark
     
  3. mjp

    mjp

    Check out this Knowledge Base article.
     
  4. Bruce

    Bruce DiscountASP.NET Staff

    Razor automatically loads the membership provider even though the app does not use it.

    To get an application made w/ WebMatrix to work, you'll need to

    1) Upload your application to the server
    2) Download the web.config file.
    3) Open it in your favorite editor and add a connection string section

    <connectionStrings>
    <remove name="LocalSqlServer" />
    <add name="LocalSqlServer" connectionString="Data Source=DBServerName;Integrated Security=false;Initial Catalog=DBName;User ID=DBLogin;Password=DBPassword" providerName="System.Data.SqlClient" />
    </connectionStrings>
     
Thread Status:
Threads that have been inactive for 5 years or longer are closed to further replies. Please start a new thread.

Share This Page