Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Problem with connection string
Message
De
17/06/2008 21:18:05
 
 
Information générale
Forum:
ASP.NET
Catégorie:
Bases de données
Versions des environnements
OS:
Windows XP
Database:
MS SQL Server
Divers
Thread ID:
01324962
Message ID:
01324995
Vues:
15
This message has been marked as a message which has helped to the initial question of the thread.
>Hi everybody,
>
>I'm trying to migrate one page I created in another project to a different project.
>
>I'm getting this error
>
>Server Error in '/FCFront' Application.
>The connection name 'Conn' was not found in the applications configuration or the connection string is empty.
>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 connection name 'Conn' was not found in the applications configuration or the connection string is empty.
>
>Source Error:
>
>Line 97:     <asp:MultiView ID="MltvwViewRegistration" runat="server">
>Line 98:         <asp:View ID="VwSpecilaFriend" runat="server">
>Line 99:             <asp:SqlDataSource runat="server" ID="PeopleFriendsDataSource" ConnectionString="< %$ ConnectionStrings:Conn % >"
>Line 100:                InsertCommand="RegistrationInsert" InsertCommandType="StoredProcedure" OnInserting="DataSource_Inserting">
>Line 101:                <InsertParameters>
>
>I checked the whole project and there is no entry in web.config for connectionstring, but there is one in app.settings file.
>
>In the whole project the connection is accessed in code behind. Is it possible to do it in ASPX and if yes, how?
>
>Or what should I do to make this page work?
>
>Thanks a lot in advance.

It's looking for a connection string called "Conn" if that is what the one in your app.settings file is called try copying it to your web.config
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform