Quantcast
Channel: All Forums
Viewing all articles
Browse latest Browse all 27852

Invalid object name error for azure database connected table

$
0
0

Hi,

 

I'm trying to create a website using webmatrix 3 using sql database connected from windows azure. I have added the connection string, and the database connection/compatibility test passes. But when I try to launch the website through IE (I haven't published it because its not finished yet), it gives me the following error.

 

Invalid object name 'Coordinate'.              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.Data.SqlClient.SqlException: Invalid object name 'Coordinate'.
Source Error:

Line 2:      var db = Database.Open("SQLAzureConnection");
Line 3:      var selectQueryString = "SELECT * FROM Coordinate";Line 4: var row = db.QuerySingle(selectQueryString); 
                  

Source File: c:\Users\VP\Documents\My Web Sites\TL\Page.cshtml   Line:4            

 

The table name "Coordinate" is correct and it exists in the database. Any insight would be great!

 

Thanks.


Viewing all articles
Browse latest Browse all 27852

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>