Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Invoking method in testing fails
Message
From
22/02/2010 15:11:33
Timothy Bryan
Sharpline Consultants
Conroe, Texas, United States
 
 
To
22/02/2010 14:55:57
General information
Forum:
ASP.NET
Category:
The Mere Mortals .NET Framework
Environment versions
Environment:
C# 3.0
OS:
Windows XP SP2
Database:
MS SQL Server
Miscellaneous
Thread ID:
01450277
Message ID:
01450328
Views:
34
>>>>Hi,
>>>>
>>>>I've just started with eth MM .NET Jump Starts and have reached Step 7 in Creating Business Objects and when I try to invoke the Order1.GetOrderByOrderID() method, I enter the Order Id I want then I get this error:
>>>>
>>>>An unhandled exception of type 'System.InvalidOperationException' occurred in System.Data.dll
>>>>
>>>>Additional information: The ConnectionString property has not been initialized.
>>>>
>>>>I'm not sure where to go from here. the connection string worked previously while using the Business Layer Generator.
>>>>
>>>>Any advise on what to look for?
>>>
>>>Think I got it:
>>>
>>>I had named the database key incorrectly.
>>
>>Plus Frank the connection database key settings that are in the app.config of the business object project work for the business layer generator. But for an application, you need to have the databasekey connection in the app.config of windows project or the web.config of the web project.
>>Tim
>
>Thanks Tim,
>
>I can understand that. :)
>
>Now I'm stick on testing my TestGetAllEmployees() and Test GetAll Shippers() not returning anything. :( I need to go through the steps again and make sure I haven't missed anything out.
>
>BTW, how does one "Step Into" in Visual Studio?

Look in the dev guide at the bottom in Advanced Topics there is a section that shows how to add the debug symbols to your Visual Studio. Then you should be able to step into your methods and on into the framework methods.

Are your methods using Stored Procedures?
Tim
Timothy Bryan
Previous
Reply
Map
View

Click here to load this message in the networking platform