Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Object reference not set to an instance of an object
Message
De
24/02/2010 08:51:37
 
Information générale
Forum:
ASP.NET
Catégorie:
The Mere Mortals .NET Framework
Divers
Thread ID:
01450438
Message ID:
01450745
Vues:
48
>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
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform