473,387 Members | 1,669 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,387 software developers and data experts.

Why won't generatePublisherEvidence app setting speed up load time

We have an issue with load time in several installations of our application.
We've located the information regarding KB 936707 and ensured that the
application config file contains the runtime setting of
<generatePublisherEvidence enabled="false"/>
but the application still takes over 2 minutes to load. When we disconnect
the PC from the network (internet) then the application loads in about 5
seconds.

We've ensured the .net 2.0 version is SP1 - which should allow this to work.

Does anyone know of any other way to ensure this timeout to the crl doesn't
occur and our application will load normally?
--
MSix
Senior Developer
AGCO Corporation
Nov 17 '08 #1
5 9863
You need .NET V3.5 SP1

"masix" <ma***@community.nospamwrote in message
news:6B**********************************@microsof t.com...
We have an issue with load time in several installations of our
application.
We've located the information regarding KB 936707 and ensured that the
application config file contains the runtime setting of
<generatePublisherEvidence enabled="false"/>
but the application still takes over 2 minutes to load. When we
disconnect
the PC from the network (internet) then the application loads in about 5
seconds.

We've ensured the .net 2.0 version is SP1 - which should allow this to
work.

Does anyone know of any other way to ensure this timeout to the crl
doesn't
occur and our application will load normally?
--
MSix
Senior Developer
AGCO Corporation
Nov 18 '08 #2
Hi MSix,

Thanks for using Microsoft Newsgroup Service. My name is Hongye Sun [MSFT]
and it is my pleasure to work with you on this issue.

.NET Framework 2.0 SP1 has already included KB 936707 hot fix, so
"generatePublisherEvidence" should be working. Before taking further steps
into this issue, we need to confirm 2 facts:

1. Is the issue caused by KB 936707?
I noticed that you mentioned "several installations of our application". Do
you mean that other installations in other machines work properly? If so,
can you enable generatePublisherEvidence and check if the load time
increases.

Another way is to disable in Internet Explorer -Options -Advanced ->
Security -'Check for publisher's certificate revocation' check box. This
is also a Per-Machine Workaround for this issue. It will prevent CLR to
checking for certificate for all code-signed assemblies. After uncheck the
setting, check if the problem disappears.

2. Is the .NET Framework 2.0 SP1 installed
First of all, I need to declare that all the machines I mentioned here is
the target machine which the application is installed at, instead of the
development machine.

In the target machine, open registry, find key:
HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\NET Framework Setup\NDP\v2.0.50727.
Check if the "SP" equals or greater than 1.

Please let me know the results. Thanks.

Regards,
Hongye Sun (ho*****@online.microsoft.com, remove 'online.')
Microsoft Online Community Support

Delighting our customers is our #1 priority. We welcome your comments and
suggestions about how we can improve the support we provide to you. Please
feel free to let my manager know what you think of the level of service
provided. You can send feedback directly to my manager at:
ms****@microsoft.com.

This posting is provided "AS IS" with no warranties, and confers no rights.

Nov 18 '08 #3
In response to your questions:

1. Yes we have many other installations that are working with no issue and
the exact system that is having this issue, performs a fast load when
disconnected from the network/internet. This modification to the exe.config
(adding the runtime setting) on a specific Ctirix installation (Windows 2003
Server) increased all the users load time of the application using the
Metaframe (before change it was 2+ minutes, after changing setting, the load
time was under 10 seconds)

We tried the unchecking the IE option 'Check for publisher's certificate
revocation' check box but this didn't show any change.

2. .NET 2.0 SP1 was installed, but we will check again on the registry
setting. We may even upgrade the dealer to 3.5 SP1. due to performance gains
available with that release.

One other thing we will also try is either executing the .net caspol.exe
with the -s off command line parameter or modifying the .net 2.0
configuration, Runtime Security Policy for the Machine's Code Group and click
the "Policy levels below this level will not be evaluated". We've read in
another post this could fix the issue.

Another thing to mention -- we had ngened our applications, so we plan to
uninstall the ngen assemblies since this could cause an issue with the old
..net assembly being used, right (not the SP1 changes)?

Thanks for any other ideas you might be able to provide.
--
MSix
Senior Developer
AGCO Corporation
""Hongye Sun [MSFT]"" wrote:
Hi MSix,

