Azure的服务配置错误 [英] Azure Service Configuration Error

查看:105
本文介绍了Azure的服务配置错误的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

无法找到程序集​​Microsoft.IdentityModel,版本= 3.5.0.0,文化=中性。

Unable to find assembly 'Microsoft.IdentityModel, Version=3.5.0.0, Culture=neutral.

我试图拨打:

var objStorage = CloudStorageAccount.FromConfigurationSetting("BlobStorage"); 

在我的mvc行动,凡在我把,

in my Mvc action, where in I have placed,

CloudStorageAccount.SetConfigurationSettingPublisher((configName, configSettingPublisher) =>
        { var connectionString = RoleEnvironment.GetConfigurationSettingValue(configName);
            configSettingPublisher(connectionString);
        }
        );   

在我的

protected void Application_Start() 

在的global.asax.cs文件。

in global.asax.cs File .

请注意:我使用的是Windows身份验证基础SDKv4.0,Windows Azure的SDK日 - 11月2011&安培;我的应用程序使用ADFS

note:am using Windows Identity Foundation SDKv4.0,Windows azure SDK - nov 2011 & my application uses ADFS

我曾尝试使用博客帖子的 http://blogs.infosupport.com/adding-assemblies-to-the-gac-in-windows-azure/ 。但没有wrked我出去!帮我在这...

i have tried resolving this error using the blog post http://blogs.infosupport.com/adding-assemblies-to-the-gac-in-windows-azure/. But none wrked out for me! help me out on this...

推荐答案

这是一个已知的问题。

This is a known issue.

来源: http://msdn.microsoft.com/en-美国/库/ windowsazure / hh403974.aspx

更新时间:2011年9月4日

Updated: September 4, 2011

适用于:适用于SDK1.3以后使用完整的IIS Web角色和Windows标识基础

Applies to: Applies to SDK1.3 and later using a full IIS web role and Windows Identity Foundation.

症状:您遇到的第一个电话到RoleEnvironment方法,以下情况例外

Symptom: You encounter the following exception on the first call to a RoleEnvironment method.

[SerializationException:无法找到程序集​​Microsoft.IdentityModel,版本= 3.5.0.0,文化=中性公钥= 31bf3856ad364e35']

[SerializationException: Unable to find assembly 'Microsoft.IdentityModel, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35'.]

原因:Windows标识基础组件没有正确安装至Windows Azure虚拟机

Cause: The Windows Identity Foundation assemblies are not properly installed to the Windows Azure virtual machine.

解决方案:使用启动任务来重新安装Windows标识基础包中的虚拟机上。

Resolution: Use a startup task to reinstall the Windows Identity Foundation package on the virtual machine.

这篇关于Azure的服务配置错误的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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