If you have any questions / ideas about Orc.LicenseManager, feel free to post them here.

Colin

@cuken

@GeertvanHorrik Do you have a quick start guide available to integrate this?

Geert van Horrik

@GeertvanHorrik

Hi Colin, not really.

Colin

@cuken

I'm going through the code and trying to figure out where to even start )

:)*

Geert van Horrik

@GeertvanHorrik

I know, do you want server or client?

server is already there in the example, etc

so if you want to check for a license on your client, you need:

at startup, call this code:

if (!await _simpleLicenseService.Validate(License.ApplicationId, "My Product", "/MyProduct;component/Resources/Images/logo_0128.png", "In order to use this software, a license is required.")())
{
// License is not valid, exit software
}

Colin

@cuken

Both, I have a simple implemntation of Rhino Licensing, but I didn't see any easy way to integrate hardware locking. So I stubmled on your project and looking at what it would take to get it to work

There you see how to create a private and public key and generate a license

Colin

@cuken

Does the server example provided have the ability to generate a license?

Geert van Horrik

@GeertvanHorrik

yep

we built our own server based on that example

Colin

@cuken

okay I'll spend some time digging into it there's a lot going on :)

Geert van Horrik

@GeertvanHorrik

Yes, it's a bit of a complex solution, but since it's working for us we don't spend a lot of time improving the getting started guide (too much on our plate already)

If you have any questions, just ping me here

Colin

@cuken

Have you guys integrated payment solutions to trigger creation events?

Like a paypal purchase

Geert van Horrik

@GeertvanHorrik

No, because we don't need that (we create licenses manually). But it would be fairly easy (since there is a LicenseGeneratorService that you can call from your paypal callback url)

Colin

@cuken

Ok thanks for your time! I'll ping you if I have any questions

Colin

@cuken

@GeertvanHorrik Finally had some time to test it, when I try to launch the server in debug, it's throwing an exception on context.Database.CreateIfNotExists();

An exception of type 'System.Data.SqlClient.SqlException' occurred in EntityFramework.SqlServer.dll but was not handled in user code
Additional information: A network-related or instance-specific error occurred while establishing a connection to SQL Server. The server was not found or was not accessible. Verify thatthe instance nameis correct andthat SQL

Unless I'm reading this wrong , I see the AspNetUsers table but it's being generated blank

Colin

@cuken

I don't think I can hardcode a user inside the db because it uses the password hash

Colin

@cuken

I think I'm close @GeertvanHorrik was able to hack a user in, but not able to apply rolls to him

Geert van Horrik

@GeertvanHorrik

@cuken do you get an exception or..?

Zenki1201

@Zenki1201

Hi sir, how to get a user account ?

Geert van Horrik

@GeertvanHorrik

@Zenki1201 In theory you don't need user accounts. You only have to create licenses (so basically you need something that you can use to identify a user if you want). Generating the licenses on some sort of server is the best approach.

samirem

@samirem

Hi! I'm looking into the Orc.LicenseManager.Server.Website.NET45 project at the moment. I'm a real beginner in asp.net/sql server and just got the database thing to work. However, when I launch the website, I only get to the login page where I am asked to enter a user name and a password. Can I find these somewhere?

@zSakuraEvilz The database initializer that seeds the Admin user is executed in the action Reset() of the HomeController so you will need to visit the Url "/Home/Reset" while the project is running in Debug mode.