just a basic silverlight application 4 unable to see it working after web deploy

Discussion in 'Silverlight' started by TecTiger, Jul 15, 2010.

  1. Build a silverlight 4 business application template and then used the web deploy method to upload to dasp.
    did not add any connection strings for any sql server 2008 database in the web.config......
    the error is:-
    The connection name 'LocalSqlServer' was not found in the applications configuration or the connection string is empty in the machine .config.

    C:\Windows\Microsoft.NET\Framework\v4.0.30319\Config\machine.config

    Error details are as follows :-
    =========================================================
    <font face="Arial, Helvetica, Geneva, SunSans-Regular, sans-serif ">

    <b> Description: </b>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.
    <br><br>

    <b> Parser Error Message: </b>The connection name 'LocalSqlServer' was not found in the applications configuration or the connection string is empty.<br><br>

    <b>Source Error:</b> <br><br>

    <table width=100% bgcolor="#ffffcc">
    <tr>
    <td>
    <code><pre>

    Line 281: &lt;providers&gt;
    Line 282: &lt;add name=&quot;AspNetSqlRoleProvider&quot; connectionStringName=&quot;LocalSqlServer&quot; applicationName=&quot;/&quot;
    <font color=red>Line 283: type=&quot;System.Web.Security.SqlRoleProvider, System.Web, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a&quot; /&gt;
    </font>Line 284: &lt;add name=&quot;AspNetWindowsTokenRoleProvider&quot; applicationName=&quot;/&quot;
    Line 285: type=&quot;System.Web.Security.WindowsTokenRoleProvider, System.Web, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a&quot; /&gt;</pre></code>

    </td>
    </tr>
    </table>

    <br>

    <b> Source File: [B]</b> C:\Windows\Microsoft.NET\Framework\v4.0.30319\Config\machine.config[/B]<[/U]b> &nbsp;&nbsp; Line: </b> 283
    =============================================
     
  2. Bruce

    Bruce DiscountASP.NET Staff

    Try define a connection string named "LocalSqlServer"
     

Share This Page