License not valid after recycling the AppPool in IIS

License not valid after recycling the AppPool in IIS

Postby nunni555 » Fri 05 Apr 2013 07:35

We have a Web-Application which is hosting a wcf-service. The logic is inside a referenced DLL. In visual studio the license-manager tells the license is valid and an embedded resource. After deploying on the server where devart is not installed the service is working but after the recycling of the application-pool in IIS we get the exception "License not valid due to the problems with dotConnect for Oracle installation".
The fault-exception we get:
<s:Body>
<s:Fault>
<faultcode xmlns:a="http://schemas.microsoft.com/net/2005/12/windowscommunicationfoundation/dispatcher">a:InternalServiceFault</faultcode>
<faultstring xml:lang="de-DE">Fehler beim zugrunde liegenden Anbieter auf Open.</faultstring>
<detail>
<ExceptionDetail xmlns="http://schemas.datacontract.org/2004/07/System.ServiceModel" xmlns:i="http://www.w3.org/2001/XMLSchema-instance">
<HelpLink i:nil="true"/>
<InnerException>
<HelpLink i:nil="true"/>
<InnerException i:nil="true"/>
<Message>License not valid due to the problems with dotConnect for Oracle installation.</Message>
<StackTrace>bei Devart.Data.Oracle.OracleConnection.Open()
bei System.Data.EntityClient.EntityConnection.OpenStoreConnectionIf(Boolean openCondition, DbConnection storeConnectionToOpen, DbConnection originalConnection, String exceptionCode, String attemptedOperation, Boolean&amp; closeStoreConnectionOnFailure)</StackTrace>
<Type>Devart.Data.Oracle.OracleException</Type>
</InnerException>
<Message>Fehler beim zugrunde liegenden Anbieter auf Open.</Message>
<StackTrace><![CDATA[bei System.Data.EntityClient.EntityConnection.OpenStoreConnectionIf(Boolean openCondition, DbConnection storeConnectionToOpen, DbConnection originalConnection, String exceptionCode, String attemptedOperation, Boolean& closeStoreConnectionOnFailure)
bei System.Data.EntityClient.EntityConnection.Open()
bei System.Data.Objects.ObjectContext.EnsureConnection()
bei System.Data.Objects.ObjectQuery`1.GetResults(Nullable`1 forMergeOption)
bei System.Data.Objects.ObjectQuery`1.System.Collections.Generic.IEnumerable<T>.GetEnumerator()
bei GDVDL.Service.Bearbeitungsunterstuetzung.Implementation.DatabaseAccess.ContextHelpReader.Execute(BearbeitungsunterstuetzungSCModel& bearbeitungsunterstuetzungScModel)
bei GDVDL.Service.Bearbeitungsunterstuetzung.Implementation.Bearbeitungsunterstuetzung.HilfetextLesen(HilfetextLesenServiceRequest hilfeTextLesenServiceRequest)
bei SyncInvokeHilfetextLesen(Object , Object[] , Object[] )
bei System.ServiceModel.Dispatcher.SyncMethodInvoker.Invoke(Object instance, Object[] inputs, Object[]& outputs)
bei System.ServiceModel.Dispatcher.DispatchOperationRuntime.InvokeBegin(MessageRpc& rpc)
bei System.ServiceModel.Dispatcher.ImmutableDispatchRuntime.ProcessMessage5(MessageRpc& rpc)
bei System.ServiceModel.Dispatcher.ImmutableDispatchRuntime.ProcessMessage31(MessageRpc& rpc)
bei System.ServiceModel.Dispatcher.MessageRpc.Process(Boolean isOperationContextSet)]]></StackTrace>
<Type>System.Data.EntityException</Type>
</ExceptionDetail>
</detail>
</s:Fault>
</s:Body>


The application is only working again after changes inside the deployment-folder.
Thanks for help.
nunni555
 
Posts: 2
Joined: Thu 04 Apr 2013 12:40

Re: License not valid after recycling the AppPool in IIS

Postby Pinturiccio » Fri 05 Apr 2013 14:34

The "License not valid due to the problems with dotConnect for Oracle installation." exception occurs when you have some issue during installation on your development computer and the license resource is built incorrectly. To fix the license issue, do the following:
1. Uninstall dotConnect for Oracle;
2. Remove all Devart.* and policy.*.Devart.* files from the GAC;
3. Clear the Program Files\Devart\dotConnect and Program Files\Common Files\Devart\dotConnect folders;
4. Install dotConnect for Oracle;
5. Rebuild the license resource;
6. Delete all files from the bin and obj folders and rebuild the project.

If this doesn't help, please create and send us a small test project and describe the steps for reproducing the issue.
Pinturiccio
Devart Team
 
Posts: 1982
Joined: Wed 02 Nov 2011 09:44

Re: License not valid after recycling the AppPool in IIS

Postby nunni555 » Fri 05 Apr 2013 14:51

I already uninstalled DevArt for Oracle and this doesn't fix the issue. The problem is only occuring after the AppPool is recycled. All other requests before don't have a problem connecting to the database.
nunni555
 
Posts: 2
Joined: Thu 04 Apr 2013 12:40

Re: License not valid after recycling the AppPool in IIS

Postby Pinturiccio » Mon 08 Apr 2013 15:09

We couldn't reproduce the issue. In our environment everything works fine. Please create and send us a small test project for reproducing the issue.

Please also specify the settings you use for Application Pool.
Pinturiccio
Devart Team
 
Posts: 1982
Joined: Wed 02 Nov 2011 09:44


Return to dotConnect for Oracle