Thanks for using Microsoft Newsgroup Service. My name is Hongye Sun [MSFT]
and it is my pleasure to work with you on this issue.

.NET Framework 2.0 SP1 has already included KB 936707 hot fix, so
"generatePublisherEvidence" should be working. Before taking further steps
into this issue, we need to confirm 2 facts:

1. Is the issue caused by KB 936707?
I noticed that you mentioned "several installations of our application". Do
you mean that other installations in other machines work properly? If so,
can you enable generatePublisherEvidence and check if the load time
increases.

Another way is to disable in Internet Explorer -Options -Advanced ->
Security -'Check for publisher's certificate revocation' check box. This
is also a Per-Machine Workaround for this issue. It will prevent CLR to
checking for certificate for all code-signed assemblies. After uncheck the
setting, check if the problem disappears.

2. Is the .NET Framework 2.0 SP1 installed
First of all, I need to declare that all the machines I mentioned here is
the target machine which the application is installed at, instead of the
development machine.

In the target machine, open registry, find key:
HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\NET Framework Setup\NDP\v2.0.50727.
Check if the "SP" equals or greater than 1.

Please let me know the results. Thanks.

Regards,
Hongye Sun (ho*****@online.microsoft.com, remove 'online.')
Microsoft Online Community Support

Delighting our customers is our #1 priority. We welcome your comments and
suggestions about how we can improve the support we provide to you. Please
feel free to let my manager know what you think of the level of service
provided. You can send feedback directly to my manager at:
ms****@microsoft.com.

This posting is provided "AS IS" with no warranties, and confers no rights.

Nov 19 '08 #4
BTW: Since the .net 2.0 SDK will not be available on the customer's machine,
we will have to use the caspol.exe -s off option. (.net 2.0 Configuration in
Admin tools is only available when SDK is installed!)

If this fixes the issue, how do I make that security change permanently?
And does this leave the customer's machine at a high security risk if this
security setting is changed like this?

--
MSix
Senior Developer
AGCO Corporation
"masix" wrote:
In response to your questions:

1. Yes we have many other installations that are working with no issue and
the exact system that is having this issue, performs a fast load when
disconnected from the network/internet. This modification to the exe.config
(adding the runtime setting) on a specific Ctirix installation (Windows 2003
Server) increased all the users load time of the application using the
Metaframe (before change it was 2+ minutes, after changing setting, the load
time was under 10 seconds)

We tried the unchecking the IE option 'Check for publisher's certificate
revocation' check box but this didn't show any change.

2. .NET 2.0 SP1 was installed, but we will check again on the registry
setting. We may even upgrade the dealer to 3.5 SP1. due to performance gains
available with that release.

One other thing we will also try is either executing the .net caspol.exe
with the -s off command line parameter or modifying the .net 2.0
configuration, Runtime Security Policy for the Machine's Code Group and click
the "Policy levels below this level will not be evaluated". We've read in
another post this could fix the issue.

Another thing to mention -- we had ngened our applications, so we plan to
uninstall the ngen assemblies since this could cause an issue with the old
.net assembly being used, right (not the SP1 changes)?

Thanks for any other ideas you might be able to provide.
--
MSix
Senior Developer
AGCO Corporation
""Hongye Sun [MSFT]"" wrote:
Hi MSix,

Thanks for using Microsoft Newsgroup Service. My name is Hongye Sun [MSFT]
and it is my pleasure to work with you on this issue.

.NET Framework 2.0 SP1 has already included KB 936707 hot fix, so
"generatePublisherEvidence" should be working. Before taking further steps
into this issue, we need to confirm 2 facts:

1. Is the issue caused by KB 936707?
I noticed that you mentioned "several installations of our application". Do
you mean that other installations in other machines work properly? If so,
can you enable generatePublisherEvidence and check if the load time
increases.

Another way is to disable in Internet Explorer -Options -Advanced ->
Security -'Check for publisher's certificate revocation' check box. This
is also a Per-Machine Workaround for this issue. It will prevent CLR to
checking for certificate for all code-signed assemblies. After uncheck the
setting, check if the problem disappears.

