Siva
Siva

Reputation: 11

NHibernate mapping in Asp.Net using MySql

I'm new to NHibernate. Actually I'm trying to save the values ffrom two text boxes into MySql Database in asp.Net page. I that I got "Resource not found: WebApplication1.Sample.hbm.xml" error. But I can't fix this error. Can anyone help me to fix this one?

Upvotes: 1

Views: 575

Answers (1)

cmsjr
cmsjr

Reputation: 59245

That sounds like the error you get if you do not set your hbm's Build Action to Embedded Resource.

Step by step for build action

EDIT References to set to Copy Local = True

  • Castle.Core
  • Castle.DynamicProxy2
  • Iesi.Collections
  • NHibernate
  • NHibernate.ByteCode.Castle

Upvotes: 3

Related Questions