i’m trying to create a small intranet. For this I have a webserver on my local pc. The root of this website will be a dashboard and it will contain login/register functionality (default ASP.NET Membership).
http://localhost http://localhost/Account
The rest of the intranet will consist of sub-applications like:
http://localhost/ApplicationName
The root website, and most of the sub-applications will be requiring authentication of the user for which I will be utilizing the default ASP.NET Membership provider.
All the projects (root and sub) are seperate projects in Visual Studio,
and every project has it’s own
WebSetup project for deployment.
1.) How can I use ASP.NET Membership in sub-applications?
Furthermore, most of the applications (root and sub) will be using a 3rd party library (data framework).
2.) How can I reference the library in the root-project and ‘use’ the referenced library in sub-applications?
Thank you for any suggestions!
Create your common code in class library projects that can be used from multiple web projects. As for the membership provider, I think you’ll need to store the membership data in an external SQL instance (which could be on the same server) and then simply use the same connection strings to access it in each project.