Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Problem with connection string
Message
 
 
To
All
General information
Forum:
ASP.NET
Category:
Databases
Title:
Problem with connection string
Environment versions
OS:
Windows XP
Database:
MS SQL Server
Miscellaneous
Thread ID:
01324962
Message ID:
01324962
Views:
68
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.
If it's not broken, fix it until it is.


My Blog
Next
Reply
Map
View

Click here to load this message in the networking platform