Error Entity Framework WPF Client

0

I installed my application in the client environment, but I'm getting the following error:

Nome do Evento de Problema: CLR20r3
  Assinatura do Problema 01:    eLogBook.exe
  Assinatura do Problema 02:    1.0.0.0
  Assinatura do Problema 03:    5a7e2d47
  Assinatura do Problema 04:    EntityFramework
  Assinatura do Problema 05:    6.2.61023.0
  Assinatura do Problema 06:    59ee4ce1
  Assinatura do Problema 07:    57cc
  Assinatura do Problema 08:    6c
  Assinatura do Problema 09:    System.InvalidOperationException
  Versão do sistema operacional:    6.1.7601.2.1.0.768.3
  Identificação da Localidade:  1046
  Informações Adicionais 1: 0a9e
  Informações Adicionais 2: 0a9e372d3b4ad19135b953a78882e789
  Informações Adicionais 3: 0a9e
  Informações Adicionais 4: 0a9e372d3b4ad19135b953a78882e789

I just put all the necessary dlls that are in the Debug folder of my application.

Whatcanthisbe?I'musingtwodatabases:MysqlandSQLCE,inbothusingEF6

IinstalledSQLCE4.0SP1ontheclientmachine,buttheerrorcontinues.

UPDATE1:Igotthefollowingerrorwithalog:

System.InvalidOperationException:Noconnectionstringnamed'remoteEntities'couldbefoundintheapplicationconfigfile.emSystem.Data.Entity.Internal.LazyInternalConnection.get_ConnectionHasModel()emSystem.Data.Entity.Internal.LazyInternalContext.InitializeContext()emSystem.Data.Entity.Internal.InternalContext.Initialize()emSystem.Data.Entity.Internal.InternalContext.GetEntitySetAndBaseTypeForType(TypeentityType)emSystem.Data.Entity.Internal.Linq.InternalSet'1.Initialize()emSystem.Data.Entity.Internal.Linq.InternalSet'1.get_InternalContext()emSystem.Data.Entity.Infrastructure.DbQuery'1.System.Linq.IQueryable.get_Provider()emSystem.Linq.Queryable.Select[TSource,TResult](IQueryable'1source,Expression'1selector)emView.MainController.validaStatus(Stringusuario)

UPDATE2:

publicboolvalidaStatus(stringusuario){try{varresultado=remote.Motorista.Select(x=>new{x.ID,x.Login,x.Status}).Where(u=>u.Login==usuario&&u.Status==1).ToList();if(resultado.Count>0)returntrue;elsereturnfalse;}catch(Exceptione){loc.LOGTexto("", e.ToString());
            return false;
        }
    }
    
asked by anonymous 10.02.2018 / 01:17

1 answer

-1

From the photo you posted, the eLogBook.exe.config file appears to be missing from the folder where you published your application.

The error that is occurring is because the application does not recognize its connection string that is stored in this configuration file, just because the file does not exist.

    
23.03.2018 / 22:22