Windows Azure ASP.NET Providers Sample

The Windows Azure ASP.NET Providers sample shows how to use tables and blobs in Windows Azure storage to host Membership records, Profile records, Role records and Session State information with custom ASP.NET Providers.

C# (7.1 MB)
 
 
 
 
 
(10)
6,315 times
Add to favorites
7/29/2011
E-mail Twitter del.icio.us Digg Facebook
Sign in to ask a question


  • Unable to use the AspProviders dll
    3 Posts | Last post July 29, 2014
    • Hi all,
      
      I am able to successfully run the code in the development fabric and the azure as well but when i'm using the aspProvider project or dll in my other projects it is throwing error
      Object reference not set to an instance of an object
      
       <clear/>
      Line 68:         <add name="TableStorageSessionStateProvider"
      Line 69:              type="Microsoft.Samples.ServiceHosting.AspProviders.TableStorageSessionStateProvider" />
      Line 70:       </providers>
      
      
      throwing error for Microsoft.Samples.ServiceHosting.AspProviders.TableStorageSessionStateProvider
      
      Please let me know cant I use the AspProviders project or dll in my other projects?
      
      Thanks & Regards,
      Ritun
    • Hello:
      
      I've been trying to use that ASPProviders dll in another project and also gives me the same error.
      Is there any way to configure without error?
    • U need update the Microsoft.WindowsAzure.ServiceRuntime and Microsoft.WindowsAzure.StorageClient version in AspProviders References.
  • Migration to SCL 2.0
    1 Posts | Last post December 31, 2012
    • I downloaded the source code and compiled for Azure SDK 1.8 and so far it works like a charm. Now that 2.0 storage client has breaking changes, how can we migrate and adopt the new changes ?
  • Should I use this or the same Provider on Codeplex
    1 Posts | Last post May 08, 2012
    • There is another provider on Codeplex.  Which one should I use?
      
      http://azureproviders.codeplex.com/discussions/348144#post831775
  • Do you really want people to "print and retain" the license?
    1 Posts | Last post March 11, 2012
    • Seems like no one is doing that since it's impossible to print the license in the modal javascript dialog box.  I read the license... can't you just add a variant of MS-RL or MS-PL for this?
  • Has anyone been able to run this code
    2 Posts | Last post December 10, 2011
    • JJN
      Hi,
      
      I keep on getting the following error,
      
      System.Security.SecurityException: The provider is configured with allowInsecureRemoteEndpoints set to false (default setting) but the endpoint for the storage system does not seem to be an https or local endpoint. Please configure the provider to use an https endpoint for the storage endpoint or explicitly set the configuration option allowInsecureRemoteEndpoints to true.
      
      Even after setting the allowInsecureRemoteEndpoints to true the code still keeps on giving the same error !!!
      
      Jay.
      
    • Runs fine in my VM environment.
  • SQL Azure or Azure Storage Table
    2 Posts | Last post December 10, 2011
    • Hi,
      
      Which data storage location makes sense if I could have up to 100k users?
      
      I am concerned that Azure Storage tables may not be able to support so many users due to indexing limitations.
      
      If I start with Azure Storage tables can I migrate to SQL Azure at a later date?
      
      Thanks,
      Ant
      
      
      
    • See MSDN Article SQL Azure and Windows Azure Table Storage: http://msdn.microsoft.com/en-us/magazine/gg309178.aspx
  • Is anyone using the code in production?
    3 Posts | Last post November 23, 2011
    • This code sample is really ropy, it doesn't work in a whole bunch of scenarios. Lots of the methods throw exceptions that can't be handled and it doesn't even clean up all the blobs when Session.Abandon() is called (delete associated blobs in RemoveItem)
      
      Has this sample even been tested or use in a real scenario?
    • i would think you will have to have a seperate process which loops through the sessions table periodically and delete the expired sessions.
    • First of all, I really appreciate time developers spent working on this code sample.
      
      Matt asked if anyone uses this code in the production. I am. Actually, I was, and had mixed experiences. :-( To be completely accurate, all the other functionalities, except session management are fine, but sessions caused me a lot of troubles. Numerous exceptions not handled. For example, if you leave your page open in the browser (Chrome), and click on it after couple of hours, you'll end up with the infamous 310 "too many redirects" error. If the error is caused by the bad configuration, I apologize in advance. I've tested in numerous environments and had same results everywhere.