Skip to Main Content

Oracle Developer Tools for Visual Studio

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

Visual Studio 2013 Update 3

user9320872Sep 22 2014 — edited Jan 12 2015

Hello:

While I was encouraged to find one solution in this group (August 18th to 2731254) recommending an install of Visual Studio Update 3 I have found that installing Visual Studio 2013 Update 3 has disabled the VS Entity Data Model Wizard.

For several weeks before I installed VS Update 3 I generated DB-first EF models from Oracle using the Entity Data Model Wizard:

EF Designer From Database:

Creates a model in the EF Designer based on an existing database. You can choose the database connection, settings for the model, and database objects to include in the model. The classes your application will interact with are generated from the model.

ef001.png

Further, on numerous occasions since I have updated the EF models using the Update Model From Database and related custom tools (EntityModelCodeGenerator and TextTemplatingFileGenerator).

ef002.png

After I installed Update 3 these processes no longer works.

Interestingly, the Update Wizard does start up and seems to make those schema queries necessary to provide options on the Add tab - it knows what tables from the database that are not in the model.

When I depress Finish the Wizard hangs - only by carefully cancelling the process VS will remain open and the following dialog returns...

ef003.png

...and the VS Output is found below.

This process failure also occurs when creating a new connection and initiating the EF Model Builder.

Configuration Details:

Visual Studio 2013 Update 3 (KB2829760)

Oracle Developer Tools for Visual Studio 12.1.0.1.2

Oracle Database Server 11.2.0.3.0

EntityFramework 5 (Version 5.0.0.net4 and 5.0.0.net45)

Windows 7 64-bit

Attempted (and failed) solutions included:

Reinstalling Oracle Developer Tools for Visual Studio 12.1.0.1.2

Changing EF 5 Versions - Version 5.0.0.net4 and 5.0.0.net45

Uninstalling VS 2013 Update 3 - not recommended

Elevating schema owner system privileges

Has anyone else encountered this difficulty?

Is there a suggested solution or work-around?

Thanks in advance for your attention and consideration.

[Please note that while this was written in the first person, several developers in separate development environments encountered and contributed to these finding.]

VS Output:

Unable to generate the model because of the following exception: 'System.Data.Entity.Core.EntityCommandExecutionException: An error occurred while executing the command definition. See the inner exception for details. ---> Oracle.DataAccess.Client.OracleException: ORA-03113: end-of-file on communication channel

Process ID: 8212

Session ID: 134 Serial number: 13199

at Oracle.DataAccess.Client.OracleException.HandleErrorHelper(Int32 errCode, OracleConnection conn, IntPtr opsErrCtx, OpoSqlValCtx* pOpoSqlValCtx, Object src, String procedure, Boolean bCheck, Int32 isRecoverable)

at Oracle.DataAccess.Client.OracleException.HandleError(Int32 errCode, OracleConnection conn, String procedure, IntPtr opsErrCtx, OpoSqlValCtx* pOpoSqlValCtx, Object src, Boolean bCheck)

at Oracle.DataAccess.Client.OracleCommand.ExecuteReader(Boolean requery, Boolean fillRequest, CommandBehavior behavior)

at Oracle.DataAccess.Client.OracleCommand.ExecuteDbDataReader(CommandBehavior behavior)

at System.Data.Common.DbCommand.ExecuteReader(CommandBehavior behavior)

at System.Data.Entity.Infrastructure.Interception.DbCommandDispatcher.<Reader>b__c(DbCommand t, DbCommandInterceptionContext`1 c)

at System.Data.Entity.Infrastructure.Interception.InternalDispatcher`1.TableNameRedacted[TTarget,TInterceptionContext,TResult](TTarget target, Func`3 operation, TInterceptionContext interceptionContext, Action`3 executing, Action`3 executed)

at System.Data.Entity.Infrastructure.Interception.DbCommandDispatcher.Reader(DbCommand command, DbCommandInterceptionContext interceptionContext)

at System.Data.Entity.Internal.InterceptableDbCommand.ExecuteDbDataReader(CommandBehavior behavior)

at System.Data.Common.DbCommand.ExecuteReader(CommandBehavior behavior)

at System.Data.Entity.Core.EntityClient.Internal.EntityCommandDefinition.ExecuteStoreCommands(EntityCommand entityCommand, CommandBehavior behavior)

--- End of inner exception stack trace ---

at System.Data.Entity.Core.EntityClient.Internal.EntityCommandDefinition.ExecuteStoreCommands(EntityCommand entityCommand, CommandBehavior behavior)

at System.Data.Entity.Core.EntityClient.Internal.EntityCommandDefinition.Execute(EntityCommand entityCommand, CommandBehavior behavior)

at System.Data.Entity.Core.EntityClient.EntityCommand.ExecuteReader(CommandBehavior behavior)

at Microsoft.Data.Entity.Design.VersioningFacade.ReverseEngineerDb.SchemaDiscovery.EntityStoreSchemaGeneratorDatabaseSchemaLoader.LoadDataTable[T](String sql, Func`2 orderByFunc, DataTable table, EntityStoreSchemaFilterObjectTypes queryTypes, IEnumerable`1 filters, String[] filterAliases)

at Microsoft.Data.Entity.Design.VersioningFacade.ReverseEngineerDb.SchemaDiscovery.EntityStoreSchemaGeneratorDatabaseSchemaLoader.LoadRelationships(IEnumerable`1 filters)

at Microsoft.Data.Entity.Design.VersioningFacade.ReverseEngineerDb.SchemaDiscovery.EntityStoreSchemaGeneratorDatabaseSchemaLoader.LoadStoreSchemaDetails(IList`1 filters)

at Microsoft.Data.Entity.Design.VisualStudio.ModelWizard.Engine.ModelGenerator.GetStoreSchemaDetails(StoreSchemaConnectionFactory connectionFactory)

at Microsoft.Data.Entity.Design.VisualStudio.ModelWizard.Engine.ModelGenerator.CreateStoreModel()

at Microsoft.Data.Entity.Design.VisualStudio.ModelWizard.Engine.ModelGenerator.GenerateModel(List`1 errors)

at Microsoft.Data.Entity.Design.VisualStudio.ModelWizard.Engine.ModelBuilderEngine.GenerateModels(String storeModelNamespace, ModelBuilderSettings settings, List`1 errors)

at Microsoft.Data.Entity.Design.VisualStudio.ModelWizard.Engine.ModelBuilderEngine.GenerateModel(ModelBuilderSettings settings, IVsUtils vsUtils, ModelBuilderEngineHostContext hostContext)'.

Loading metadata from the database took 00:00:01.4585900.

Generating the model took 00:04:05.2019049.

Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Feb 9 2015
Added on Sep 22 2014
18 comments
9,486 views