CustomAction project calling webservices - Advanced Installer Community
milind1
Posts: 3
Joined: Fri Jul 03, 2015 9:28 am

CustomAction project calling webservices

Hi,

I have make custom action project in C#. and make installer

Calling web service in Custom Project

string productVersion = session["ProductVersion"].ToString();

string ProductName = session["ProductName"].ToString();

CheckKeyValid.LicenseInformation.LicenseInformation li = new CheckKeyValid.LicenseInformation.LicenseInformation();

CheckKeyValid.LicenseInformation.ALM_LicenseDetails licenseDetail = li.GetLicenceDetailByKey(productKey); //Line is not executed

Please reply ASAP

Thanks in Advance
Milind Nikam
Dan
Posts: 4530
Joined: Wed Apr 24, 2013 3:51 pm

Re: CustomAction project calling webservices

Hello Milind and welcome to Advanced Installer forums,

I'm not sure why the related line is not executed. In this case, you can try to debug the custom action. Please take a look on the Debug C# custom actions video which may be useful to you.

If you want to add the licensing support to your application, have you noticed our predefined support for licensing? For details, please see the How-To for using the Advanced Licensing features.

Best regards,
Dan
Dan Ghiorghita - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
milind1
Posts: 3
Joined: Fri Jul 03, 2015 9:28 am

Re: CustomAction project calling webservices

Hi,

I am not able to debugging on client server there are no option to install studio any way.

When i am trying in my environment it is working fine. I am also trying on single PC with internet dongle it is working.

I am also trying Messagebox before and after code. but that not capture anything.

Please suggest which are possibility available to debug.

Is it related to firewall to block service?

Please reply ASAP.

Thanks in Advance
Milind Nikam
Dan
Posts: 4530
Joined: Wed Apr 24, 2013 3:51 pm

Re: CustomAction project calling webservices

Hi Milind,

Maybe you can skip the custom action execution and perform the changes manually. By the way, is there any useful message in the Windows Event Log?

Also, can you please try to create a verbose log of the installation process and log as many information as possible; you can also try to add the related statement in a try-catch block to get more details and log the error message. e.g.

Code: Select all

try
{
      CheckKeyValid.LicenseInformation.ALM_LicenseDetails licenseDetail = li.GetLicenceDetailByKey(productKey); //Line is not executed
}
 catch (Exception e)
{
      session.Log(e.Message);
}
Best regards,
Dan
Dan Ghiorghita - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube

Return to “Common Problems”