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]
albert albertPosted Apr 2, 2012, 6:10 AM
But I have other question. I will make new post oke
VulpesPosted Mar 30, 2012, 10:15 AM
So, I'd check whether that is in fact the case.
albert albertPosted Mar 30, 2012, 8:41 AM
[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]
albert albertPosted Mar 30, 2012, 8:27 AM
albert albertPosted Mar 30, 2012, 5:33 AM
And this is the total config:
[code]
[/code]
But still blank page
albert albertPosted Mar 30, 2012, 5:32 AM
VulpesPosted Mar 30, 2012, 5:31 AM
albert albertPosted Mar 30, 2012, 5:28 AM
I have this:
[code]
[/code]
Now I get now a blank page. But I have data in the database.
VulpesPosted Mar 30, 2012, 5:19 AM
You might have written 'Initial Provider' instead of 'Initial Catalog' - something like that.