createPKCS10() Failing when running on ASP.Net

Z

Zen

Hello,

I've come across on something very strange. I've written a function in
C# that creates a digital certificate and it works perfectly. The cert
is created and returned.

However, when I try to use the same function in ASP.Net 2.0, the same
piece of code fails. The strange thing is, it will only work if the
account used to run the ASP service is logged in on the IIS Server
either via remote session or at the console. Otherwise, the code will
fail when it tries to call createPKCS10() and returns the error: "The
system cannot find the file specified. (Exception from HRESULT:
0x80070002)"

The IIS Server is 6.0 on a Win2003 Server and ASP.net version is
2.0.50727

The ASP.net C# code compiles with no errors, and all the necessary
references are there.
Don't think it's a progam issue because if the account that runs the
ASP service is logged in, it works. Seems to be it's trying to find the
XEnroll.dll and can not find it.

Any help will be appreciated.

Thanks.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,755
Messages
2,569,536
Members
45,009
Latest member
GidgetGamb

Latest Threads

Top