Note that there are some explanatory texts on larger screens.

plurals
  1. POError in using RoleEnvironment to get Configuration
    primarykey
    data
    text
    <p>my web app is using MVC3 with razor </p> <p>If I am trying to read anything from ServiceConfig using RoleEnvironment.GetConfigurationSettingValue("senderName") I am getting error related to Microsoft.IdentityModel</p> <pre><code>Unable to find assembly 'Microsoft.IdentityModel, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35'. Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code. Exception Details: System.Runtime.Serialization.SerializationException: Unable to find assembly 'Microsoft.IdentityModel, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35'. Source Error: An unhandled exception was generated during the execution of the current web request. Information regarding the origin and location of the exception can be identified using the exception stack trace below. Stack Trace: [SerializationException: Unable to find assembly 'Microsoft.IdentityModel, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35'.] System.Runtime.Remoting.Proxies.RealProxy.HandleReturnMessage(IMessage reqMsg, IMessage retMsg) +4727747 System.Runtime.Remoting.Proxies.RealProxy.PrivateInvoke(MessageData&amp; msgData, Int32 type) +1725 System.AppDomain.get_Id() +0 &lt;CrtImplementationDetails&gt;.DoCallBackInDefaultDomain(IntPtr function, Void* cookie) +185 &lt;CrtImplementationDetails&gt;.LanguageSupport._Initialize(LanguageSupport* ) +328 &lt;CrtImplementationDetails&gt;.LanguageSupport.Initialize(LanguageSupport* ) +102 [ModuleLoadException: The C++ module failed to load while attempting to initialize the default appdomain. ] </code></pre> <p>.</p> <p>It's true that I am making use of Windows identity foundation for Azure acs authentication .But everything worked fine when I deployed to azure.But if I make use of RoleEnvironment to read any settings from my ServiceConfig files (for ex :RoleEnvironment.GetConfigurationSettingValue("Smtpserver")) .Its failing on azure .</p> <p>But everything workes fine on my local azure appfabric .If I am removing this line of code ,then all workes fine .<code>RoleEnvironment.GetConfigurationSettingValue("Smtpserver"))</code> I am using two webroles in my cloud app. Please help me identify the cause of error</p>
    singulars
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload