Click here to Skip to main content
15,917,174 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hi friend,

I have created one application to upload data to windows azure storage & i ha ve used follwing connection string ,
HTML
<connectionstrings>
    <add name="ApplicationServices">
		 <connectionString="DefaultEndpointsProtocol=https;AccountName=acc_name; AccountKey=key">


<add name="DefaultConnection">
		 		 <connectionString="DefaultEndpointsProtocol=https;AccountName=acc_name; AccountKey=key">

but when i publish my application on windows azure portal , i get uploaded successfully but at the time of browsing it shows an error like

C#
Keyword not supported: 'defaultendpointsprotocol'.

Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code. 

Exception Details: System.ArgumentException: Keyword not supported: 'defaultendpointsprotocol'.

Source Error: 
An unhandled exception was generated during the execution of the current web request. Information regarding the origin and location of the exception can be identified using the exception stack trace below.

Stack Trace: 
[ArgumentException: Keyword not supported: 'defaultendpointsprotocol'.]
   System.Data.Common.DbConnectionOptions.ParseInternal(Hashtable parsetable, String connectionString, Boolean buildChain, Hashtable synonyms, Boolean firstKey) +6467134
   System.Data.Common.DbConnectionOptions..ctor(String connectionString, Hashtable synonyms, Boolean useOdbcRules) +134
   System.Data.SqlClient.SqlConnectionString..ctor(String connectionString) +103
   System.Data.SqlClient.SqlConnectionFactory.CreateConnectionOptions(String connectionString, DbConnectionOptions previous) +35
   System.Data.ProviderBase.DbConnectionFactory.GetConnectionPoolGroup(String connectionString, DbConnectionPoolGroupOptions poolOptions, DbConnectionOptions& userConnectionOptions) +260
   System.Data.SqlClient.SqlConnection.ConnectionString_Set(String value) +60
   System.Web.Providers.Entities.ModelHelper.CreateEntityConnection(ConnectionStringSettings setting, String csdl, String ssdl, String msl) +661
   System.Web.Providers.Entities.ModelHelper.CreateSessionEntities(ConnectionStringSettings setting) +113
   System.Web.Providers.DefaultSessionStateProvider.PurgeExpiredSessions() +96
   System.Web.Providers.DefaultSessionStateProvider.PurgeIfNeeded() +41
   System.Web.Providers.DefaultSessionStateProvider.InitializeRequest(HttpContext context) +46
   System.Web.SessionState.SessionStateModule.BeginAcquireState(Object source, EventArgs e, AsyncCallback cb, Object extraData) +293
   System.Web.AsyncEventExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute() +115
   System.Web.HttpApplication.ExecuteStep(IExecutionStep step, Boolean& completedSynchronously) +375

so please help me to solve it

Tahnks & Regard,
Mahesh Pardeshi,
Tech Mahindra
Posted
v5
Comments
Sandeep Mewara 14-Mar-13 6:14am    
Sounds like an invalid connection string!

Check here: http://www.connectionstrings.com/sql-azure

1 solution

first , "defaultendpointsprotocol" keys is wrong.
second, Please show the souce code
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900