These old forums are deprecated now and set to read-only. We are waiting for you on our new forums!
More modern, Discourse-based and with GitHub/Google/Twitter authentication built-in.

All times are UTC - 5 hours [ DST ]



Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 3 posts ] 
Author Message
 Post subject: Could Not Insert [Namespace.Table]
PostPosted: Tue Jan 02, 2007 1:51 pm 
Newbie

Joined: Tue Jan 02, 2007 1:45 pm
Posts: 2
I'm Trying of run tehe Quick start tutorial in VS.NET 2005

In the SaveOrUpdate method display this error:

Could Not Insert : [CapaNegocios.Cliente]

when Capanegocios is the assembly
and Cliente is the Table and the name of the table.

Thanks for your help and excuse my bad english


Top
 Profile  
 
 Post subject:
PostPosted: Tue Jan 02, 2007 5:47 pm 
Newbie

Joined: Mon Jan 01, 2007 6:18 pm
Posts: 11
Location: New Zealand
Have you created the table in the database.

and Have you entered the correct connection string to connect to the database.

Providing a copy of the hibernate.cfg.xml or web.config or app.config would help (if you have created the tables in the database).


Top
 Profile  
 
 Post subject: Could Not Insert
PostPosted: Tue Jan 02, 2007 6:20 pm 
Newbie

Joined: Tue Jan 02, 2007 1:45 pm
Posts: 2
Have you created the table in the database.

Yes

and Have you entered the correct connection string to connect to the database.

Yes

Providing a copy of the hibernate.cfg.xml or web.config or app.config would help (if you have created the tables in the database).[/quote]

the app.config is :

<?xml version="1.0" encoding="utf-8" ?>

<configuration>

<configSections>

<section
name="nhibernate"
type="System.Configuration.NameValueSectionHandler, System, Version=1.0.5000.0, Culture=neutral, PublicKeyToken=b77a5c561934e089"
/>


</configSections>



<nhibernate>

<add

key="hibernate.connection.provider"

value="NHibernate.Connection.DriverConnectionProvider"

/>

<add

key="hibernate.dialect"

value="NHibernate.Dialect.MsSql2000Dialect"

/>

<add

key="hibernate.connection.driver_class"

value="NHibernate.Driver.SqlClientDriver"

/>

<add

key="hibernate.connection.connection_string"

value="Server=.\sqlexpress;initial catalog=APOLO;Integrated Security=SSPI"

/>

</nhibernate>

</configuration>

Thanks


Top
 Profile  
 
Display posts from previous:  Sort by  
Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 3 posts ] 

All times are UTC - 5 hours [ DST ]


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum

Search for:
© Copyright 2014, Red Hat Inc. All rights reserved. JBoss and Hibernate are registered trademarks and servicemarks of Red Hat, Inc.