CryptographicException with ASP.NET 2.0

This forum is now locked, since Gold Support is no longer offered.

Moderator: SourceGear

Locked
realtytrac
Posts: 34
Joined: Wed Jun 15, 2005 2:07 pm

CryptographicException with ASP.NET 2.0

Post by realtytrac » Tue Apr 18, 2006 3:36 pm

I just recently switched the app that interfaces with Vault to ASP.NET 2.0.

This caused a strange crash though.

_myClient.Init(VaultClientNetLib.VaultConnection.AccessLevelType.Client,LocalStoreBasePath);
_myClient.Login(Host, Username, Password);

The login line above threw the following exception:

System.Security.Cryptography.CryptographicException: The system cannot find the file specified.

This still works in the ASP.NET 1.1 code.

Any ideas. Thanks in advance

dan
Posts: 2448
Joined: Wed Dec 17, 2003 5:03 pm
Location: SourceGear
Contact:

Post by dan » Wed Apr 19, 2006 8:11 am

This is just a guess, but follow the steps in this KB article and see whether that helps at all:

http://support.sourcegear.com/viewtopic.php?t=231

realtytrac
Posts: 34
Joined: Wed Jun 15, 2005 2:07 pm

Post by realtytrac » Wed Apr 19, 2006 11:06 am

That didn't fix my problem. I am using windows authentication and impersonation, do you think that would cause the problem given that this is being developed in ASP.NET 2.0's "virtual IIS" mode?

dan
Posts: 2448
Joined: Wed Dec 17, 2003 5:03 pm
Location: SourceGear
Contact:

Post by dan » Wed Apr 19, 2006 12:13 pm

Does your Vault GUI client work properly on the same machine?

One thing you could try is to turn on Vault client logging. See the knowledge base for how to set that up. You should be able to create a [yourapp].exe.config file that generates a log, and it might have better info about what is happening.

Locked