Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 6226313
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 24, 20262026-05-24T09:00:11+00:00 2026-05-24T09:00:11+00:00

I have migrated a website to cloud, which works perfectly on my local machine

  • 0

I have migrated a website to cloud, which works perfectly on my local machine using the Compute and Storage Emulators.

However, when I put it onto Windows Azure Cloud, the session and cookies are not working fine. Part of web.config file is given below.

<sessionState timeout="30"
              mode="SQLServer"
              sqlConnectionString="Server=sxxxxxxxxx.database.windows.net;User ID=xxxxx@sxxxxxxxxx;Password=MY_PASSWORD"
              cookieless="false"
              allowCustomSqlDatabase="true" >
</sessionState>

Can anyone please guide be in correcting the same ? All the other things in the website are pretty much working fine.

Below is some additional information:


To summarize, I have done the following.

  1. Migrated a website to Windows Azure successfully

  2. Created the required connection strings for the database access successfully.

  3. Tested the website on the local machine using Compute Emulator and Storage Emulator.

  4. When I published the website and uploaded the packageFile and configurationFile, everything was working fine in general. BUT

for the pages which used session/cookies. All static pages worked well. All database access were proper.

  1. Then, I wrote some code for setting right the session.

GOT ERRORS AND ENTIRE WEBSITE STOPPED WORKING

  1. Created the database and tables that were required (ASPSTATE database and its corresponding tables). Everything went well.

http://blogs.msdn.com/b/sqlazure/archive/2010/08/04/10046103.aspx

Tested the website … Still getting the error on local and on cloud…as mentioned previously in this post.

Can you please guide me to rectify this.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-24T09:00:17+00:00Added an answer on May 24, 2026 at 9:00 am

    .Hey guys,

    Thanks for the replies. I modified the session state in web.config a little and its as below

        <sessionState cookieless="false" mode="SQLServer" 
                      sqlConnectionString="data source=serverName.database.windows.net;user id=UserID@serverName;password=password;Trusted_Connection=False;Encrypt=True;"
                      timeout="20"
                      allowCustomSqlDatabase="true">
        </sessionState>
    

    Now its working fine.

    Regards
    Sandeep

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

i have as asp.net-mvc website and we are migrated a popup from using PartialView()
We have a website which we recently migrated to ASP.NET MVC. All of the
Talking about HybridAuth , I have migrated our website to a new Hosting service,
I have migrated my Drupal 7 website to a server, and now I can't
We have migrated one of our websites from a windows 2003 machine with IIS5
trying to migrate my existing asp.net website which is using mysql to Windows Azure
I have a website in which I am migrating membership from ASP.NET services to
We've built an AJAX website which uses JQuery UI extensively. we have 30+ homemade
I have some batch data-manipulation scripts which support a small business website. The scripts
I have a website which was initially made on DNN 4.(??).(??) hosted on win

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.