-
-
Notifications
You must be signed in to change notification settings - Fork 7
Closed
Description
Em produção minha aplicação recebe o seguinte erro:
Message:CodeBase is not supported on assemblies loaded from a single-file bundle.
Stack Trace: at System.Reflection.RuntimeAssembly.getCodeBase()
at OpenAC.Net.Core.Extensions.AssemblyExtenssions.GetPath(Assembly ass) in E:\Programacao\OpenAC .Net\OpenAC.Net.Core\src\OpenAC.Net.Core\Extensions\AssemblyExtenssions.cs:line 49
at OpenAC.Net.NFSe.Configuracao.ConfigArquivosNFSe..ctor() in //src/OpenAC.Net.NFSe/Configuracao/ConfigArquivosNFSe.cs:line 52
at OpenAC.Net.NFSe.Configuracao.ConfigNFSe..ctor() in //src/OpenAC.Net.NFSe/Configuracao/ConfigNFSe.cs:line 49
at OpenAC.Net.NFSe.OpenNFSe.OnInitialize() in //src/OpenAC.Net.NFSe/OpenNFSe.cs:line 563
at OpenAC.Net.Core.OpenComponent..ctor() in E:\Programacao\OpenAC .Net\OpenAC.Net.Core\src\OpenAC.Net.Core\OpenComponent.cs:line 68
at OpenAC.Net.NFSe.OpenNFSe..ctor()
at Panthera.DFe.Nfse.Inicializar()
at Panthera.DFe.Nfse..ctor(Empresa emitente, Boolean incializar)
at Panthera.UI.ViewModel.NotaServico_ViewModel.<ConsultarCommandExecute>b__142_0()
Ocorre em:
| var uri = new UriBuilder(ass.CodeBase); |
Na documentação temos: https://docs.microsoft.com/pt-br/dotnet/api/system.reflection.assembly.codebase?view=net-6.0
Acredito que basta substituir por Assembly.Location para manter o mesmo comportamento
https://docs.microsoft.com/pt-br/dotnet/api/system.reflection.assembly.location?view=net-6.0
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels
