I get the following error:
Keyword not supported: 'initial
provider'.
This is my project. See the zipped project.
Here is some more information from the browser:
[code]
Keyword not supported: 'initial
provider'.
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: 'initial
provider'.
Source Error:
|
Source File: c:\Users\Menno\Documents\Visual Studio 2010\Projects\SportsStore\SportsStore.WebUI\Views\Product\List.cshtml Line: 9
[/code]

VulpesRank #55 · 29.2K reputationPosted Mar 30, 2012, 1:19 AM EDT
You might have written 'Initial Provider' instead of 'Initial Catalog' - something like that.
albert albertRank #2,683 · 519 reputationPosted Mar 30, 2012, 1:28 AM EDT
I have this:
[code]
[/code]
Now I get now a blank page. But I have data in the database.
VulpesRank #55 · 29.2K reputationPosted Mar 30, 2012, 1:31 AM EDT
albert albertRank #2,683 · 519 reputationPosted Mar 30, 2012, 1:32 AM EDT
albert albertRank #2,683 · 519 reputationPosted Mar 30, 2012, 1:33 AM EDT
And this is the total config:
[code]
[/code]
But still blank page
albert albertRank #2,683 · 519 reputationPosted Mar 30, 2012, 4:27 AM EDT
albert albertRank #2,683 · 519 reputationPosted Mar 30, 2012, 4:41 AM EDT
[code]
Server Error in '/' Application.
Invalid column name 'ImageData'.
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.Invalid column name 'ImageMimeType'.
Exception Details: System.Data.SqlClient.SqlException: Invalid column name 'ImageData'.
Invalid column name 'ImageMimeType'.
Source Error:
Source File: c:\Users\Menno\Documents\Visual Studio 2010\Projects\SportsStore\SportsStore.WebUI\Views\Product\List.cshtml Line: 9
Stack Trace:
[/code]
[code]
{"An error occurred while executing the command definition. See the inner exception for details."}
Model = {SELECT
[Extent1].[ProductID] AS [ProductID],
[Extent1].[Name] AS [Name],
[Extent1].[Description] AS [Description],
[Extent1].[Price] AS [Price],
[Extent1].[Category] AS [Category],
[Extent1].[ImageData] AS [ImageData],
[Extent1].[ImageMimeTyp...
@foreach (var p in Model)
{
@p.Name
@p.Description
@p.Price.ToString("c")
}
[/code]
VulpesRank #55 · 29.2K reputationPosted Mar 30, 2012, 6:15 AM EDT
So, I'd check whether that is in fact the case.
albert albertRank #2,683 · 519 reputationPosted Apr 2, 2012, 2:10 AM EDT
But I have other question. I will make new post oke