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 8461627
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 10, 20262026-06-10T13:55:54+00:00 2026-06-10T13:55:54+00:00

We have an ASP.NET MVC 3 web site which isn’t working after it’s deployed

  • 0

We have an ASP.NET MVC 3 web site which isn’t working after it’s deployed to the Azure Cloud Services. During development, we’ve been testing it using the Azure Web Sites platform but in order to get the SSL support for our custom domain, we are now trying to deploy it to Web Role in Cloud Services. But the site’s database connection to SQL Azure doesn’t work, instead we get: “The instance of SQL Server you attempted to connect to does not support encryption.” Retrying the connection doesn’t work, that error message persists.

To summarize, here’s the platforms where the site works and where it doesn’t:

  • Azure Emulator: Works
  • Azure Web Sites: Works
  • Azure Cloud Services (Web Role): Doesn’t work

The “How to: Connect to Windows Azure SQL Database Using ADO.NET” states that the error “The instance of SQL Server you attempted to connect to does not support encryption.” “indicates a failure during the login process, and is not an encryption failure. Beginning in .NET 4.5, ADO.NET displays a better error message.” The Azure Cloud Services are limited to .NET 4.0.

The site is using NHibernate to connect to the DB. Here’s an error from the log file:

Creating nhibernate session factory failed.
FluentNHibernate.Cfg.FluentConfigurationException: An invalid or incomplete configuration was used while creating a SessionFactory. Check PotentialReasons collection, and InnerException for more detail.

  • Database was not configured through Database method. —>
    System.Data.SqlClient.SqlException: The instance of SQL Server you
    attempted to connect to does not support encryption. at
    System.Data.ProviderBase.DbConnectionPool.GetConnection(DbConnection
    owningObject) at
    System.Data.ProviderBase.DbConnectionFactory.GetConnection(DbConnection
    owningConnection) at
    System.Data.ProviderBase.DbConnectionClosed.OpenConnection(DbConnection
    outerConnection, DbConnectionFactory connectionFactory) at
    System.Data.SqlClient.SqlConnection.Open() at
    YoureOnTime.Data.RetryConnectionStringProvider.<>c_DisplayClass2.b_0()
    at YoureOnTime.Common.Retry.RequestWithRetry(RetryPolicy retryPolicy,
    Action action) at
    YoureOnTime.Data.RetryConnectionStringProvider.GetConnection() at
    NHibernate.Tool.hbm2ddl.SuppliedConnectionProviderConnectionHelper.Prepare()
    at
    NHibernate.Tool.hbm2ddl.SchemaMetadataUpdater.GetReservedWords(Dialect
    dialect, IConnectionHelper connectionHelper) at
    NHibernate.Tool.hbm2ddl.SchemaMetadataUpdater.Update(ISessionFactory
    sessionFactory) at
    NHibernate.Impl.SessionFactoryImpl..ctor(Configuration cfg, IMapping
    mapping, Settings settings, EventListeners listeners) at
    FluentNHibernate.Cfg.FluentConfiguration.BuildSessionFactory() —
    End of inner exception stack trace —

And here’s how the connection is defined in the hibernate.xml:

<property name="connection.connection_string">
      data source=database.database.windows.net;Initial Catalog=db;User ID=user;Password=password;Encrypt=true;Trusted_Connection=false;MultipleActiveResultSets=True
</property>

Any ideas?

  • 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-06-10T13:55:55+00:00Added an answer on June 10, 2026 at 1:55 pm

    Bases on my previous experience on seeing this error, it is an intermittent occurrence. SQL Database always enforces encryption and if during an early phase of the login process (before authentication) there is a failure, the protocol libraries (client side) will fall back to this error message. As you mentioned it is a misleading message and not related to encryption.

    This article described the exact same error and explains how you can solve your problem by adding retry logic. So if you modify your code to use retry logic, after a few failure you may pass this error and get the connection going.

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

Sidebar

Related Questions

I have an ASP.NET MVC web site. I have many actions which require authentication
I have an ASP.NET MVC 2 web site in which I'd like to place
I'm working on a Web project using Asp.Net MVC, which I'll have to deploy
I have a ASP.Net MVC 2 web site, which can be visited by http://localhost/Admin/ContentMgr/
i have a hosted web site and i have an asp.net mvc site. The
I have a web site (ASP.NET, no MVC) with multiple web forms for filling
I am building an asp.net mvc web site which needs to host some JMOL
We have an ASP.NET MVC web app which allows users to publish messages onto
I have an iPad app that submits orders to an ASP.NET MVC web site
I have checked some of ASP.NET MVC themes from Microsoft's web site but they

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.