错误:“系统找不到指定的文件”在日内瓦CardSpace。 [英] Error :"The system cannot find the file specified" in Geneva CardSpace.

查看:126
本文介绍了错误:“系统找不到指定的文件”在日内瓦CardSpace。的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

大家好,

我在Windows Server 2008上的Geneva CardSpace中创建了一个应用程序。它运行成功。现在我在另一台Windows Server 2008上创建了相同的应用程序,并对服务器证书,域名等各自的服务器进行了一些更改。

但是当我在这个网站上使用该卡时[此卡是由这个新网站创建的。],当我点击"将发送什么信息?"时,我得到了正确的索赔值。但是当我点击OK然后在经过 InformationCard1_SecurityTokenValidated 事件之后我又添加了一个事件

protected void InformationCard1_SessionSecurityTokenCreated( object sender,Microsoft.IdentityModel.Web。 SessionSecurityTokenCreatedEventArgs e)
{
会话[
" UserName" ] = strFirstName.ToString();
}

控制进入内部&给我正确的用户名。但之后它将 InformationCard1_SignInError
并给我发错误"系统找不到指定的文件。"

我添加的信息卡属性中还有一件事是 DestinationPageUrl = https://CardSpaceTest/RelyingParty/Default2.aspx < br> 我在哪里给出成功登录的消息。

而不是去 InformationCard1_SignedIn 事件控制将 InformationCard1_SignInError 事件。

Hi All,
   
    I have created one application in Geneva CardSpace on Windows Server 2008. It's working successfully. Now I have made same application on another Windows Server 2008 with some changes for respective server like Server certificate, domain name et al.

    But when I am using the card on this site [This card is created by this new site.], When I clicked on 'What information will be sent?' I am getting correct values of claims. But when I clicked on OK then after going through InformationCard1_SecurityTokenValidated event I have added one more event as 

protected void InformationCard1_SessionSecurityTokenCreated(object sender, Microsoft.IdentityModel.Web.SessionSecurityTokenCreatedEventArgs e)
{
Session[
"UserName"] = strFirstName.ToString();
}

control is going inside & giving me correct UserName. But after that it's going to InformationCard1_SignInError
and giving me error as
"The system cannot find the file specified."

One more thing in Information Card attributes I have added as 
DestinationPageUrl=https://CardSpaceTest/RelyingParty/Default2.aspx
where I am giving message for successful sign in.
 
   But instead of going to InformationCard1_SignedIn event control is going to InformationCard1_SignInError event.

请回复我,因为我必须将这个新服务器的CardSpace演示给我的管理层&它不起作用.... :(

如果我使用立即窗口进行详细介绍;它会给我一个

e.Exception.Message:
"系统找不到文件指定。\\\\ nn"

e.Exception.Source:
"System.Security"



e.Exception.StackTrace:
"在系统中。 Security.Cryptography.ProtectedData.Protect(Byte [] userData,Byte [] optionalEntropy,DataProtectionScope scope)\\\ at Microsoft.IdentityModel.Web.ProtectedDataCookieTransform.Encode(Byte [] value)\\\\ n at Microsoft.IdentityModel.Tokens的Microsoft.IdentityModel.Tokens.SessionSecurityTokenHandler.ApplyTransforms(Byte [] cookie,布尔出站)\\\ at Microsoft.IdentityModel.Tokens.SessionSecurityTokenHandler.Serialize(SessionSecurityToken sessionToken)\ r \ n Microsoft.IdentityModel.Tokens.SessionSecurityTokenHandler.WriteToken(SessionS)中的.SessionSecurityTokenHandler.WriteToken(XmlWriter writer,SecurityToken令牌)\\\\ n在Microsoft.IdentityModel.Web.Controls.InformationCard.SignIn()\ r \\ n的Microsoft.IdentityModel.Web.FederatedAuthenticationModuleBase.SetPrincipalAndWriteSessionToken(SessionSecurityToken sessionToken,Boolean isSession)\\\\ n中的\\ n \\ n \\ n的ecurityToken sessionToken)\\\ \\ n在Microsoft.IdentityModel.Web.Controls.SignInControl.OnPreRender(EventArgs e)"


我想问你为什么我我得到这个错误&哪个文件无法找到?
热切等待您的回复。

谢谢,
Sanjay。

推荐答案

您是否调整了安全性证书私钥文件的权限?
Did you adjust the security rights to the private key file of the certificate?


这篇关于错误:“系统找不到指定的文件”在日内瓦CardSpace。的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