Title: Could not load EntityFramework5.Npgsql while attempting to Generate Database from Model · Issue #1427 · npgsql/npgsql · GitHub
Open Graph Title: Could not load EntityFramework5.Npgsql while attempting to Generate Database from Model · Issue #1427 · npgsql/npgsql
X Title: Could not load EntityFramework5.Npgsql while attempting to Generate Database from Model · Issue #1427 · npgsql/npgsql
Description: I'm trying to generate a completely new Database given schema in the VS EF designer. Steps to reproduce I installed the latest VSIX Npgsql VS extension, installed the latest EntityFramework6.Npgsql from Nuget, then updated Npgsql to its ...
Open Graph Description: I'm trying to generate a completely new Database given schema in the VS EF designer. Steps to reproduce I installed the latest VSIX Npgsql VS extension, installed the latest EntityFramework6.Npgsql...
X Description: I'm trying to generate a completely new Database given schema in the VS EF designer. Steps to reproduce I installed the latest VSIX Npgsql VS extension, installed the latest EntityFramework6.Np...
Opengraph URL: https://github.com/npgsql/npgsql/issues/1427
X: @github
Domain: github.com
IPv4 address: 140.82.114.4
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Could not load EntityFramework5.Npgsql while attempting to Generate Database from Model","articleBody":"I'm trying to generate a completely new Database given schema in the VS EF designer.\r\n\r\n### Steps to reproduce\r\n\r\nI installed the latest VSIX Npgsql VS extension, installed the latest EntityFramework6.Npgsql from Nuget, then updated Npgsql to its latest version which added a bunch of other dependencies to my package.xml file.\r\n\r\nI couldn't get the Server Explorer working to connect to my DB without running the Npgsql-3.2.0.msi installer, doing whatever it does to the GAC.\r\n\r\nThe GAC vs. VSIX things must be causing some kind of conflict, because I can't get 'Generate Database from Model...' to work. I'm blocked by this exception:\r\n\r\n```\r\nRunning transformation: System.Exception: Could not load EntityFramework5.Npgsql assembly, is it installed? ---> System.IO.FileLoadException: Could not load file or assembly 'EntityFramework5.Npgsql, Version=3.2.0.0, Culture=neutral, PublicKeyToken=5d8b90d52f46fda7' or one of its dependencies. The located assembly's manifest definition does not match the assembly reference. (Exception from HRESULT: 0x80131040)\r\n at System.Reflection.RuntimeAssembly._nLoad(AssemblyName fileName, String codeBase, Evidence assemblySecurity, RuntimeAssembly locationHint, StackCrawlMark& stackMark, IntPtr pPrivHostBinder, Boolean throwOnFileNotFound, Boolean forIntrospection, Boolean suppressSecurityChecks)\r\n at System.Reflection.RuntimeAssembly.nLoad(AssemblyName fileName, String codeBase, Evidence assemblySecurity, RuntimeAssembly locationHint, StackCrawlMark& stackMark, IntPtr pPrivHostBinder, Boolean throwOnFileNotFound, Boolean forIntrospection, Boolean suppressSecurityChecks)\r\n at System.Reflection.RuntimeAssembly.InternalLoadAssemblyName(AssemblyName assemblyRef, Evidence assemblySecurity, RuntimeAssembly reqAssembly, StackCrawlMark& stackMark, IntPtr pPrivHostBinder, Boolean throwOnFileNotFound, Boolean forIntrospection, Boolean suppressSecurityChecks)\r\n at System.Reflection.Assembly.Load(AssemblyName assemblyRef)\r\n at Npgsql.NpgsqlFactory.GetService(Type serviceType)\r\n --- End of inner exception stack trace ---\r\n at Npgsql.NpgsqlFactory.GetService(Type serviceType)\r\n at System.Data.Common.DbProviderServices.GetProviderServices(DbProviderFactory factory)\r\n at System.Data.Metadata.Edm.StoreItemCollection.Loader.InitializeProviderManifest(Action`3 addError)\r\n at System.Data.Metadata.Edm.StoreItemCollection.Loader.OnProviderManifestTokenNotification(String token, Action`3 addError)\r\n at System.Data.EntityModel.SchemaObjectModel.Schema.HandleProviderManifestTokenAttribute(XmlReader reader)\r\n at System.Data.EntityModel.SchemaObjectModel.Schema.HandleAttribute(XmlReader reader)\r\n at System.Data.EntityModel.SchemaObjectModel.SchemaElement.ParseAttribute(XmlReader reader)\r\n at System.Data.EntityModel.SchemaObjectModel.SchemaElement.Parse(XmlReader reader)\r\n at System.Data.EntityModel.SchemaObjectModel.Schema.HandleTopLevelSchemaElement(XmlReader reader)\r\n at System.Data.EntityModel.SchemaObjectModel.Schema.InternalParse(XmlReader sourceReader, String sourceLocation)\r\n at System.Data.EntityModel.SchemaObjectModel.Schema.Parse(XmlReader sourceReader, String sourceLocation)\r\n at System.Data.EntityModel.SchemaObjectModel.SchemaManager.ParseAndValidate(IEnumerable`1 xmlReaders, IEnumerable`1 sourceFilePaths, SchemaDataModelOption dataModel, AttributeValueNotification providerNotification, AttributeValueNotification providerManifestTokenNotification, ProviderManifestNeeded providerManifestNeeded, IList`1& schemaCollection)\r\n at System.Data.Metadata.Edm.StoreItemCollection.Loader.LoadItems(IEnumerable`1 xmlReaders, IEnumerable`1 sourceFilePaths)\r\n at System.Data.Metadata.Edm.StoreItemCollection.Init(IEnumerable`1 xmlReaders, IEnumerable`1 filePaths, Boolean throwOnError, DbProviderManifest& providerManifest, DbProviderFactory& providerFactory, String& providerManifestToken, Memoizer`2& cachedCTypeFunction)\r\n at System.Data.Metadata.Edm.StoreItemCollection..ctor(IEnumerable`1 xmlReaders)\r\n at Microsoft.VisualStudio.TextTemplating2F696CF54A78FB975602BEF34A38D7117E3374EEB7D5E1026777AF9F6D192A08E379AC860C457C14BA015A701FC668D13EEDAE3E86ACDB9F8A813B560E3188BB.GeneratedTextTransformation.get_StoreItems()\r\n at Microsoft.VisualStudio.TextTemplating2F696CF54A78FB975602BEF34A38D7117E3374EEB7D5E1026777AF9F6D192A08E379AC860C457C14BA015A701FC668D13EEDAE3E86ACDB9F8A813B560E3188BB.GeneratedTextTransformation.TransformText()\tPawn\tC:\\Users\\Chance Snow\\Documents\\GitHub\\million-dollar-pawn\\client\\Pawn\\Models\\SSDLToPgSQL.tt\t1\r\n```\r\n\r\n### Further technical details\r\n\r\nNpgsql **v3.2.0**\r\nEntityFramework6.Npgsql **v3.1.1**\r\nEntityFramework **v6.1.3**\r\nNpgsql PostgreSQL Integration **v3.2.0**\r\nPostgreSQL **v9.6.1**\r\n\r\n","author":{"url":"https://github.com/chances","@type":"Person","name":"chances"},"datePublished":"2017-02-05T03:56:58Z","url":"https://github.com/npgsql/npgsql/issues/1427"}
| react-profiling | 0 |
| react-import-map | react,react-dom,react-dom/client,react-dom/profiling,react-is,react/compiler-runtime,react/jsx-dev-runtime,react/jsx-runtime,scheduler@b8488ee2c322 |
| route-pattern | /_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format) |
| route-controller | voltron_issues_fragments |
| route-action | issue_layout |
| fetch-nonce | v2:4914bd2f-350b-6e16-3c2a-66b3768be65d |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | EB68:1514D:48CAF5:6465C6:6B0470CE |
| html-safe-nonce | fd4f032b21486b4930815639c04666152e69a478e420527478caef23176aaf84 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJFQjY4OjE1MTREOjQ4Q0FGNTo2NDY1QzY6NkIwNDcwQ0UiLCJ2aXNpdG9yX2lkIjoiMzQyNjcyNDQ4NDc4OTU5NjM2NiIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9 |
| visitor-hmac | ddba32517bee4419d02ff9d924f7453ab2ad652183d64481abfaaf6ce36c9583 |
| hovercard-subject-tag | issue:205398647 |
| github-keyboard-shortcuts | repository,issues,copilot |
| google-site-verification | Apib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I |
| octolytics-url | https://collector.github.com/github/collect |
| analytics-location | / |
| fb:app_id | 1401488693436528 |
| apple-itunes-app | app-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/npgsql/npgsql/1427/issue_layout |
| twitter:image | https://opengraph.githubassets.com/f35dcd659b5146c65f6484e3fb2aeb6580a6f04e5718afe6a5dd9abe3c546ccc/npgsql/npgsql/issues/1427 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/f35dcd659b5146c65f6484e3fb2aeb6580a6f04e5718afe6a5dd9abe3c546ccc/npgsql/npgsql/issues/1427 |
| og:image:alt | I'm trying to generate a completely new Database given schema in the VS EF designer. Steps to reproduce I installed the latest VSIX Npgsql VS extension, installed the latest EntityFramework6.Npgsql... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | chances |
| hostname | github.com |
| expected-hostname | github.com |
| None | ae8802492f12d3ba4f6b0d814054e617a2a5616b6327bf8555c10cd5b0dc2a6f |
| turbo-cache-control | no-preview |
| go-import | github.com/npgsql/npgsql git https://github.com/npgsql/npgsql.git |
| octolytics-dimension-user_id | 5766497 |
| octolytics-dimension-user_login | npgsql |
| octolytics-dimension-repository_id | 2883574 |
| octolytics-dimension-repository_nwo | npgsql/npgsql |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 2883574 |
| octolytics-dimension-repository_network_root_nwo | npgsql/npgsql |
| turbo-body-classes | logged-out env-production page-responsive |
| disable-turbo | false |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | cfb5f24c6e01d85f70804652a5107e5cac03a161 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
| react-app-name | issues |
Links:
| Server | github.com |
| Content-Type | text/html; charset=utf-8 |
| Cache-Control | max-age=0, private, must-revalidate |
Viewport: width=device-width