Click here to Skip to main content
16,005,038 members
Home / Discussions / ASP.NET
   

ASP.NET

 
AnswerRe: short date format in datagrid Pin
N a v a n e e t h9-Sep-08 19:02
N a v a n e e t h9-Sep-08 19:02 
AnswerRe: short date format in datagrid Pin
balaji.t9-Sep-08 19:08
balaji.t9-Sep-08 19:08 
AnswerRe: short date format in datagrid Pin
balaji.t9-Sep-08 19:09
balaji.t9-Sep-08 19:09 
QuestionWYSIWYG Pin
Aptiva Dave9-Sep-08 17:57
Aptiva Dave9-Sep-08 17:57 
AnswerRe: WYSIWYG Pin
Abhijit Jana9-Sep-08 18:00
professionalAbhijit Jana9-Sep-08 18:00 
AnswerRe: WYSIWYG Pin
N a v a n e e t h9-Sep-08 18:47
N a v a n e e t h9-Sep-08 18:47 
Questionlocal user profile for both machine and domain accounts. Pin
Member 39190499-Sep-08 12:26
Member 39190499-Sep-08 12:26 
QuestionProblem with nhibernate: "Could not find the dialect in the configuration" [modified] Pin
dift9-Sep-08 11:10
dift9-Sep-08 11:10 
Hi
I have MV2005 and nhibernate from August 2008.
This is snippet of my code:

ExampleClass.hbm.xml:



<pre>< hibernate-mappi ng xmlns="urn:nhibernate-mapping-2.2" auto-import="true";
<class name="NHibernateExample.ExampleClass, NHibernateExample" table="ExampleClass">
<id name="ExampleClassId" column="ExampleClassId">
<generator class="native" />
</id>
<property name="Text" />
</class>
</pre>


App.conf


<pre><c onfiguration="">
<configsections>
<section>
name="nhibernate"
type="System.Configuration.NameValueSectionHandler, System, /&gt
Version=1.0.5000.0,Culture=neutral, /&gt PublicKeyToken=b77a5c561934e089" /&gt;
</section></configsections>
<nhibernate>
<add>
key="connection.provider"
value="NHibernate.Connection.DriverConnectionProvider"
/&gt;
<add>
key="dialect"
value="NHibernate.Dialect.MsSql2005Dialect"
/&gt;
<add>
key="connection.driver_class"
value="NHibernate.Driver.SqlClientDriver"
/&gt;
<add>
key="connection.connection_string"
value="Server=localhost\SQLExpress;Database=NHibernateExample;Trusted_Connection=Yes;"
/&gt;
</add></add></add></add></nhibernate>
</c></pre>

Main code:

<pre> try
{
Configuration Config = new Configuration();

Config.AddAssembly("NHibernateExample");

ISessionFactory Factory = Config.BuildSessionFactory();
ISession Session = null;

Session = Factory.OpenSession();

ExampleClass ExClass = new ExampleClass();
ExClass.Text = "Test";

Session.Save(ExClass);

Session.Close();
}
catch (Exception exp)
{
MessageBox.Show(exp.Message);
}</pre>

I don't know what it's wrong. The program is aborting when go to this line: ISessionFactory Factory = Config.BuildSessionFactory();
Exception message is: "Could not find the dialect in the configuration"
I've read several solutions on different forum ( I've added xsd file, loaded additional dll file ) but it still don't working.

Robert&amp;

I
modified on Tuesday, September 9, 2008 5:17 PM

<div class="ForumMod">modified on Tuesday, September 9, 2008 5:25 PM</div>
QuestionWeb Portals / Web Parts Pin
Member 39190499-Sep-08 9:23
Member 39190499-Sep-08 9:23 
QuestionUnable to find the ListView control in the System.Web.UI.WebControls namespace Pin
Steve Holdorf9-Sep-08 9:19
Steve Holdorf9-Sep-08 9:19 
AnswerRe: Unable to find the ListView control in the System.Web.UI.WebControls namespace Pin
John_Adams9-Sep-08 19:29
John_Adams9-Sep-08 19:29 
QuestionChange windows icon Pin
Pedram Behroozi9-Sep-08 8:31
Pedram Behroozi9-Sep-08 8:31 
AnswerRe: Change windows icon Pin
NeverHeardOfMe9-Sep-08 9:43
NeverHeardOfMe9-Sep-08 9:43 
AnswerRe: Change windows icon Pin
Perspx9-Sep-08 10:47
Perspx9-Sep-08 10:47 
GeneralRe: Change windows icon Pin
Pedram Behroozi11-Sep-08 7:28
Pedram Behroozi11-Sep-08 7:28 
AnswerRe: Change windows icon Pin
Blue_Boy9-Sep-08 11:40
Blue_Boy9-Sep-08 11:40 
QuestionBinding a generic list to a ASP ListView control dynamically Pin
Steve Holdorf9-Sep-08 8:21
Steve Holdorf9-Sep-08 8:21 
QuestionServer Error in '/' Application Pin
reogeo20089-Sep-08 8:08
reogeo20089-Sep-08 8:08 
AnswerRe: Server Error in '/' Application Pin
mavila23-Nov-08 14:56
mavila23-Nov-08 14:56 
QuestionAccessing Clipboard (On Server) from ASP.NET Page (C#) Pin
User 24629919-Sep-08 6:41
professionalUser 24629919-Sep-08 6:41 
AnswerRe: Accessing Clipboard (On Server) from ASP.NET Page (C#) Pin
led mike9-Sep-08 6:47
led mike9-Sep-08 6:47 
GeneralRe: Accessing Clipboard (On Server) from ASP.NET Page (C#) Pin
User 24629919-Sep-08 7:28
professionalUser 24629919-Sep-08 7:28 
GeneralRe: Accessing Clipboard (On Server) from ASP.NET Page (C#) Pin
led mike9-Sep-08 8:50
led mike9-Sep-08 8:50 
QuestionText search from database Pin
amit20119-Sep-08 5:21
amit20119-Sep-08 5:21 
AnswerRe: Text search from database Pin
Manas Bhardwaj9-Sep-08 5:27
professionalManas Bhardwaj9-Sep-08 5:27 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.