C # Windows Forms Application Slowly on certain machines

11

Good afternoon, I performed the migration of an application running on a windows ce for desktop, the Application uses Sql Server Compact 4.0. and runs very well in the development environment, I have tested in other development machines and all run well, screens open normal and slow, but in other computers, slowdown occurs in most of the routines, I can see that they are usually in the routines where it interacts with the database. screens that open in 1 second on development machines, take 5 to 8 in others.

- Sqlce Server Compact 4.0 (SSCERuntime_x64-PTB)

- All the machines that I tested have 64bit processors.

- Application was compiled into Release.

- The database is in the same folder as the application, the queries that are made on it on slow machines work, but they require much more time than development machines strong>

It is not a problem of isolated slowness in a machine, or due to lack of processing, because the application is quite simple, runs with few tables, I have tested on more than 1 server and presented the slowness.

I think it's something that needs to be installed on the machines, but I did not identify what. Thanks in advance.

    
asked by anonymous 15.12.2016 / 17:51

1 answer

6

Good morning everyone, I found the solution to the problem.

Slowdown occurs when using .NET 1.1 or 2.0 assembly that are authenticode-signed . The delay is due to .NET doing this check and not being able to download the CLR with the signatures.

Everything is very well explained in the link below:

  

link

I used the first option palette, uncheck the option in Internet Option, worked perfectly, in the post has a second solution to be made in the Application, I will verify.

Many thanks to all.

    
16.12.2016 / 14:09