locked
I apply caching in my Azure project with Web role. Internal server error shown. RRS feed

  • Question

  •  Before applying caching its working fine. After applying caching it shown the following error in event log. I use the development storage as true and Windows azure sdk 1.6 version.  Microsoft.WindowsAzure.Plugins.Diagnostics.ConnectionString as usedevelopmentstorage=ture. Enable caching in caching tab in co-located role and Add Named Cache as 'default'

    In web.config file looks as like,

    <sessionState mode="Custom" customProvider="AppFabricCacheSessionStoreProvider">
          <providers>
            <add name="AppFabricCacheSessionStoreProvider"
                 type="Microsoft.Web.DistributedCache.DistributedCacheSessionStateStoreProvider, Microsoft.Web.DistributedCache"
                 cacheName="default" dataCacheClientName="default" />
          </providers>
        </sessionState>

    <dataCacheClients>
        <tracing sinkType="DiagnosticSink" traceLevel="Error" />
        <dataCacheClient name="default" isCompressionEnabled="true">
          <autoDiscover isEnabled="true" identifier="WebRole1" />
          <!--<localCache isEnabled="true" sync="TimeoutBased" objectCount="100000" ttlValue="300" />-->
          <localCache isEnabled="true" objectCount="100000" ttlValue="300" />
          <hosts>
            <host name="cachename.cache.windows.net" cachePort="22233" />
          </hosts>
          <securityProperties mode="Message">
            <messageSecurity authorizationInfo="The hidden authinfo"></messageSecurity>
          </securityProperties>
        </dataCacheClient>

    An unhandled exception occurred. Type: System.ArgumentException Process ID: 6460
    Process Name: DiagnosticsAgent
    Thread ID: 1
    AppDomain Unhandled Exception for role deployment17(96).testmigration.WebRole1_IN_0
    Exception: Endpoint http://testazureapp.blob.core.windows.net/ is not a secure connection.
       at Microsoft.WindowsAzure.Diagnostics.DiagnosticMonitor.<ValidateStartupInfo>b__10(Uri uri)
       at Microsoft.WindowsAzure.Diagnostics.DiagnosticMonitor.ValidateSecureConnection(CloudStorageAccount acct, Action`1 error)
       at Microsoft.WindowsAzure.Diagnostics.DiagnosticMonitor.StartWithExplicitConfiguration(DiagnosticMonitorStartupInfo startupInfo, DiagnosticMonitorConfiguration initialConfiguration)
       at Microsoft.WindowsAzure.Plugins.Diagnostics.DiagnosticsAgentManager.<StartAgent>b__0()
       at Microsoft.WindowsAzure.Plugins.Common.BlockingExecutionEnvironment.Execute(Func`1 entryPoint)
       at Microsoft.WindowsAzure.Plugins.Diagnostics.DiagnosticsAgentManager.StartAgent()
       at Microsoft.WindowsAzure.Plugins.Diagnostics.Program.Main(String[] args)


    P.Mythili

    Monday, July 16, 2012 1:26 PM

All replies

  • The error you are seeing is coming from the DiagnosticsMonitor and implies that an HTTP endpoint is ebing used in your Microsoft.WindowsAzure.Plugins.Diagnostics.ConnectionString configuration. Which may be normal.

    The cache configuration isn't related. Are you seeing any other errors apart from this one?

    Monday, July 16, 2012 7:08 PM
  • while first time starting the roles for the application in the Windows Azure compute emulator and it takes too much time to start.Emulator takes long time to start and ask continue waiting or not. Then shown the following error message as CacheServiceEmulator.exe has stopped working and crashed like.



    P.Mythili

    Tuesday, July 17, 2012 5:35 AM
  • Just want to double check. You should be having 1.7 SDK in order to see the caching tab in your role properties. You mentioned 1.6 SDK, do you have 1.7 SDK on your box?

    Let me check if there is anything wrong with your config and get back.

    Saturday, July 28, 2012 10:12 AM
  • Hi,

      As mentioned by Ranganath, make sure you've 1.7 Azure SDK, Emulator, and VS Tools with the project and refering the proper cache client bits.

      If devstorage didn't initialize, then you might face problems with diagnostics agent crashing and other problems. During the crashing ensure all the storage services ( at least table and blob ) are running fine and the ports ( 10000, 10001 and 10002 ) are not conflicting by other apps running in your system.


    Monday, July 30, 2012 7:14 AM