2. Is the .NET Framework 2.0 SP1 installed
First of all, I need to declare that all the machines I mentioned here is
the target machine which the application is installed at, instead of the
development machine.

In the target machine, open registry, find key:
HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\NET Framework Setup\NDP\v2.0.50727.
Check if the "SP" equals or greater than 1.

Please let me know the results. Thanks.

Regards,
Hongye Sun (ho*****@online.microsoft.com, remove 'online.')
Microsoft Online Community Support

Delighting our customers is our #1 priority. We welcome your comments and
suggestions about how we can improve the support we provide to you. Please
feel free to let my manager know what you think of the level of service
provided. You can send feedback directly to my manager at:
ms****@microsoft.com.

This posting is provided "AS IS" with no warranties, and confers no rights.
Nov 19 '08 #5
Hi MSix,

Thanks for your replies.

From your replies, this issue seems to be machine environment issue. After
consulting security expert, we need to further narrow down the problem,
please help us to do the following check:

1. caspol.exe -s off
Your intention is to use "caspol.exe -s off" is right. It can narrow down
the problem to check if the issue is caused by CAS.

2. caspol.exe -reset
If "-s off" option makes fast load, please try "caspol.exe -reset" to reset
CAS settings.

3. Check authenticodeenabled registry key
Please go to
HKEY_LOCAL_MACHINE\SOFTWARE\Policies\Microsoft\Win dows\safer\codeidentifiers
to check if authenticodeenabled is set to its default value 0.

4. Remove digital signature
In the meanwhile, can you do another test to build your assembly without
digital signature and run it in target machine? Check if the load time is
faster.

Finally, please double check your .NET framework SP number in registry.

In the meanwhile, we will continue to consult this issue with product team.

For your NGen question, I am not quite sure about what you mean "the old
..net assembly being used". I guess that you are asking if the DLL and NGen
are out of sync, shall we uninstall the NGen DLL? Am I right?

If so, the answer is yes. When the CLR loads an NGen'd file it compares a
number of attributes about the previously-compile code and the current
execution environment. If any of the attributes don't match then the NGen'd
file cannot be used and the normal JIT compiler process is used instead.
Other than that, NGen'd file are not automatically deleted when an assembly
is uninstalled.

Please try the actions plan below and let us know the check result. We
appreciate your cooperation. Thanks.

Regards,
Hongye Sun (ho*****@online.microsoft.com, remove 'online.')
Microsoft Online Community Support

Delighting our customers is our #1 priority. We welcome your comments and
suggestions about how we can improve the support we provide to you. Please
feel free to let my manager know what you think of the level of service
provided. You can send feedback directly to my manager at:
ms****@microsoft.com.

This posting is provided "AS IS" with no warranties, and confers no rights.

Nov 21 '08 #6

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

14
by: ^ | last post by:
Hi group, I've become interested in Python a while ago and just converted a simple perl script to python. The script is very simple, it generates a list of found virusses from some maillog files...
18
by: HerrLucifer | last post by:
I am each day becoming more and more addicted to the new .Net framework because of its cool RAD facilities. However, performance and speed is extremely important for my application development. I...
15
by: RAYYILDIZ | last post by:
I Know C is the fastest progrmming language. However, by using some bitwise operation you can get faster the your program. For instance, we talk about swap function. For a integer swapping we use...
1
by: D | last post by:
Say you have three tables apples, oranges and bananas and each table has a different amount of fields that are obviously particular to that type of fruit. Now I want to load them into a form based...
7
by: Mad Scientist Jr | last post by:
i have a dropdown control with autopostback=on that when selected, posts back and populates a second dropdown. the 2nd dropdown takes a while to load, giving the user time to start typing in other...
3
by: tarscher | last post by:
Hi all, I have a gridview populated with data coming from a dataset (created via the wizard). The data shown in the gridview is dependent on the the choice of a control (dropdown with...
7
by: nissanbi | last post by:
Hi, I need to find a data structure that supports insertion, deletion and finding the median of the elements stored at the data structure. All the operation should run in O(loglogn) amortized...
0
by: npm | last post by:
I'm trying to find out why the android browser won't load and/or display my XML data. It works fine on computer browsers (FF, IE, Safari, Chrome, Opera) and even in iPhone's Safari, but when I view...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.