This content has been marked as final. Show 3 replies
Also, if you are getting this error with a simple testcase and if you never had this working with previous versions please watch out for 64 bit vs 32 bit issues:
1) Don't target your application for "AnyCPU". Choose 64-bit or 32-bit depending on which beta ODAC you installed. They must match.
2) Use the Oracle installer to install ODAC if you are having problems with Xcopy.
Thanks for the tips.
I'm working with a new Class Library project. I tried switching it to target x86 instead of AnyCPU but got the same error. I used the Oracle installer to install Beta 3.
The table I'm trying to model is a very simple test table that I created. Here's the script:
CREATE TABLE PERSON
FIRST_NAME VARCHAR2(30 BYTE) NOT NULL,
LAST_NAME VARCHAR2(30 BYTE) NOT NULL
FREELIST GROUPS 1
CREATE UNIQUE INDEX PERSON_PK ON PERSON
FREELIST GROUPS 1
CREATE OR REPLACE TRIGGER PERSON_TRG
REFERENCING NEW AS New OLD AS Old
FOR EACH ROW
-- For Toad: Highlight column ID
SELECT PERSON_SEQ.NEXTVAL INTO n FROM DUAL;
:new.ID := N;
ALTER TABLE PERSON ADD (
USING INDEX PERSON_PK
It lets me go through the wizard, choosing a connection, then the table, but once I click Finish, I get the "Type constructor threw an exception" error.
The edmx file looks like it's created correctly if I view the XML, but the designer fails to load with "The operation could not be completed". It has the SSDL, CSDL, C-S mapping, and EF Designer sections.
The output generated is:
Generated model file: Model1.edmx.
Loading metadata from the database took 00:00:06.6309154.
Generating the model took 00:00:09.6584683.
Added the connection string to the App.Config file.
Writing the .edmx file took 00:00:00.0017806.
My machine is running VS2010 SP1 on Windows XP SP3.
edit - I tried generating a model from SQL Server Express and had the same error, so it's probably not related to ODP.NET.