locked
Configuration error in window azure RRS feed

  • General discussion

  • Hi,

    I have a asp.net mvc 2 application on window azure sdk 1.7. It uses table storage for SessionState with web.config as,

            <sessionState mode="Custom" customProvider="TableStorageSessionStateProvider">
                <providers>
                    <clear/>
            <add name="TableStorageSessionStateProvider" type="Microsoft.Samples.ServiceHosting.AspProviders.TableStorageSessionStateProvider" applicationName="OTP.Ring.Web"/>

    It gives a compilation error on 'applicationName' as "The 'applicationName' attribute is not allowed". Also in packages.config, it gives compilation error on <packages> as "The 'package' element is not declared".

    And when loading the page, it gives error,

    Configuration Error

    Description: An error occurred during the processing of a configuration file required to service this request. Please review the specific error details below and modify your configuration file appropriately.

    Parser Error Message: Exception has been thrown by the target of an invocation.

    Line 58: <providers> Line 59: <clear/> Line 60: <add name="TableStorageSessionStateProvider" type="Microsoft.Samples.ServiceHosting.AspProviders.TableStorageSessionStateProvider"

    applicationName="OTP.Ring.Web"/> Line 61: </providers>

    Source File: C:\Users\zhang\Documents\Visual Studio 2010\Projects\OTP\Ring\Application\trunk\Ring\Web\web.config    Line: 60

    Is windows azure configuration manager needed to run after installation of window azure? What is the problem? I need help on this.

    Thanks.


    York


    • Edited by york Z Wednesday, June 27, 2012 5:40 AM
    • Changed type york Z Monday, July 2, 2012 12:16 AM solved
    Wednesday, June 27, 2012 5:31 AM

All replies