Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Object reference not set to an instance of an object
Message
From
24/02/2010 08:51:37
 
General information
Forum:
ASP.NET
Category:
The Mere Mortals .NET Framework
Miscellaneous
Thread ID:
01450438
Message ID:
01450745
Views:
47
>Frank,
>
>>I've reached Step 13 in Jump Start: Web Forms Application - C# where I am binding the text boxes to the data. I set the BindingSource property of all the text boxes to "Order" and when I try to set the BindingSourceMember of the OrderID textbox I get this error:
>>
>>Object reference not set to an instance of an object.
>>
>>at OakLeaf.MM.Main.Builders.mmBindingSourceWebMemberEditForm.GetDatabases()....
>>
>>Any ideas what could be wrong?
>
>This is almost always caused by invalid connection information in the Web project's web.config or the Business Layer project's app.config. I recommend examining the databases node carefully in both files to make sure the information is accurate. The BindingSourceMember dialog uses the information in these files to connect to your application database.
>
>Best Regards,

Hi Kevin,

this is my connection string in my web.config:
	  <add key="Northwind\Connection" value="server=MyServer;Integrated Security=SSPI;Persist Security Info=False;Initial Catalog=Northwind" />
This is it in my app.config:
		<add key="Northwind\Connection" value="server=MyServer;Integrated Security=SSPI;Persist Security Info=False;Initial Catalog=Northwind" />
I actually copied and pasted it from the app.config inmy BO project.
Frank.

Frank Cazabon
Samaan Systems Ltd.
www.samaansystems.com
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform