<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0">
	<channel>
		<title><![CDATA[Latest posts for the topic "ORM Code on ASP.NET and SQL Server 2005"]]></title>
		<link>http://forums.visual-paradigm.com/posts/33.html</link>
		<description><![CDATA[Latest messages posted in the topic "ORM Code on ASP.NET and SQL Server 2005"]]></description>
		<generator>JForum - http://www.jforum.net</generator>
			<item>
				<title>ORM Code on ASP.NET and SQL Server 2005</title>
				<description><![CDATA[ Hi, I am using ORM code in an ASP.NET application (it's a web service) and my code runs perfectly in a console application but crashs in the Web Service.<br> The message is <br> <br> <table class="code-table-simple" align="center">
		<tr> 
		<td><span class="genmed"><b>Code:</b></span></td>
		</tr>
		</table>
		<table class="code-table" align="center">
		<tr>
		<td class="code">
		<pre>
 NHibernate.HibernateException: The dialect was not set. Set the property hibernate.dialect.
    on NHibernate.Dialect.Dialect.GetDialect&#40;&#41;
    on NHibernate.Dialect.Dialect.GetDialect&#40;IDictionary props&#41;
    on Orm.PersistentManager.ResolveNativeIDGenerators&#40;&#41;
    on Orm.PersistentManager..ctor&#40;DotNetConnectionSetting connectionSetting, SessionType sessionType&#41;
    on Persistencia.EvalModelSystemOrmPersistentManager..ctor&#40;&#41;
    on Persistencia.EvalModelSystemOrmPersistentManager.Instance&#40;&#41;
    on Persistencia.ModeloFactory.LoadModeloByORMID&#40;Int32 ID&#41;
    on EvalModelService.CrearModeloPrueba&#40;&#41; en d:\Visual Studio 2005\Projects\EvalModelProject\EvalModelWebService\App_Code\EvalModelService.cs:línea 63
 </pre></td>
		</tr>
		</table><br> <br> and the simple code:<br> <br>  <table class="code-table-simple" align="center">
		<tr> 
		<td><span class="genmed"><b>Code:</b></span></td>
		</tr>
		</table>
		<table class="code-table" align="center">
		<tr>
		<td class="code">
		<pre>       try
         {
             bool aux = modelo.Save&#40;&#41;;            
         }
         catch &#40;Exception ex&#41;
         {
             ex.ToString&#40;&#41;;
         }</pre></td>
		</tr>
		</table>]]></description>
				<guid isPermaLink="true">http://forums.visual-paradigm.com/posts/2091#16670.html</guid>
				<link>http://forums.visual-paradigm.com/posts/2091#16670.html</link>
				<pubDate><![CDATA[Tue, 17 Apr 2007 01:12:46]]></pubDate>
				<author><![CDATA[ Eduardo]]></author>
			</item>
			<item>
				<title>Re:ORM Code on ASP.NET and SQL Server 2005</title>
				<description><![CDATA[ Hello Eduardo,<br> <br> To solve the problem, please embed hibernate.cfg.xml in the assembly.<br> <br> Best regards,<br> Jick]]></description>
				<guid isPermaLink="true">http://forums.visual-paradigm.com/posts/2091#16677.html</guid>
				<link>http://forums.visual-paradigm.com/posts/2091#16677.html</link>
				<pubDate><![CDATA[Tue, 17 Apr 2007 13:20:36]]></pubDate>
				<author><![CDATA[ Jick]]></author>
			</item>
			<item>
				<title>Re:ORM Code on ASP.NET and SQL Server 2005</title>
				<description><![CDATA[ THANNNKKKKK YOUUUUUUUUUUU!!!!!<br> The problem is solved!!   :D <br> <br> Thanks!]]></description>
				<guid isPermaLink="true">http://forums.visual-paradigm.com/posts/2091#16685.html</guid>
				<link>http://forums.visual-paradigm.com/posts/2091#16685.html</link>
				<pubDate><![CDATA[Tue, 17 Apr 2007 17:16:25]]></pubDate>
				<author><![CDATA[ Eduardo]]></author>
			</item>
			<item>
				<title>Re:ORM Code on ASP.NET and SQL Server 2005</title>
				<description><![CDATA[ Please could you help me with a similar problem. <br> <br> I have a file called NHibernate.xml which I assume is the cfg file to which you refer. How do I ' embed hibernate.cfg.xml in the assembly'.<br> <br> <br> Currently I get I get........<br> <br> Server Error in '/VSC' Application.<br> --------------------------------------------------------------------------------<br> <br> The dialect was not set. Set the property hibernate.dialect. <br> Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code. <br> <br> Exception Details: NHibernate.HibernateException: The dialect was not set. Set the property hibernate.dialect.<br> <br> Source Error: <br> <br> etc  etc................<br>  <br> ]]></description>
				<guid isPermaLink="true">http://forums.visual-paradigm.com/posts/2091#17013.html</guid>
				<link>http://forums.visual-paradigm.com/posts/2091#17013.html</link>
				<pubDate><![CDATA[Tue, 1 May 2007 01:10:57]]></pubDate>
				<author><![CDATA[ Anonymous]]></author>
			</item>
			<item>
				<title>Re:ORM Code on ASP.NET and SQL Server 2005</title>
				<description><![CDATA[ OK!!<br> <br> 1º) Add an existing item... the file "hibernate.cfg.xml" to your project. <br> <br> 2º) Click right button over the item "hibernate.cfg.xml" in the tree project.<br> <br> 3º) Select "Properties"<br> <br> 4º) And select "Embeded resource" in "Action generation".<br> <br> 5º) You can compile your project and add the .dll file to another project.<br> <br> (Sorry for my english)]]></description>
				<guid isPermaLink="true">http://forums.visual-paradigm.com/posts/2091#17014.html</guid>
				<link>http://forums.visual-paradigm.com/posts/2091#17014.html</link>
				<pubDate><![CDATA[Tue, 1 May 2007 01:33:20]]></pubDate>
				<author><![CDATA[ Eduardo]]></author>
			</item>
	</channel>
</rss>