We’re moving our forums to a new platform.

You can still browse and search existing topics, but you can no longer create new topics or post replies.

For questions, technical issues, or feature requests, please don’t hesitate to contact our support team at support@advancedinstaller.com.

Thank you for your understanding!

appfuncenter
Posts: 2
Joined: Thu Dec 17, 2015 2:55 pm

Asp.net web application licensing

Hi,
is there a good tutorial for licensing asp.net web application,

all what i found is how to license windows VB application.

thank you
Daniel
Posts: 8283
Joined: Mon Apr 02, 2012 1:11 pm
Contact: Website

Re: Asp.net web application licensing

Hello and welcome to our forums,

To do so you should configure your installation project in the same way as explained in our "Integrate licensing feature in VB projects" tutorial. Only the calls of our trial functions from your .Net web app should be different.

Also, you can take a look on our "[Trial&Registration DLL]Use the trial DLL in a service" thread which debates a similar topic.

All the best,
Daniel
Daniel Radu - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
appfuncenter
Posts: 2
Joined: Thu Dec 17, 2015 2:55 pm

Re: Asp.net web application licensing

hi, i tried to follow the solotions in the links but i could'nt solve my problem, i can't add an anual license system to my asp.net application yet.

can you give more help please?
Daniel
Posts: 8283
Joined: Mon Apr 02, 2012 1:11 pm
Contact: Website

Re: Asp.net web application licensing

Hello,

I apologize for my delayed reply but I had some days off here.

Can you please let us know what issue do you encounter? Maybe a more detailed description of the problem you are currently encountering will give us a clear overview of your scenario.

All the best,
Daniel
Daniel Radu - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
s.sparrow
Posts: 11
Joined: Sun Jul 31, 2016 8:41 am

Asp.net web application licensing

hi,
I am using Advanced Installer 13.1 to build a Asp.net web application . but when i want to register my app using 'DisplayRegistration' method ,
trial wizard page doesn't show .
how could i solve this problem ?
Daniel
Posts: 8283
Joined: Mon Apr 02, 2012 1:11 pm
Contact: Website

Re: Asp.net web application licensing

Hello and welcome to our forums,

I'm not sure why this happens. Did you install the "trial.dll" using the built setup (with Advanced Installer) before you call the "DisplayRegistrationStr" function from our native "trial.dll" module?

Also, did you first call the "ReadSettingsRetStr" function before the "DisplayRegistrationStr" call?

All the best,
Daniel
Daniel Radu - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
s.sparrow
Posts: 11
Joined: Sun Jul 31, 2016 8:41 am

Re: Asp.net web application licensing

Hi,
Thanks for the reply.
yes ,the "trial.dll" was successfully installed (with Advanced Installer) .
when i set display frequency percent to 0 , i can do somethings like get "TrialLeft" using "GetPropertyValue" or i can call "ReadSettingsRetStr" function and it works , but when i want to register , the "trial wizard page" doesn't show using "DisplayRegistrationStr" function.
when i set display frequency percent to 100 and also select "Show the trial message at first run" , my web site doesn't run at all.
It seems my website cannot show "trial wizard page"
Daniel
Posts: 8283
Joined: Mon Apr 02, 2012 1:11 pm
Contact: Website

Re: Asp.net web application licensing

Hello,

I've further debated your licensing scenario with our development team and it seems this happens because a web application cannot have UI components. When the "DisplayRegistrationStr" function is called our "trial.dll" module will display a registration UI dialog. However, displaying UI from a web application it seems it is not possible.

As a workaround you can either try to silently register the application calling the "RegisterStr" function instead of the "DisplayRegistrationStr" function, or you can create a third party app with UI which will register an identical trial module as your web app. Just have a look on the workaround exposed in our "how to add trial support for an console application" thread.

All the best,
Daniel
Daniel Radu - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
s.sparrow
Posts: 11
Joined: Sun Jul 31, 2016 8:41 am

Re: Asp.net web application licensing

Hi,
Thank you for your attention.
I tried this solution "how to add trial support for an console application"
but It's impossible to change the "library key" , there is no ability to delete or paste this field .
how I can use identical "library key" for the two trials ?
and Should I use the identical "Trial ID" for both too ?
s.sparrow
Posts: 11
Joined: Sun Jul 31, 2016 8:41 am

Re: Asp.net web application licensing

Please answer me, I am waiting :(
Daniel
Posts: 8283
Joined: Mon Apr 02, 2012 1:11 pm
Contact: Website

Re: Asp.net web application licensing

Hello,

Indeed, to make sure you are using the same library key for both of your added trials you will have to manually edit the AIP content. Just open the AIP file in a text editor and search for the following element

<COMPONENT cid="caphyon.advinst.msicomp.TrialwareComponent">

Then just make sure the "TrialwareName="Trial"" and "TrialwareName="Trial_1"" have the same passwords.

Also, yes you should use the same Trial IDs.

Let us know if this helped.

All the best,
Daniel
Daniel Radu - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
s.sparrow
Posts: 11
Joined: Sun Jul 31, 2016 8:41 am

Re: Asp.net web application licensing

hi,
it was very helpful , thank you so much .
now i have another problem :?
I use 32-bit library for both trial , my Web site runs well .
but in my third party app(win form) when i want to call trial.dll , i face an error as :
"An attempt was made to load a program with an incorrect format. (Exception from HRESULT: 0x8007000B)"
my app Platform : Any Cpu
if i select "Prefer 32-bit" i face an error as :
"Attempted to read or write protected memory. This is often an indication that other memory is corrupt."
s.sparrow
Posts: 11
Joined: Sun Jul 31, 2016 8:41 am

Re: Asp.net web application licensing

Hi,
my problem was solved , it was a human mistake .
Thank you for all your help .
Daniel
Posts: 8283
Joined: Mon Apr 02, 2012 1:11 pm
Contact: Website

Re: Asp.net web application licensing

You're always welcome. I'm glad you solved this.

All the best,
Daniel
Daniel Radu - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube

Return to “Building Installers”