on 11-05-2013 4:26 PM
Boa tarde,
Tenho sistema concluído em C# com o VS, com o Crystal Reports para VS2010, usando .NETFramework 4.0.
Sempre fiz os testes com usando a própria ferramenta do VS, START DEBUGGING. Alterei o app.config para permitir a utilização da versão 4.0 e,
em todos os testes os relatórios eram gerados corretamente.
Finalizado o projeto, tentei fazer o teste através do .EXE gerado pelo VS e apresentou o seguinte erro :
"An unhandled exception of type 'System.IO.FileLoadException' occurred in mscorlib.dll
Additional information: Mixed mode assembly is built against version 'v2.0.50727' of the runtime and cannot be loaded in the 4.0 runtime without additional configuration information. "
Seguindo sugestões de vários forums fiz alterações nos seguintes arquivos:
sgen.exe.config;
VSTestConfig.exe.config;
Acrescentando os códigos :
startup useLegacyV2RuntimeActivationPolicy="true">
<supportedRuntime version="v4.0" sku=".NETFramework,Version=v4.0"/>
</startup>
Executo o programa através do START DEBUGGING, nada de erro, executo através do .EXE volta a aparecer o erro.
Como solucionar o problema ?
Carlos,
Creio que neste forum de ERP você não consiga o que precisa, pesquise no forum de VS : http://social.msdn.microsoft.com/Forums/vstudio/pt-BR/home?category=visualstudio
T+
Jean
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Ola, boa tarde, tente fazer o que diz neste link
[]'s
Fabio.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
88 | |
7 | |
6 | |
4 | |
3 | |
3 | |
3 | |
3 | |
3 | |
2 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.