Getting Exception in JchemBaseSearch: No license file found

User 73ad691ca3

26-10-2012 13:48:58

Dear Chemaxon Support Team,


We are implementing the Structure search functionalities Using Jchem for .Net API(version:JChem .NET API 5.10.3.437).


We have created a .NET WCF service and we are calling the Jchem Structrue search functionalities from this .NET WCF service.


The Jchem structure search is working properly if we run the WCF service in Visual studio development server(i.e., from visual studio).


But If we configure the .NET WCF service in local IIS web server and if we run the Jchem Structure search WCF service, It is giving the Exception as:


"No license file found. Product name: Structure Search License path: Please contact sales _at_ chemaxon.com to obtain the corresponding license. Students and academic researchers are entitled of free use through our Academic Package, for more information please visit: http://www.chemaxon.com/acpack_conditions.html Server stack trace: at System.ServiceModel.Channels.ServiceChannel.ThrowIfFaultUnderstood(Message reply, MessageFault fault, String action, MessageVersion version, FaultConverter faultConverter) at System.ServiceModel.Channels.ServiceChannel.HandleReply(ProxyOperationRuntime operation, ProxyRpc& rpc) at System.ServiceModel.Channels.ServiceChannel.Call(String action, Boolean oneway, ProxyOperationRuntime operation, Object[] ins, Object[] outs, TimeSpan timeout) at System.ServiceModel.Channels.ServiceChannelProxy.InvokeService(IMethodCallMessage methodCall, ProxyOperationRuntime operation) at System.ServiceModel.Channels.ServiceChannelProxy.Invoke(IMessage message) Exception rethrown at [0]: at System.Runtime.Remoting.Proxies.RealProxy.HandleReturnMessage(IMessage reqMsg, IMessage retMsg) at System.Runtime.Remoting.Proxies.RealProxy.PrivateInvoke(MessageData& msgData, Int32 type) at IStructureSearchService.GetData(Int32 value) at StructureSearchServiceClient.GetData(Int32 value)".


we are getting the above error in JchemBaseSearch WCF service, while we run the .NET WCF service from IIS server.


For your information, We have implemented the Standardizer, Exporter functionalities using JCHEM .NET API, in .NET WCF service; And we have configured the WCF service in IIS, these standardizer and Exporter are working properly without any error.


Please look into this error in 'JchemBaseSearch from .NET WCF service', and let us know how to solve this issue, ASAP.


Please find the attached sample code for your reference.


We have created a WCF service and we are calling the JCHEM structure search functionalities from this service.


Thanks & Regards,


D. Senthil kumar vijai.

ChemAxon eb65a25631

26-10-2012 14:58:24

Hi,


The problem seems to be, the IIS service is running under a differet user impersonation, than the user the license-file installed for.
In such cases you should explicitly provide a license file path the following way:
    chemaxon.license.LicenseHandler licenseHandler = chemaxon.license.LicenseHandler.getInstance();
    licenseHandler.setLicenseFile(licenseFilePath);


 


Regards,


Andras

User 73ad691ca3

29-10-2012 05:22:55

Dear Andras,


Thanks for your reply,


JchemBaseSearch is working under IIS as WCF service.


As you mentioned, We had explicitly provided the license file, and it is working fine.


Once again Thanks for your solution to execute JchemBaseSearch through IIS as WCF service.


We will get back to you, if we have any further queries on this. 


----------------


Thanks & Regards,


D. Senthil Kumar Vijai.