Have you tried
Path.Combine(Path.GetDirectoryName(Assembly.GetExecutingAssembly().Location),
"hibernate.cfg.xml");?

On Apr 19, 11:42 am, mynkow <[email protected]> wrote:
> Hi
>
> I have strange problem. When I call
>
> nhConfigFilePath = "hibernate.cfg.xml";
> configuration.Configure(nhConfigFilePath);
>
> I got this:
> *Could not find file 'C:\Program Files (x86)\Common Files\Microsoft
> Shared\DevServer\10.0\hibernate.cfg.xml'.*
> *
> *
> Do you have any idea why? When I pass the full path it is working but it is
> not a solution.
>
> Best regards

-- 
You received this message because you are subscribed to the Google Groups 
"nhusers" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/nhusers?hl=en.

Reply via email to