Click here to Skip to main content
15,949,741 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
i want to deploy my site on window azure, for that purpose i follow these steps.
1.first create vm using images of of sql 2012 enter
2.create end points for that vm.
3.then connect my vm
4.when vm run properly, i access sql congfigrtion,sql management studio to restore my database,then install iis on my vm,
5.and deploy my application in root dir of iis,
my connection string is as follow
HTML
<connectionStrings>
    <add name="Entities" connectionString="metadata=res://*/;provider=System.Data.SqlClient;provider connection string="data source=(local);initial catalog=xxx;integrated security=True;MultipleActiveResultSets=True;App=EntityFramework"" providerName="System.Data.EntityClient" />
  </connectionStrings>

but when i access in browser this error show up
HTML
The network name cannot be found 

how do i solve this problem,or guide me for proper way to deploy application in window azure vm.
Posted

1 solution

Check your connection string. Now you seem to be trying to connect on a SQL Sever that should be installed locally on the same computer where the program is running.

Instead of (local) you should define the address of the SQL Server computer. For details, see https://www.connectionstrings.com/sql-azure/[^]
 
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