.Net developer question..

.Net developer question..

Author
Discussion

nekrum

Original Poster:

573 posts

279 months

Thursday 19th April 2007
quotequote all
Hi

We've producted a product as a DLL which we're looking to sell commercially which is developed using .Net. The question is we want the routines to be able to be used on php / linux websites as well as .Net sites, will this work as our DLL is a .Net assembly?!..

Thanks in advance..

russ_a

4,601 posts

213 months

Thursday 19th April 2007
quotequote all
no it wont work on linux.

There is a linux compiler called mono that may enable your .dll to work, but don't hold your breath.

If you need to tp be cross platform then java is the one to use

slapmatt

1,132 posts

224 months

Thursday 19th April 2007
quotequote all
It depends how you expose your code. If you want to distribute your dll, then you will run into problems with people who have sites running on Linux and built using php.

Your best bet would be to expose your code as a Web service (or API) which can then be consumed by anyone, regardless of the technology their site is built upon.

nekrum

Original Poster:

573 posts

279 months

Thursday 19th April 2007
quotequote all
slapmatt said:
It depends how you expose your code. If you want to distribute your dll, then you will run into problems with people who have sites running on Linux and built using php.

Your best bet would be to expose your code as a Web service (or API) which can then be consumed by anyone, regardless of the technology their site is built upon.


We are looking at web services but would like a method of tracking usage through licencing. Do you know if there is a way to track the web site that the web service is being requested from?

slapmatt

1,132 posts

224 months

Thursday 19th April 2007
quotequote all
You can authenticate a Web service just like you would with a Web site - so anyone who wants to comsume your Web service will have to buy a licence (or whatever) and you will issue them with username/password that they must use.

nekrum

Original Poster:

573 posts

279 months

Thursday 19th April 2007
quotequote all
slapmatt said:
You can authenticate a Web service just like you would with a Web site - so anyone who wants to comsume your Web service will have to buy a licence (or whatever) and you will issue them with username/password that they must use.


Thanks slapmatt

Is there any method from stopping them from using one licence for multiple sites. Our business model is to charge per site/domain..

GnuBee

1,273 posts

217 months

Thursday 19th April 2007
quotequote all
Per what kind of site? (Web site, AD site, site based on IP etc).

If you look at the WebService class you will see that you have access to a HttpRequest instance which surfaces properties/methods that allow you to determine various characteristics of the source of the incoming request which may allow you to obtain the granularity you need.

nekrum

Original Poster:

573 posts

279 months

Thursday 19th April 2007
quotequote all
GnuBee said:
Per what kind of site? (Web site, AD site, site based on IP etc).

If you look at the WebService class you will see that you have access to a HttpRequest instance which surfaces properties/methods that allow you to determine various characteristics of the source of the incoming request which may allow you to obtain the granularity you need.


Thanks for that - basically they would generally be web sites which would be on shared hosting so we would like if possible to tie a licence to a domain name and varify them as the service is being requested..

SlidingSideways

1,345 posts

234 months

Friday 20th April 2007
quotequote all
nekrum said:
Is there any method from stopping them from using one licence for multiple sites. Our business model is to charge per site/domain..


There's no way to stop them doing that with a DLL either. Once they have a copy, there's nothing other than morals stopping them copying it onto multiple machines/domains.