Running NCryptoki under IIS 7.5 .NET 4.0

5/26/2011 11:46:34 PM
Gravatar
Total Posts 6

Running NCryptoki under IIS 7.5 .NET 4.0

Hi Ugo,

I am running NCryptoki under a web service in IIS 7.5 .NET 4.0.  When the thread tries to create a new Cryptoki("filelocation"), it enters the constructor but never returns.  When I run the same code in a WPF application it is able to create the NCryptoki object just fine.  In the web.config I am using the legacy V2 setting: 

<configuration>
  <configSections>
    <section name="CryptonConfiguration" type="Yellowstone.Crypton.Core.CryptonConfiguration"/>
  </configSections>
  <startup useLegacyV2RuntimeActivationPolicy="true">
    <supportedRuntime version="v4.0"/>
  </startup>

Also the machine is running in 64-bit and the program is using the 64-bit assemblies.  

If I try to run the web service using the cassini/visual studio development studio I get the following error:

Could not load file or assembly 'NCryptokiMngd' or one of its dependencies. An attempt was made to load a program with an incorrect format.

In IIS 7.5 do I need to set something specifically for NCyrptoki to function correctly?

Thanks,

Jason Bogdanski

5/27/2011 12:03:59 AM
Gravatar
Total Posts 6

Re: Running NCryptoki under IIS 7.5 .NET 4.0

Also I'm still using the trail edition.  I'm wondering if this is causing the issue too.

Thanks,

Jason

5/27/2011 3:46:56 PM
Gravatar
Total Posts 300
Ugo Chirico http://www.ugochirico.com

Re: Running NCryptoki under IIS 7.5 .NET 4.0

Yes, exactly.

When you use NCryptoki without the license, a massagebox appears. When you run it in IIS that messagebox appears in the system desktop that you cannot see (so you cannot click on OK), because IIS works as System in the System's desktop,

If you'll buy a license the messagebox doesn't appear and IIS will not hang.

 

1/17/2013 2:50:32 PM
Gravatar
Total Posts 3

Re: Running NCryptoki under IIS 7.5 .NET 4.0

Hi Ice3838

 

Did you ever get to the bottom of this.

 

I have the same issue, I have  a license.

 

Thanks

Surinder

1/17/2013 8:49:29 PM
Gravatar
Total Posts 6

Re: Running NCryptoki under IIS 7.5 .NET 4.0

Hi Surinder,

 

Mine was just the licensing issue.  It went away when I installed the license. 

 

Thanks,

 

Jason