473,320 Members | 2,104 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,320 software developers and data experts.

Performance Problems with Zero Touch deployed WinForm Application

Hi, we try to deploy a quite heavyweight .NET (C#) Rich Client App (2 Tier)
via IIS Server Zero Touch, but it requires about 4-6 times more Processor
Time and is thus 3-4 times slower than if started locally.
We have already set up Dummy Resource Files and we can see from the Web
Server Log that no Web Server Access happens anymore.
What is it that eats up Performance and how can we switch this off? It is
especially blatant when just moving the Mouse across the Application, which
creates a 50% Processor Load on a 1.6 GHz Notebook.
Thanks in Advance!
Jul 21 '05 #1
3 2063
"Matthias Heuer" <ma************@web.de> wrote:
Hi, we try to deploy a quite heavyweight .NET (C#) Rich Client App (2 Tier)
via IIS Server Zero Touch, but it requires about 4-6 times more Processor
Time and is thus 3-4 times slower than if started locally.
We have already set up Dummy Resource Files and we can see from the Web
Server Log that no Web Server Access happens anymore.
What is it that eats up Performance and how can we switch this off? It is
especially blatant when just moving the Mouse across the Application, which
creates a 50% Processor Load on a 1.6 GHz Notebook.
Thanks in Advance!


Haven't got a clue -

But if it was me I'd start the .NET framework Configuration
Tool or Caspol and compare the effective Code groups and
Permissions on the local version and the zero touch version.

In the worst case the local version is running "full trust"
while the zero touch version is not. If you have a large
number of assemblies that delegate through one another quite
deeply the resulting (deep) stack will be "walked" quite a
lot when you call framework functionality (like polling the
current mouse position).

If that is the case, the simplest solution is to alter the
security policy to grant the zero touch version "full trust"
- just make sure you select some fairly stringent membership
conditions - otherwise the cat may drag something in.
Jul 21 '05 #2
Hum, we are already running the Application full Trust:
we added the whole Server Address to the List of trusted Machines in IE and
gave the Trusted Zone full Access without Restrictions.
We also tried to set up a Trust using caspol but we get the same Performance
Behavior:
caspol -en -addgroup All_Code -url http://xxxxx/* FullTrust -exclusive
on -levelfinal on -n MY_TRUST

But it has to do with Security Checks, because when I disable Security using
"caspol -s off" the Application is fast again!!

But how do I get the same Results without having to switch off Security
entirely?

"UAError" <nu**@null.null> schrieb im Newsbeitrag
news:au********************************@4ax.com...

Haven't got a clue -

But if it was me I'd start the .NET framework Configuration
Tool or Caspol and compare the effective Code groups and
Permissions on the local version and the zero touch version.

In the worst case the local version is running "full trust"
while the zero touch version is not. If you have a large
number of assemblies that delegate through one another quite
deeply the resulting (deep) stack will be "walked" quite a
lot when you call framework functionality (like polling the
current mouse position).

If that is the case, the simplest solution is to alter the
security policy to grant the zero touch version "full trust"
- just make sure you select some fairly stringent membership
conditions - otherwise the cat may drag something in. "Matthias Heuer" <ma************@web.de> wrote:
Hi, we try to deploy a quite heavyweight .NET (C#) Rich Client App (2
Tier)
via IIS Server Zero Touch, but it requires about 4-6 times more Processor
Time and is thus 3-4 times slower than if started locally.
We have already set up Dummy Resource Files and we can see from the Web
Server Log that no Web Server Access happens anymore.
What is it that eats up Performance and how can we switch this off? It is
especially blatant when just moving the Mouse across the Application,
which
creates a 50% Processor Load on a 1.6 GHz Notebook.
Thanks in Advance!

Jul 21 '05 #3

"Matthias Heuer" <ma************@web.de> wrote:
Hum, we are already running the Application full Trust:
we added the whole Server Address to the List of trusted Machines in IE and
gave the Trusted Zone full Access without Restrictions.
We also tried to set up a Trust using caspol but we get the same Performance
Behavior:
caspol -en -addgroup All_Code -url http://xxxxx/* FullTrust -exclusive
on -levelfinal on -n MY_TRUST
Here you don't specify to which policy level the code group
is being applied to. If you are logged on as a local
administrator it will be applied to the Machine level (-m).
If you are using a custom interactive account then it will
be applied to the User level (-u). On the machine policy
level the code group might not be effective if you have on
the Enterprise policy level a levelfinal code group (set
through Active Directory) that curtails the assembly's
permissions. Even on the same policy level another exclusive
group could be interfering if the code group search runs
into it first.

Ultimately you should use the .NET Configuration utility to
evaluate the effective permissions
Control Panel > Administrative Tools > >NET Framework 1.1
Configuration

Click on the "Runtime Security Policy Folder"
on the right panel you should see "Evaluate Assembly"
use that to evaluate the effective permissions of all the
assemblies in your application.
With Caspol you should be able to do the same thing with the
-all -resolveperm assembly_file
option (-rsp).

The code groups responsible can be identified with the
[-all|-user|-machine|-enterprise] -resolvegroups
assembly_file
option (-rsg)

But it has to do with Security Checks, because when I disable Security using
"caspol -s off" the Application is fast again!! But how do I get the same Results without having to switch off Security
entirely?

Have you already read these?

NET Zero Deployment
Security and Versioning Models in the Windows Forms Engine
Help You Create and Deploy Smart Clients
http://msdn.microsoft.com/msdnmag/is...s/default.aspx

Launching No-Touch Deployment Applications with Command Line
Arguments
http://msdn.microsoft.com/library/de...ms05152003.asp

http://msdn.microsoft.com/security/s...y/default.aspx
Jul 21 '05 #4

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

Similar topics

0
by: cgia | last post by:
I found out that only using winform I can use the winword interop and generate word document in the client machine and connect to a remote database, so that I have made a winform application which...
1
by: Pramod Thewarkar | last post by:
Hi, I have deployed my winform application on iis server in a virtual directory. On the start of my application, it is reading some information from the config file (app.config). When i am...
1
by: JP Burford | last post by:
I am working on testing zero deployment on Windows 2003 server. The application I am testing is a simple Managed application written in C#. When I access the application I receive the following...
4
by: James | last post by:
I have a VB windows forms application that accesses a Microsoft Access database that has been secured using user-level security. The application is being deployed using No-Touch deployment. The...
0
by: James | last post by:
I have a VB windows forms application that accesses a Microsoft Access database that has been secured using user-level security. The application is being deployed using No-Touch deployment. The...
3
by: al | last post by:
Hi, Can someone please tell me what is exactly zero deployment in VB.NET. Is it that .NET doesn't need to deal with the registry? If that is the case, then why MS introduced class registry? ...
1
by: Matthias Heuer | last post by:
Hi, we try to deploy a quite heavyweight .NET (C#) Rich Client App (2 Tier) via IIS Server Zero Touch, but it requires about 4-6 times more Processor Time and is thus 3-4 times slower than if...
5
by: DBC User | last post by:
How would you develop a zero footprint application, is the smart client application a zero footprint application? Thanks.
12
by: Ilyas | last post by:
Hi all I have an application which brings back 1000 records from a sql server database. Under the local asp.net development server provided with Visual Studio 2008, it takes about 1.8 seconds ...
0
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
1
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
by: jfyes | last post by:
As a hardware engineer, after seeing that CEIWEI recently released a new tool for Modbus RTU Over TCP/UDP filtering and monitoring, I actively went to its official website to take a look. It turned...
0
by: ArrayDB | last post by:
The error message I've encountered is; ERROR:root:Error generating model response: exception: access violation writing 0x0000000000005140, which seems to be indicative of an access violation...
1
by: PapaRatzi | last post by:
Hello, I am teaching myself MS Access forms design and Visual Basic. I've created a table to capture a list of Top 30 singles and forms to capture new entries. The final step is a form (unbound)...
0
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
1
by: Shællîpôpï 09 | last post by:
If u are using a keypad phone, how do u turn on JavaScript, to access features like WhatsApp, Facebook, Instagram....
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome former...

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.