How to configure Nhibernate in ASP.Net - asp.net

I am a beginner in ASP.Net. I am starting a new project using ASP.Net and Nhibernate. I figured out that the hibernate.cfg.xml would not do the trick for the configuration of Nhibernate. I googled for on how to configure NHibernate in ASP.Net and this is simplest that I got but I can't get it to work. I also downloaded some projects using ASP.Net and Nhibernate but can't seem to understand how it is configured. And so I am here asking for your opinion/knowledge.
How do you configure HHibernate in an ASP.Net project? or can you please provide a link to
tutorial on how to do it.
Thank you in advance.

Here are some resources that helped me when I first did an ASP.NET project with nHibernate.
Intro and Configuration
Architecture
Best Practices
Good luck and great choice!

If you are really starting the most simple way to start is
trunk\nhibernate\src\NHibernate.Example.Web
or
branch\2.1.x\nhibernate\src\NHibernate.Example.Web
link: http://code.google.com/p/nhprofile/downloads/list

Related

ASP.net Identity Tutorial

I was looking for a good tutorial that goes step by step to show how to implement the .net identity into the mvc framework and was unable to find any good tutorials, so could someone recommend me a good tutorial that will help me get started with identity?
Here are a few tutorials on Identity:
https://learn.microsoft.com/en-us/azure/app-service-web/web-sites-dotnet-deploy-aspnet-mvc-app-membership-oauth-sql-database
how to implement ASP.NET Identity to an empty MVC project
https://www.codeproject.com/Articles/762428/ASP-NET-MVC-and-Identity-Understanding-the-Basics
http://www.codeguru.com/csharp/.net/net_asp/mvc/securing-asp.net-mvc-applications-with-asp.net-identity.htm
Here you go mate, hope it helps out:
https://www.pluralsight.com/guides/microsoft-net/configuring-asp-net-identity
http://benfoster.io/blog/aspnet-identity-stripped-bare-mvc-part-1
http://benfoster.io/blog/aspnet-identity-stripped-bare-mvc-part-2

What's the best deployment strategy for ASP.NET

I work for an ISV and we have a vanilla ASP.NET (no mvc) web application which we deploy to our customer sites.
We're currently doing it via xcopy and IIS manually.
What's the best technology to use to deploy it? ClickOnce? WebDeploy? Something else?
Tips appreciated.
WebDeploy FTW.
Check out this excellent article/video from Scott Hanselman.
Handles config transformations as well as the painful task of database deployments.
I just implemented Web Deploy this afternoon by following this article by Scott Gu and I've found it extremely useful.

ASP.NET and Oracle

I have found this web site really helpful since everybody helps here with the best answers. Now, i need a suggestion. I hope you would help me as before.
I need to develop an ASP.NET application with oracle database. Database server is physically separated from the application server. Now my question is which technology is preferable for this task? I mean ASP.NET MVC or General ASP or something... How do i use database technology?
I have studied ASP.NET MVC and found it difficult since it is in the primitive stage and i am not a professional programmer to make the best use of it. So please help me to proceed.
Thank you all.
Please see Connecting to an Oracle Database Using ASP.NET—A Step-by-Step Tutorial:
There are numerous articles on .NET
and ASP.NET. However, recently I had
to develop an ASP.NET application
connecting to an Oracle database and,
to make everything work together, I
had to solve several problems. This
article will show you the step-by-step
process to develop an ASP.NET client
connecting to an Oracle database
server.
Oracle has released it's own implementation of an ADO.NET Data Provider.
There are plenty of resources there, including some tutorials which should hopefully get you started.

Forum for ASP.NET MVC site

I am buidling a new site for an organisation. I am using ASP.NET MVC. The previous site was PHP based and had a PHPBB forum. This forum opened in an IFrame, so no integration.
We want a site with all functionality integrated. I thought, I probably have to write a forum myself. However there are other ASP.NET open source forums out there just like phpbb.
Is there a way to integrate third-party forums cleanly into my site? Or am I better of coding it myself?
Check my answer to this question, for an ASP .NET MVC based forum:
Who knows a good free open source forum in C#?
If you want an ASP .NET Webforms forum I can recommend you YetAnotherForum.NET.
ASP.NET MVC is still in beta stage and not much free options are available on the .NET side of things.
It's actually a very easy task if you already have experience writing MVC app.
Not counting those that haven't got some stable releases out, most free options such as YAF are written to run as a standalone applications on classic ASP.NET webforms framework and will often requires that you use a certain fixed database platform and thus will require work to patch them so they integrate nicely with the MVC framework.
So I suggest you code it up yourself. Especially if you just want an integrated forum that don't need to have as much features as phpbb.
Or better yet, start an open source project!
The following post has numerous options: ASP.NET MVC Forum Software?

Quick Ramp-up for ASP.NET

I am an experienced .NET applications developer. All of my development experience has been with desktop apps with WinForms/WPF.
The last time I worked with ASP was back in 1998. A lot has changed with ASP.NET, and I realize this. I am wondering what is the best resource for ramping up quickly with ASP.NET and WebForms (not MVC). Any Suggestions?
I always recommend this site:
ASP .NET Learn
It's the official ASP .NET site, there you'll find really good videos that will help you to get up developing quickly in ASP .NET
The ASP.NET Page Life Cycle, must you know, padawan, if seek to master the web, you do
Personally I find that the best way is to start digging in, find either an existing project to enhance or start out building something. The best way for me anyway is to have a problem to solve, by doing this it makes life a lot easier. At least that is the way I learn new technologies.
There are many good reference/tutorial sites out there as well that could help you out a lot, such as 4GuysFromRolla.com.
HTML/CSS Tutorials
ASP.NET Quickstart Tutorial
Nice series of videos
.NET 3.5 Enhancements Training Kit RTM
ASP.NET Learn already mentioned.

Resources