
Verify that the instance name is correct and that SQL Server is configured to allow remote connections. The server was not found or was not accessible.

But there is results from the table, only an exception in the Output: It is an Exception: (0x80131904): A network-related or instance-specific error occurred while establishing a connection to SQL Server. ("It is an Exception: " + odbcEx) Īfter about 10 seconds, the website appears on localhost. Make sure all WebMatrix dll packages are installed with NuGet.Ĭreate default.cshtml.Connect to Database using Server Explorer.

Create Database.mdf with a simple table.But I can't seem to get anything but exceptions from the SQL table.

Then I could easily change all instances and references to each html file to stay DRY. I was hoping to create a database with a list of all the titles and descriptions of each page. I've looked and looked but could not come up with a working solution.Īs an intermediate with C# and decent with HTML and things, I thought I'd fool around with Razor Web Pages and make a simple website.
