Sandy Place

I get the following error when trying to generate a model (csdl) file.

ERROR: Unable to generate model due to the following exception: The store metadata has not been generated yet, please call GenerateStoreMetadata() first.

Any suggestions

Thanks,
Sandy


Re: ADO.NET (Pre-release) Error when trying to generate model

Sanjay Nagamangalam - MSFT

Hi! Sandy,

This may be due to a bad installation. Please can you do uninstall any previous Orcas CTPs and do a clean installation to verify if the problem still exists

Regards,
Sanjay






Re: ADO.NET (Pre-release) Error when trying to generate model

Sandy Place

I thought as much. Even after uninstalling and re-installing I get the same error.

Thanks,
Sandy




Re: ADO.NET (Pre-release) Error when trying to generate model

lee d

I have the same issue. this happens when we install the self extracting executable




Re: ADO.NET (Pre-release) Error when trying to generate model

Julie Lerman

Just out of curiousity...

- are you using the VPC or did you get the install files

-are you generating from a stock db (like Northwind) or one of your own.

- if you are using the installer, are you installing on a clean O/S or on a computer with other stuff on it

Since there are two of you we can play "one of these things is not like the other".

I am using the VPC and have thus far only tried using Northwind. I haven't had the problem.





Re: ADO.NET (Pre-release) Error when trying to generate model

Sandy Place

I am using the installer.

I uninstalled every Visual Studio I had. January CTP , Visual Studio 2005, Visual Studio 2005 Express, SQL Server (Is it any wonder it didn't work :-) . I also uninstalled any .net frameworks I could find. Also after uninstalling I deleted all relevant directories I could find that still had files. \Windows\Microsoft.NET and so on. I then installed from scratch (Only the C# stuff, no VB or C++).

It is not a big deal as this is just a personal machine I use for testing. But if I encountered this issue I reckon other people will as well. I will run process explorer and see if any of the dll versions Studio is loading look weird.

Regards,
Sandy




Re: ADO.NET (Pre-release) Error when trying to generate model

lee d

VPC version works fine. I was using installer, I uninstalled everything and installed. still same problem




Re: ADO.NET (Pre-release) Error when trying to generate model

Mike Kaufman - MSFT

I think this is because an update to your .net Framework 2.0 didn't install properly.

What OS are you running

Can you tell me the file info (date, time, size, etc) you have for the System.Data.dll in your GAC. This should be at the location %windir%\assembly\GAC_32\System.Data\2.0.0.0__b77a5c561934e089

Thanks,

Mike






Re: ADO.NET (Pre-release) Error when trying to generate model

lee d

I am not at my machine right now. will check the info a bit later. do you think copying the dll from vpc and installing in GAC would work






Re: ADO.NET (Pre-release) Error when trying to generate model

Mike Kaufman - MSFT

Hi Lee -

I don't know that copying the DLL from the vpc will work, as it is just one of the .net framework 2.0 DLLs that should have been updated. At this point, I'd like to verify that you indeed do have a different System.Data.dll than what we expect.

Another thing that you could try that would be interesting is to try to generate the model using the EdmGen.exe. This should be located in %WINDIR%\Microsoft.Net\Framework\v3.5 directory. It is a command-line tool that should do a similiar thing to what the wizard does. At this time, it seems to be giving us nicer error messages though. If you could run that, that would be really helpful as well. An example of the command you'll want to run is

EdmGen.exe /mode:FullGeneration /project:Northwind /language:CSharp /ConnectionString:"Data Source=YOURDBSERVER;Initial Catalog=Northwind;Integrated Security=True" /provider:System.Data.SqlClient

Mike






Re: ADO.NET (Pre-release) Error when trying to generate model

lee d

Thanks, I will try command line tool. I will post my finding(s)




Re: ADO.NET (Pre-release) Error when trying to generate model

lee d

here are the details of the system.data.dll in GAC. I have vista

version: 2.0.50727.312

processor architecture: x86

last modified :10/19/2006 7:14:47 PM






Re: ADO.NET (Pre-release) Error when trying to generate model

lee d

I copied the system.data.dll into GAC and now I can generate the model in VS. can you tell me what other dlls should have been updated

Thanks






Re: ADO.NET (Pre-release) Error when trying to generate model

Tommy Williams - MSFT

In the March CTP, the updates to v2 and v3 of the .NET Framework do not install properly on Windows Vista. The "Orcas" parts of the Framework (v3.5) should install correctly on Windows Vista.

The best way to use the March CTP on Vista is through the Virtual PC version: http://www.microsoft.com/downloads/details.aspx familyid=b533619a-0008-4dd6-9ed1-47d482683c78&displaylang=en&tm

Supported operating systems for the standalone installer are Windows XP and Windows Server 2003.






Re: ADO.NET (Pre-release) Error when trying to generate model

lee d

Thanks, that explains it