Register
Login
Home
Code Complete
Download
Purchase
Your Cart
Forum
Services
Contact us
Tuesday, January 06, 2009
Web
Site
Forum
Unanswered
Active Topics
Forums
Search
Members
Forums
>
Code Complete
>
Support
'ConnectionStrings' is not declared
Last Post 04 Sep 2008 07:45 AM by
eurowise
. 3 Replies.
Sort:
Oldest First
Most Recent First
Prev
Next
You are not authorized to post a reply.
Author
Messages
wkeller
New Member
Posts:3
03 Sep 2008 04:52 AM
Hello,
I am trying to evaluate your demo version of Code Complete 3. I am running it on Vista Home Premium SP1 64bit addition. I have created a very simple project using the Northwind access database. I am usuing only 3 of the tables. All other settings are default. When I generate the project I get the following error message:
Error 16 Name 'ConnectionStrings' is not declared. C:\Tutorials\NorthWindCC\NorthwindDemoWin\Common Classes\ConnectionManager.Designer.vb 59 16 NorthwindDemoWin
It is generated by the following code snippet:
Public Shared Function GetConnectionString() As String
Return ConnectionStrings("Northwind").ConnectionString
End Function
Also:
Language: VB.NET
Framework: CSLA3.5
Data Access: ADO.NET
Solution: Windows Application
Can you help?
Thanks,
William
eurowise
Basic Member
Posts:107
03 Sep 2008 08:18 AM
Hi William,
When you generate a windows application, a reference to the System.Configuration.dll is required. For multi-tier application is required in the DL project. Use the Add reference dialog in the Project Settings screen to add it or just add it to the project after you have generated the solution.
Regards
Philip
wkeller
New Member
Posts:3
04 Sep 2008 12:09 AM
Hi Philip,
Thanks for the response. Your suggestion corrected the problem. The Solution generated works fine.
There is another issue which does not affect the program that is created but is of curiosity to me. There are numerous warnings generated. They are the same warning but for different areas of the code:
Warning 1 Only one XML comment block is allowed per language element. C:\Tutorials\CodeComplete\Test1\BL Classes\BLTable1Info.Designer.vb 125 7 Test1
'''<summary>
'''Constructor
'''</summary>
'''<param name="Id" ></param>
'''<param name="FullName" ></param>
'''<param name="Phone" ></param>
Why is Code Complete generating this? Is it correctable?
Thanks, William
eurowise
Basic Member
Posts:107
04 Sep 2008 07:45 AM
Hi William
We will be ironing these warnings in the next release. You can remove them by just cleaning up the XML.
Regards
Philip
You are not authorized to post a reply.
Code Complete
--Dedicated to the latest news and announcements
--Tips and Tricks
--Code Complete Templates
--Testimonies
--Wish list
--General
--Support
Default Group
--Default Forum
Forums
>
Code Complete
>
Support
Active Forums 4.0
(c) 2009 - Eurowise Soft - Code Complete, The code generator.
|
Terms Of Use
|
Privacy Statement